NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Installing Ruby and Rails on Mac OS X
Topic:Ruby   Date: 2009-11-22
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

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$


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2011 NetAdminTools.com