| Message: 60760 |
 |
BY: Alex Pitigoi (alexp) DATE: 2008-09-24 19:35 SUBJECT: RE: Connection fails with no Error Msg Steven,
I may have contributed to this misunderstanding and I need to clarify once more: you would only need DB2 Client in order to benefit from the header files that are packaged with it. So far IBM DB2 Driver for ODBC and CLI has not packaged header files, but that is bound to change, to support use case such as yours.
Given that you install IBM_DB Rails Adapter gem on a platform (Solaris/Sparc) on which the underlying ibm_db driver dependency gets built on-the-fly, the header files are required, therefore the DB2 Client (packaging these header files) is required. It's only on Windows 32-bit that the IBM_DB gem contains the ready-to-use ibm_db native driver and no such build on-the-fly occurs during gem install.
What is surprising though is that you did manage to get a successful ibm_db driver build although it's not clear how the DB2 CLI header files were found on that system if only the IBM DB2 Driver for ODBC and CLI was installed...
Can you please check the .gem contents (it's in fact a simple .tar) and see if the ibm_db.so driver was in fact built ?
Or you can go ahead an use the expected DB2 Client in order to get a hold of those needed header files and properly build ibm_db.so
I know it could be frustrating, but this (DB2 CLI) is a native dependency for the IBM_DB adapter (underlying ibm_db driver dependency), and that's how you deal with it: build it using the headers. We are working on providing the headers in a more friendlier manner.
Please let us know about your progress.
Thanks,
Alex P | |