Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninitialized constant Bundler

Tags:

ruby

bundler

Whenever I try to do sudo /var/lib/gems/1.8/gems/bundler-1.0.21/bin/bundle install, I run into this:

/var/lib/gems/1.8/gems/bundler-1.0.21/bin/bundle:14: uninitialized constant Bundler (NameError)

Any ideas?

This did not help:

uninitialized constant Bundler (NameError) with rails 3

I'm running Ubuntu 11.10, 64 bit if that helps any.

like image 288
jrg Avatar asked Dec 30 '25 01:12

jrg


1 Answers

I would setup a system-wide RVM installation to support separating different Ruby environments (and environments for multiple accounts) on the same system.

Bundler will help in maintaining dependencies for each environment but some gem versions may conflict. Gemsets within RVM work around that issue by segmenting each environment.

like image 155
Nick Avatar answered Dec 31 '25 19:12

Nick