- Joined
- Oct 30, 2009
- Messages
- 136
- Reaction score
- 0
- Points
- 16
- Location
- The Milky Way
- Your Mac's Specs
- iMac Core i5 2.66GHz - RAM 4GB - OS X Snow Leopard
Hello Everyone
Can someone please tell me how I can install RoR 1.9.2 on my iMac Snow Leopard
I have tried the following:
Step 1: Get RVM installed to your .rvm directory
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
Step 2: RVM Post install
Add this next line to your .bash_profile or .bashrc in your home directory -
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Step 3: Test your RVM install
Run this command -
type rvm | head -1
And you should see -
rvm is a function
Step 4: Load RVM (this is what step 2 will do for you from now on, but in the terminal you are working in, you'll need to do this since it was not loaded)
Run this -
source ~/.rvm/scripts/rvm
Step 5: Install some packages, readline so your irb/console works and openssl
rvm package install readline
rvm package install openssl
Step 6: Install ruby 1.9.2
rvm install 1.9.2
Or choose a different one from the list generated by this command -
rvm list known
Step 7: Install your a rails 3 gemset
rvm gemset create rails3
Step 8: To see what rubies you have installed
rvm list
Step 9: To see what gemsets you have created
rvm gemset list
Step 10: Pick a ruby and gemset combo to use -
Something like this -
rvm use ruby-1.9.2-p136@rails3
Where the ruby version is on the left of the @ and the gemset is on the right of the @.
Step 11: Use .rvmrc for your projects
From this point on, you can use a .rvmrc in what ever directory needs a particular rvm
So edit .rvmrc and put
rvm use ruby-1.9.2-p136@rails3
And anytime you cd into that directory, the rvmrc file will be executed and your rvm environment will be setup
Step 12: Always know what rvm environment you are in -
rvm info
The important parts are the ruby version (about a 3rd of the way down) and the gemset (very last bit listed)
Step 13: Install rails
Once you've made sure that you're using the proper ruby and gemset, then you can install gems (do not use sudo here)
gem install rails
This will install the latest rails version, 3.0.4 as of 2/8/2011
Step 14: Create your rails app
rails new my_app
Step 15: You'll need bundler to run your Gemfile
gem install bundler
Every other gem for the project should be maintained in the Gemfile and installed using bundler
bundle install
However on step one, I get the following error:
I would greatly appreciate any help. I really need this for my University exercises
Can someone please tell me how I can install RoR 1.9.2 on my iMac Snow Leopard
I have tried the following:
Step 1: Get RVM installed to your .rvm directory
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
Step 2: RVM Post install
Add this next line to your .bash_profile or .bashrc in your home directory -
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Step 3: Test your RVM install
Run this command -
type rvm | head -1
And you should see -
rvm is a function
Step 4: Load RVM (this is what step 2 will do for you from now on, but in the terminal you are working in, you'll need to do this since it was not loaded)
Run this -
source ~/.rvm/scripts/rvm
Step 5: Install some packages, readline so your irb/console works and openssl
rvm package install readline
rvm package install openssl
Step 6: Install ruby 1.9.2
rvm install 1.9.2
Or choose a different one from the list generated by this command -
rvm list known
Step 7: Install your a rails 3 gemset
rvm gemset create rails3
Step 8: To see what rubies you have installed
rvm list
Step 9: To see what gemsets you have created
rvm gemset list
Step 10: Pick a ruby and gemset combo to use -
Something like this -
rvm use ruby-1.9.2-p136@rails3
Where the ruby version is on the left of the @ and the gemset is on the right of the @.
Step 11: Use .rvmrc for your projects
From this point on, you can use a .rvmrc in what ever directory needs a particular rvm
So edit .rvmrc and put
rvm use ruby-1.9.2-p136@rails3
And anytime you cd into that directory, the rvmrc file will be executed and your rvm environment will be setup
Step 12: Always know what rvm environment you are in -
rvm info
The important parts are the ruby version (about a 3rd of the way down) and the gemset (very last bit listed)
Step 13: Install rails
Once you've made sure that you're using the proper ruby and gemset, then you can install gems (do not use sudo here)
gem install rails
This will install the latest rails version, 3.0.4 as of 2/8/2011
Step 14: Create your rails app
rails new my_app
Step 15: You'll need bundler to run your Gemfile
gem install bundler
Every other gem for the project should be maintained in the Gemfile and installed using bundler
bundle install
However on step one, I get the following error:
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
109 986 109 986 0 0 2094 0 --:--:-- --:--:-- --:--:-- 5301
bash: line 31: git: command not found
ERROR: Cloning from git://github.com/wayneeseguin/rvm.git failed, trying via https now (https://github.com/wayneeseguin/rvm.git).
bash: line 35: git: command not found
ERROR: Cloning from https://github.com/wayneeseguin/rvm.git failed, perhaps your git version does not support the https protocol? out of ideas... halting.
I would greatly appreciate any help. I really need this for my University exercises