2

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?

Michael Stark
  • 635
  • 2
  • 9
  • 17

2 Answers2

3

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
Samy Dindane
  • 17,900
  • 3
  • 40
  • 50
0

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

Fredrik Leijon
  • 2,792
  • 18
  • 20
  • it is installed! but what do you mean by it isn't in my path? – Michael Stark May 08 '12 at 13:19
  • it probably has something to do with rvm and passenger. rvm modifies your gem path (where ruby looks for you gems). Either the path is wrong, or bundler is not installed in the gemset that you are using to run passenger. – stellard May 08 '12 at 13:30
  • yes, make sure that the path that rvm drops your gems in is included in the gem_home variable (i think) that the apache/passenger process environment has – Fredrik Leijon May 08 '12 at 13:37
  • $GEM_HOME is pointed to this path /usr/local/rvm/gems/ruby-1.9.3-p194 . In it there is another gems folder where bunlder-1.1.3 is available. Should $GEM_HOME point to /usr/local/rvm/gems/ruby-1.9.3-p194/gems? – Michael Stark May 08 '12 at 13:44