Created
February 9, 2011 05:11
-
-
Save nesquena/817920 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.2
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
$ sudo apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-generic | |
$ sudo apt-get install libc6-dev libssl-dev libmysql++-dev libsqlite3-dev make | |
$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz | |
$ tar -xvzf ruby-1.9.2-p0.tar.gz | |
$ cd ruby-1.9.2-p0/ | |
$ ./configure --prefix=/usr/local/ruby | |
$ make && sudo make install | |
$ sudo nano /etc/environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ruby/bin" | |
$ source /etc/environment | |
$ ruby -v | |
$ sudo ln -s /usr/local/ruby/bin/ruby /usr/local/bin/ruby | |
$ sudo ln -s /usr/local/ruby/bin/gem /usr/bin/gem | |
$ sudo ln -s `which rake` /usr/local/bin/ | |
$ sudo gem update --system | |
$ sudo gem install rails passenger home_run whenever --no-rdoc --no-ri | |
$ sudo home_run --install | |
$ sudo gem update passenger && sudo gem cleanup | |
$ sudo passenger-install-nginx-module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment