Last active
December 12, 2015 01:39
-
-
Save benjaminoakes/4692713 to your computer and use it in GitHub Desktop.
rvm mixed mode (rvm user all) passenger install error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ \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'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: