Ruby and SQLite come with Mac OS X. Ruby is a bit older, and had some trouble installing Rails, so we ugraded:
srv-8:~ usr4$ sudo port upgrade sqlite3 Password: ---> Fetching ncursesw ---> Attempting to fetch ncurses-5.7.tar.gz from http://mirrors.kernel.org/gnu/ncurses ---> Verifying checksum(s) for ncursesw ---> Extracting ncursesw ---> Configuring ncursesw ---> Building ncursesw ---> Staging ncursesw into destroot ---> Deactivating ncursesw @5.6_1 ---> Installing ncursesw @5.7_0 ---> Activating ncursesw @5.7_0 ---> Cleaning ncursesw ---> Fetching ncurses ---> Verifying checksum(s) for ncurses ---> Extracting ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Deactivating ncurses @5.6_0 ---> Installing ncurses @5.7_0 ---> Activating ncurses @5.7_0 ---> Cleaning ncurses |
RubyGems won’t update correctly:
srv-8:~ usr4$ gem update --system Updating RubyGems... ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 403 fetching http://gems.rubyforge.org/yaml srv-8:~ usr4$ sudo gem sources -a http://gemcutter.org/ ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 403 fetching http://gemcutter.org/yaml |
The trick is to install manually. Get the new RubyGems package from here:
http://rubyforge.org/frs/?group_id=126&release_id=37073 |
Let’s install this manually:
srv-8:~ usr4$ mkdir ~/tmp srv-8:~ usr4$ cp ~/Down*/ruby* ~/tmp srv-8:~ usr4$ ls ~/tmp rubygems-1.3.5.tgz srv-8:~ usr4$ tar -xzf ~/tmp/ruby* srv-8:~ usr4$ ls ~/tmp rubygems-1.3.5.tgz srv-8:~ usr4$ ls ruby* ChangeLog README pkgs GPL.txt Rakefile setup.rb History.txt bin test LICENSE.txt cruise_config.rb util Manifest.txt lib srv-8:~ usr4$ cd ruby* srv-8:rubygems-1.3.5 usr4$ sudo ruby setup.rb Password: RubyGems 1.3.5 installed === 1.3.5 / 2009-07-21 . . . RubyGems installed the following executables: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem |
Now let’s install Rails:
srv-8:rubygems-1.3.5 usr4$ sudo gem install rails Successfully installed activesupport-2.3.4 Successfully installed activerecord-2.3.4 Successfully installed rack-1.0.1 Successfully installed actionpack-2.3.4 Successfully installed actionmailer-2.3.4 Successfully installed activeresource-2.3.4 Successfully installed rails-2.3.4 7 gems installed Installing ri documentation for activesupport-2.3.4... Installing ri documentation for activerecord-2.3.4... Installing ri documentation for rack-1.0.1... Installing ri documentation for actionpack-2.3.4... Installing ri documentation for actionmailer-2.3.4... Installing ri documentation for activeresource-2.3.4... Installing ri documentation for rails-2.3.4... Installing RDoc documentation for activesupport-2.3.4... Installing RDoc documentation for activerecord-2.3.4... Installing RDoc documentation for rack-1.0.1... Installing RDoc documentation for actionpack-2.3.4... Installing RDoc documentation for actionmailer-2.3.4... Installing RDoc documentation for activeresource-2.3.4... Installing RDoc documentation for rails-2.3.4... srv-8:rubygems-1.3.5 usr4$ |
Let’s update Rake:
srv-8:rubygems-1.3.5 usr4$ sudo gem update rake Updating installed gems Updating rake-compiler Successfully installed rake-compiler-0.6.0 Gems updated: rake-compiler Installing ri documentation for rake-compiler-0.6.0... Installing RDoc documentation for rake-compiler-0.6.0... srv-8:rubygems-1.3.5 usr4$ |