Created
May 18, 2010 16:14
-
-
Save eddorre/405170 to your computer and use it in GitHub Desktop.
This file contains 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
Using Ruby Enterprise Edition with RVM | |
* Install RVM | |
zsh < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
rvm update --head | |
* Install Readline package | |
rvm package install readline | |
* Install Ruby Enterprise Edition | |
rvm install ree --enable-shared --with-readline-dir=$HOME/.rvm/usr --patch readline-fix | |
* Switch over to new RVM install | |
rvm use [ree version number here] | |
* Install RubyCocoa (version 1.0.1 is broken at this time - see: http://gist.github.com/330254) | |
wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.0/RubyCocoa-1.0.0.tar.gz/download | |
tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0 | |
ruby install.rb config --build-universal=yes | |
ruby install.rb setup | |
sudo ruby install.rb install | |
* Install Base Global Gems | |
NOTE: Do not use sudo when installing gems in an rvm'd environment | |
gem install bundler | |
gem install capistrano | |
gem install capistrano-ext | |
gem install git_remote_branch | |
gem install open_gem | |
gem install heroku | |
gem install passenger | |
* Update Apache | |
passenger-install-apache2-module | |
* Configure Apache | |
* Rename your passenger configuration file: | |
cp /private/etc/apache2/other/passenger.conf /private/etc/apache2/other/passenger.orig | |
* Open the passenger.conf file in your favorite editor. Since this file is owned by root, you'll need to provide your password to save it. | |
Change the top 3 lines to something like this: | |
LoadModule passenger_module /Users/carlos/.rvm/gems/ree-1.8.7-2010.02@global/gems/passenger-3.0.0/ext/apache2/mod_passenger.so | |
PassengerRoot /Users/carlos/.rvm/gems/ree-1.8.7-2010.02@global/gems/passenger-3.0.0 | |
PassengerRuby /Users/carlos/.rvm/wrappers/ree-1.8.7-2010.02@global/ruby | |
* Restart Apache and Passenger | |
If you open a new terminal tab, you'll have to change your Ruby to REE: rvm ree-1.8.7-2010.01 | |
You can also set REE to default using: | |
rvm [ree version number here] --default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment