Sep
3
Installing the Ruby driver for DB2 on Mac OS X Snow Leopard
By Antonio Cangiano. Filed under DB2, Mac, Ruby, Ruby on Rails
Now that Mac OS X 10.6 is out, it’s time to leave the world of 32 bit computing behind. The pre-installed Ruby interpreter will run in 64 bit mode by default, so you may need to pay attention when installing some C-based gems. The ibm_db Ruby gem for DB2 can easily be installed or updated to the latest available version by following these simple steps:
$ sudo -s
$ export IBM_DB_LIB=/Users/<username>/sqllib/lib64
$ export IBM_DB_INCLUDE=/Users/<username>/sqllib/include
$ export ARCHFLAGS="-arch x86_64"
$ gem install ibm_db
You can verify that the installation was successful my running the following:
$ irb
>> require 'ibm_db.bundle'
=> true
Please let me know if you encounter any issues, I’d be glad to help you.
Related Articles:
- Enabling support for DB2 and Python/Django/SQLAlchemy on Mac OS X Snow Leopard
- TextMate bundle for DB2
- DB2 on Mac OS X Snow Leopard
- Getting MacRuby’s compiler to work
- Setup Ruby Enterprise Edition, nginx and Passenger (aka mod_rails) on Ubuntu
If you enjoyed this post, then make sure you subscribe to our RSS Feed.
Comments
One Response to “Installing the Ruby driver for DB2 on Mac OS X Snow Leopard”
Leave a Reply






















[...] Installing the Ruby driver for DB2 on Mac OS X Snow Leopard [...]