Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 98155
BY: Jason E (jgervin)
DATE: 2012-07-30 15:13
SUBJECT: RE: step by step guide

 

Here is the full error:

Building native extensions. This could take a while...
ERROR: Error installing ibm_db:
ERROR: Failed to build gem native extension.

/blah/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
Detected 64-bit Ruby

Detected usage of IBM Data Server Driver package. Ensure you have downloaded 64-bit package of IBM_Data_Server_Driver and retry the 'gem install ibm_db' command

creating gil_release_version
creating unicode_support_version
checking for SQLConnect() in -ldb2... no
checking for SQLConnect() in -ldb2... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/blah/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-IBM_DB-dir
--without-IBM_DB-dir
--with-IBM_DB-include
--without-IBM_DB-include=${IBM_DB-dir}/include
--with-IBM_DB-lib
--without-IBM_DB-lib=${IBM_DB-dir}/lib
--with-db2lib
--without-db2lib
--with-db2lib
--without-db2lib
extconf failure: Unable to locate libdb2.so/a under /blah/work/dsdriver/odbc_cli_driver/linuxamd64/clidriver/lib

Follow the steps below and retry

Step 1: - Install IBM DB2 Universal Database Server/Client

step 2: - Set the environment variable IBM_DB_HOME as below

(assuming bash shell)

export IBM_DB_HOME=<DB2/IBM_Data_Server_Driver installation directory> #(Eg: export IBM_DB_HOME=/opt/ibm/db2/v10)

step 3: - Retry gem install



Anyone have any suggestions?


Thread View

Thread Author Date
step by step guideJason E2012-07-27 15:36
      RE: step by step guideDavid Adler2012-07-27 16:31
            RE: step by step guideJason E2012-07-30 13:47
            RE: step by step guideJason E2012-07-30 14:54
                  RE: step by step guideJason E2012-07-30 15:13
                        RE: step by step guideJason E2012-07-30 15:16
                  RE: step by step guidePraveen Devarao2012-07-30 15:48
                        RE: step by step guideJason E2012-07-30 18:50
                        RE: step by step guideJason E2012-07-30 20:05
                              RE: step by step guidePraveen Devarao2012-07-31 02:14
                                    RE: step by step guidePraveen Devarao2012-07-31 02:27
                                          RE: step by step guideJason E2012-07-31 13:44
                                                RE: step by step guidePraveen Devarao2012-07-31 17:21
                                                      RE: step by step guideJason E2012-07-31 19:52
                                                            RE: step by step guideJason E2012-07-31 20:17
                                                                  RE: step by step guidePraveen Devarao2012-08-01 04:35
                                                                        RE: step by step guideJason E2012-08-01 13:36
                                                                              RE: step by step guidePraveen Devarao2012-08-02 04:18
                                                                                    RE: step by step guidePraveen Devarao2012-08-02 04:21
                                                                                          RE: step by step guideDave B2013-01-31 22:15
                                                                                                RE: step by step guidePraveen Devarao2013-02-01 05:23
                                                                                                      RE: step by step guideDave B2013-02-01 12:47
                                                                                                            RE: step by step guidePraveen Devarao2013-02-01 17:44

Post a followup to this message