Too Cool for Internet Explorer

Thursday, March 08, 2007


Celebrating 3 years 'madhatter to the world'


birthday_cake
I am happy to tell, that this weblog now exists for three years. There have been days I was thinking about taking it offline, but the still growing number of visitors made me keep it up. And sometimes I really have something interesting to tell so I post it here. And I think it's interesting to see that I came from lots of music, television and movie content to Oracle, DBA, sysadmin and hacker content. Probably the target audience has changed within these three years. But I said it from the beginning: this is about 'everything I am interested in and you might not care about'.

Technorati Tags:

Bookmark this on Del.icio.us
[ 2 comments ]
posted by madhatter @ 8:15 AM


Monday, March 05, 2007


Hack-a-lot: Ruby on Rails, Tiger, fink and Oracle

Maybe some of you remember my article about Ruby on Rails with Mac OS X Tiger and PostgreSQL. I tried to use Oracle back then in the first place, but had some issues.
I now stumbled upon an article in the Oracle Magazine how to use the database driver Ruby/OCI8 with ruby and rails.
Of course this wasn't that easy on a Mac. *gnarf*

Because the header files did not happen to appear where they are expected I first tried it with some symlinks, without any luck. Later I came across an article at the rubyonrails wiki where they mentioned that "many readers of comp.lang.ruby advocate installing ruby from source as the install of ruby that comes with Tiger is deemed to be slightly broken".

So I updated my fink branch and installed ruby 1.8.4 and the rubygems via fink after I slightly re-ordered my $PATH to have the fink binaries on top of the list. (Edit: You have to re-order your $PATH first, because you otherwise would mix up both versions of ruby, rake and rails somehow.) I don't have to use symlinks here or remove the ruby distribution from OS X' developer tools.

When this was done I used 'gem install rails', to install rails once more - with all it's dependencies.
'which rails' should show you something like '/sw/bin/rails' after installation has been finished.

I now was able to install the necessary ruby interface for Oracle using OCI8 API with an intermediate step in the installation process: 'ruby setup.rb config'
Now the header files were found and I can keep on with 'make' and 'make install'.


Technorati Tags: , , , , , , ,

Bookmark this on Del.icio.us
[ 0 comments ]
posted by madhatter @ 10:31 AM