Skip to content

Instantly share code, notes, and snippets.

@benjaminoakes
Last active December 12, 2015 01:39
Show Gist options
  • Save benjaminoakes/4692713 to your computer and use it in GitHub Desktop.
Save benjaminoakes/4692713 to your computer and use it in GitHub Desktop.
rvm mixed mode (rvm user all) passenger install error
$ \curl -L https://get.rvm.io | sudo bash -s stable
$ rvm user all
$ rvm install ruby-1.9.3-p327
$ rvm use ruby-1.9.3-p327 --default
$ gem install passenger
$ passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v3.0.19.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Checking for required software...
* 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 get head && rvm reload && rvm repair all'.
#!/usr/bin/env bash
if [[ -s "/home/capistrano/.rvm/environments/ruby-1.9.3-p327" ]]
then
source "/home/capistrano/.rvm/environments/ruby-1.9.3-p327"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/home/capistrano/.rvm/environments/ruby-1.9.3-p327'" >&2
exit 1
fi
@benjaminoakes
Copy link
Author

Possibly related to https://github.com/FooBarWidget/passenger/blob/8c6693e0818772c345c979840d28312c2edd4ba4/lib/phusion_passenger/platform_info/ruby.rb#L164

Our conversation (@jnimety is a coworker) on IRC:

* Now talking on #rvm
* Topic for #rvm is: Leave a message and stick around, mpapis will respond. Please help out if you can, nicely. Be kind or leave (MINASWAN). TipJar http://bit.ly/rvm-tipjar. JewelryBox http://jewelrybox.unfiniti.com.
* Topic for #rvm set by mpapis!~mpapis@niczsoft.com at Fri Aug 31 11:04:50 2012
<jnimety> mpapis: sure
[...]
<jnimety> mpapis: https://gist.github.com/4692713
[...]
<jnimety> the user is a member of the rvm group
[...]
<mpapis> jnimety, what version of rvm?
<jnimety> 1.18.5
[...]
<mpapis> jnimety, gist: $rvm_wrappers_path/ruby-1.9.3-p327/ruby
[...]
<jnimety> mpapis: $rvm_wrappers_path is empty
[...]
<mpapis> jnimety, try ~/.rvm/wrappers/
[...]
<jnimety> mpapis: default  ruby-1.9.3-p327  ruby-1.9.3-p327@global
[...]
<mpapis> jnimety, gist - ~/.rvm/wrappers/ruby-1.9.3-p327/ruby
[...]
<jnimety> mpapis: https://gist.github.com/4692713#file-ruby-L1
<smf_bot_____> Title: rvm issue (at gist.github.com,  on )
<mpapis> jnimety, it might be another bug in passenger detection of rubies, might not work with full mixed mode - it was working with: rvm user gemsets
<mpapis> jnimety, if you can try the gemsets part of mixed mode, install ruby with other user to /usr/local/ and then use gemsets from the deploy user
<jnimety> mpapis: yeah, we were looking through the passenger rvm detection and it looks like passenger uses $HOME/.rvm/scripts/rvm to determine if ruby is user or system
<jnimety> I'll file a bug with the passenger guys
<mpapis> great thank you
<jnimety> mpapis: thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment