no such file to load — bundler/setup in Rails 3.2

2019-02-25 21:09发布

问题:

I'm running a vserver on apache2 with passenger. Using RVM for ruby. Ruby Version -> 1.9.3p194 Rails Version -> 3.2.3 Set up by Apache Virtual Host Configuration ...

Now, when I'm entering the url into my browser, a passenger error page shows up:

no such file to load -- bundler/setup

I have no idea what to do now. Can someone help me?

回答1:

Create a .htaccess in your root dir and use it to specify the GEM_PATH.

For example:

SetEnv GEM_PATH /home/dinduks/.rvm/gems/ruby-1.9.3-p0


回答2:

looks like the bundler gem isn't in your path or isn't installed