Bootstrap

We are on our bootstrap stage.
Bootstrap means almost everything is done for the first time.
For example-

Setting up your Ruby on Rails development environment on mac OS X 10.6

You will need to get familiar with the terminal. Keep it docked in your programs pane. You are going to use it a lot.

General note: in some installations you are required to change your .profile or your .bash_profile. I prefer using only .bash_profile and apply all the changes in the same file.

Memorize the holy trinity 🙂

$ ./configure
$ make
$ sudo make instal

Now we can get to work…

  • Install X-code, from your OS X installation disk. It has gcc compiler and some other tools that will help you during your installations.
  • Install macports, http://www.macports.org/install.php. The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing,
    and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system.
  • Install wget, a tool that helps fetching packages and files from internet locations
$ port install wget
$ port install readline
$ rvm install 1.8.7
$ rvm install 1.9.2
$ rvm 1.9.2 --default
$ gem install bundler
  • Install rails freamework
$ gem install rails
  • Install ruby debug  1.9 gem which enables to debug ruby from rails console.
$ gem install ruby-debug19

OK ready to go!

Advertisements
  1. #1 by labria on June 10, 2011 - 10:21

    You can also use HomeBrew (http://mxcl.github.com/homebrew/) — it’s cleaner than macports, and it’s written in ruby.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: