I have been trying to get ruby 1.8.6 to connect to a MS SQL Server 2005 on Mac OS X snow leopard following the guide here http://wiki.rubyonrails.org/database-support/ms-sql. I have installed the Ruby ODBC Bindings and the dbi and dbd-odbc gems and ruby was compiled from source.
If I run this in irb, DBI.connect('dbi:ODBC:A_DSN', 'USERNAME', 'PWD' ), the ruby process just hangs indefinitely.
I have used gdb to look at the hung process and it is stuck on semaphore_wait_signal_trap
.
If I compile ruby 1.8.7 and install the odbc bindings in the same way everything works fine, so I am not sure if it is an issue with compiling the bindings in snow leopard or not. I was able to get this to work on OS X 10.5 and ruby 1.8.6 before upgrading to snow leopard.
Thanks for any light that can be shed!