12

I'm trying to setup passenger with rvm. I keep getting this error

Your RVM wrapper scripts are too old. Please update them first by running 'rvm update --head && rvm reload && rvm repair all'.

I did that still same problem

  • GNU C++ compiler... found at /usr/bin/g++
  • Curl development headers with SSL support... found
  • OpenSSL development headers... found
  • Zlib development headers... found
  • Ruby development headers... found
  • OpenSSL support for Ruby... found
  • RubyGems... found

Your RVM wrapper scripts are too old.

Please update them first by running 'rvm update --head && rvm reload && rvm repair all'.

I'm using Fedora 14, Ruby 1.9.2, Rails 3.0.7 RVM is installed for multiuser

I also get this error when I do 'passenger start'

Cannot execute '/home/antarr/.passenger/standalone/3.0.7-x86_64-ruby1.9.2-linux-gcc4.5.1-1002/support/helper-scripts/prespawn http://0.0.0.0:3000': Permission denied (13)

Anton
  • 1,401
  • 8
  • 12
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
  • 1
    can you post output of the `rvm update --head && rvm reload && rvm repair all` and `rvm info` and `type rvm | head -1` – mpapis May 24 '11 at 12:11
  • please also run this `find /home -maxdepth 2 -type d -name .rvm` you might have more then one installation of rvm, finally you should be doing RVM update as root either using `sudo` or `su -c` – mpapis May 25 '11 at 08:31

5 Answers5

36

I was having the same issue but found that using the rvmsudo command worked. Instead of

sudo passenger-install-apache2-module

try using:

rvmsudo passenger-install-apache2-module
Mark Hall
  • 53,938
  • 9
  • 94
  • 111
Dave Flynn
  • 746
  • 7
  • 6
1

If none of the above solutions work for you and you're getting the GEM_HOME warning

delete everything in .rvmrc

rvm get head && rvm reload && rvm repair all

gem install passenger

passenger-install-apache2-module

copy/paste the end message into your apache.conf

tester
  • 22,441
  • 25
  • 88
  • 128
1

I am still having the same issue with passenger 3.0.19 if I tried to install on gemsets other than default and global. This is soooo troublesome. I have tried many suggestions and even rvm implode, then have everything brand new. but still hitting the brick wall. my forehead almost flatten. Hope not to lose my head!

Luckily, I found myself a fix. I found out that in i am in rvm multiuser envrioment and the issue arised if I switch to user gemset using command: "rvm user gemsets" which basically will create and use .rvm folder in user's home folder. e.g.: /home/.rvm instead of /ur/local/rvm folder. Since I do not know how to switch back and could not find any documention on how to, I did the following steps:

  1. remove .rvm folder in the user home folder,
    rm -rf ~username/.rvm

  2. added back the user to rvm group (in multi enviroment, every new user need to be added to rvm group)
    sudo usermod -a -G rvm username

  3. re-login.

Now, as long as I am using shared rvm gemset folder, phusion passenger wont complaint.

Hope that helps someone.

1

It looks like Passenger 3.0.7 is confused by newer versions of rvm, but it seems like the instructions are incorrect and it's causing trouble. If the GEM_HOME environment variable is not set you get this error.

The correct instructions should be to use your particular version first:

rvm use 1.9.2

Although I got the same error as you, after that it worked for me.

tadman
  • 208,517
  • 23
  • 234
  • 262
0

I fixed the Permission Denied issue with:

chmod a+x /Users/tvd/.passenger/standalone/3.0.7-x86_64-ruby1.9.2-macosx-10.6/support/helper-scripts/*

Found it in comment section on the phusion.nl blog:

Goto Comment on Phusion Blog

tvdeyen
  • 723
  • 4
  • 9