Installing Ruby on Rails development platform, its a long process, which we need to do with our terminal, from download the source files itself to the installation part. Make it simple. Here, I just provided the installation script for Mac Intel platform since i am using it ;p and it proven. Just run a shell script file and run the whole installation. Download the file below:
Download Mac Intel Script Here
The Installation including:
- Ruby 1.8.4
- Rails Edge
- Gems
- FastCGI
- Lighttpd
- Image Magick (also as RMagick gem)
Those are the basic installation of so-called rails ready platform. For some cases you need to install your own gem by yourself.
After download rails-intel.tar.gz, just run the command:
$ tar zxf rails-intel.tar.gz
Then open up the script file to get better understanding how it work and all the installation pointing to /usr/local (you can change it, just change the PREFIX), Next, its better to set the path correctly for your sheel environment, normally the file to set will be .profile or .bash_login under your home folder:
export PATH="$PATH:$HOME/bin" export PATH="/usr/local/bin:/usr/local/sbin:$PATH" export MANPATH="/usr/local/man:$MANPATH"
Before you run the script, just better create a directory 'src' inside your home folder and run the script from '~/src/' as the starting point. Next, run the script:
$ sudo ./rails-intel.sh
Wait for the installation finishing, the last piece of installation process running is mysql installation. After mysql installation done, viola.. run the script below for mysql gem
# TODO Do this after MySQL is installed # NOTE: You may have to do "sudo gcc_select 3.3" first. sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Done!