Cause of work, i has long time didn't update this blog.
In last week, i need to install an project management system redmine. redmine develop in ruby on rails, so i try to install ruby on rails in ubuntu server.
Please follow below step use root account.
1. Install curl.
apt-get install curl
2. Install RVM with ruby.
\curl -L https://get.rvm.io | bash -s stable --ruby
RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
3. Load rvm source
source [path your install rvm]/rvm
4. Install dependancies
rvm requirements
after this command, will showing the dependeices package you need to install
5. Install Ruby 1.9.3
rvm install 1.9.3
6. Set defualt ruby version
rvm use 1.9.3 --default
7. Install RubyGems
rvm rubygems current
RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem").
8. Install Rails
rvm 1.9.3 do gem install rails
When finish all step, now we can start develop our ror projects.
0 comments:
Post a Comment