May
28
2011
28
2011
Install Ruby 1.9.2 on Ubuntu
As you all know Ruby is one of the most popular programming language on the web. It is recommended to install ruby 1.9.2 instead of 1.8.x
I tried to install ruby from the package manager on Ubuntu, but ruby 1.9.2 is not there in the repo.
So, I am going to show you how to install ruby 1.9.2 on Ubuntu
Step 1 -
Fire up the terminal and execute these few commands -
$ sudo apt-get install build-essential zlib1g zlib1g-dev libruby1.9.1 libxml2 libxml2-dev libxslt1-dev $ sudo apt-get build-dep ruby1.9.1 $ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2 $ tar xvjf ruby-1.9.2-p0.tar.bz2
Step 2 -
Open ruby-1.9.2-p0/ext/Setup and uncomment the zlib line.
Step 3 -
Now, simply configure, compile and install it! -
$ ./configure $ make $ sudo make install
AND RUBY 1.9.2 IS INSTALLED!
To check the ruby version -
$ ruby -v => ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
To check the rubygems version -
$ gem -v => 1.3.7
Hope this quick tip will help many Ubuntu users who want to install ruby 1.9.2
Cheers!
Popularity: 3% [?]
Related Posts
Subscribe
Recent Posts
- Login into phpmyadmin without username and password
- 10+ tips to localise your php application
- 40+ Techniques to enhance your php code – Part 3
- 40+ Techniques to enhance your php code – Part 2
- 40+ Techniques to enhance your php code – Part 1
- CSSDeck – Collection of Pure CSS Creations
- Execute shell commands in PHP
- Php get list of locales installed on system
- Sound cracking in Ubuntu 11.10
- PHP script to perform IP whois
Binarytides
Tags
amazing php techniques
amazing php tips
apache
box2d
bsnl
c
c++ portscanner code
cron
css
dns
enhance php code
hacking
html
html5
improve php code
javascript
linux
master php code
masters php techniques
mysql
networking
optimize php code
packet sniffer c
php
php advanced techniques
php best practices
php techniques
php tips
php tips and tricks
php tutorial
portscanner code c
python
raw socket programming
raw socket programming c
raw socket programming tutorial
ruby
security
socket programming
socket programming tutorial
Sockets
ubuntu
useful php techniques
winpcap
winsock
write efficient php code
An article by f00





Awesome!
Thanks !
thanks man,
good instructions, useful post.
thanks for your time.
mark
Eh… THANKS!!!! :D