<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d23884446\x26blogName\x3dJust+Another+Tech+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://justanothertechblog.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://justanothertechblog.blogspot.com/\x26vt\x3d-8342903261382138056', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Just Another Tech Blog

Anything and everything having to do with technology, computers, science, and most of all... Linux! The documentation of my Linux endeavor.



A quick guide to installing Ruby

Sunday, May 28, 2006

As a follow up to my last post, I have decided to post a quick noob guide on how to install Ruby, RubyGems, and Ruby on Rails.
To start off, download the latest version of Ruby (Ruby 1.8.4 is currently reccomended for Ruby on Rails). You can download Ruby (1.8.4) here. Once you have downloaded Ruby, unpack it using:

tar -xzvf ruby-1.8.4.tar.gz

Change to the created directory, and type the following:

./configure

Then, run make:

make

Then, run make install (you may have to be root to do so):

make install

And there you have it, Ruby is installed. Next, I will talk you through installing RubyGems, the standard Ruby package manager. First, you must download RubyGems. You can do so by clicking this link. Once again, unpack .tgz package:

tar -xzvf rubygems-0.8.11.tgz

Then, just run setup.rb (once again, as root if needed):

ruby setup.rb

Now RubyGems is installed. Next, we install Rails (Ruby on Rails). Ruby on Rails is "an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration" To install Rails, simply type the following:

gem install rails --include-dependencies

And there you have it, a complete Ruby setup with RubyGems and Rails! Congrats, now start programming! If you have errors installing any of the above, just leave a reply to this post and I will try to help. OR, use this link to get to the Ruby documentation pages. OR, use this link to get to the Ruby Forum.
posted by linnerd40, Sunday, May 28, 2006


0 Comments:

Add a comment