Ruby on Rails for Mac OS 10.4.7 Tiger

I bought a couple of Ruby on Rails books hoping to learn my way around the development platform but have been pretty confused with getting the environment set up. I get by so much on pages like this when I’m troubleshooting I figured I’d put this up to help anyone else in the same boat as me. Even though a lot of this information exists in other places in different contexts, my situation seemed common enough to warrant making my own rundown. Command line code snippets have been abbreviated and condensed, but should be enough to see what’s going on.

fixrbconfig error

On page 24 of ‘Agile Web Development with Rails’ they give you a tip to ‘fix’ the Apple default configuration of Ruby which produced the following error:

sudo gem install fixrbconfig
sudo fixrbconfig
====================
/usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h does not exist. This probably means you haven't yet installed Xcode from the Tiger DVD. You won't be able to compile Ruby extensions without it. Please install it then rerun this program.

I had just previously installed Xcode, so I knew that wasn’t it. I decided to run a search for the ‘ruby.h’ file in case it really was there, just in a different place, and it turned out it was:

cd /
find . -name "ruby.h" -print

./usr/lib/ruby/1.8/universal-darwin8.0/ruby.h

This searched through my entire hard drive, so it took a little while returning the odd ‘Permission denied’ error along the way, but eventually it did turn up, so I copied it to where fixrbconfig was expecting it to be, reran fixrbconfig and it all seemed to work out fine.

sudo cp /usr/lib/ruby/1.8/universal-darwin8.0/ruby.h /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h
sudo fixrbconfig
gratuitous blender image

you.wolstat.com

Subdomains and e-mail addresses are for lease. You could have a website up at 'you.wolstat.com' and/or even receive email to 'you@wolstat.com'. Contact me for details.


Valid XHTML 1.0!

Valid CSS!
August 1st 2008
Tags: Uncategorized

No Comments

Search engine strings

My web server logs all search engine queries that lead to this web site. Most of these must have matched my old journal entries which are temporarily offline. Here are the highlights from the last six months: sign that my boss is flirting with me journal on shopping bags attributes darned socks freelance profile ...
August 1st 2008
Tags: Uncategorized

One Comment

Favorite albums

Superpowerless - Dump Critics complain about the inconsistencies in recording techniques on this album, but what never falters is the intimacy and patience with which the songs are wrought. I was amazed to find out that as many as six songs on the disc are covers, they are so well chosen ...
August 1st 2008
Tags: Uncategorized

No Comments

HTML Philosophy

One big image versus many small images Cutting a design up into eight 2K images will help a page load faster than leaving it as one 20K image, (16K < 20K) right? Not really. Each HTTP request generates about 1K of server-client traffic overhead, so eight 2K images with HTTP headers ...

Search

The archives run deep. Feel free to search older content using topic keywords.

Browse by Category