Created
January 23, 2012 16:39
-
-
Save mariusbutuc/1664153 to your computer and use it in GitHub Desktop.
Attempt to upgrade the ibm_db gem from v2.5.7 to v2.5.9 on a Mac with IBM DB2 Client v9.5.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing ibm_db (2.5.9) with native extensions | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/Users/marius/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb | |
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 | |
--without-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=/Users/marius/.rvm/rubies/ruby-1.9.2-p290/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 DB2 libraries. | |
Follow the steps below and retry | |
Step 1: - Install IBM DB2 Universal Database Server/Client | |
step 2: - Set the environment variables IBM_DB_INCLUDE and IBM_DB_LIB as below | |
(assuming bash shell) | |
export IBM_DB_INCLUDE=DB2HOME/include (eg. /home/db2inst1/sqllib/include or /opt/ibm/db2/v9.5/include) | |
export IBM_DB_LIB=DB2HOME/lib (eg. /home/db2inst1/sqllib/lib or /opt/ibm/db2/V9.5/lib32) | |
step 3: - Retry gem install | |
Gem files will remain installed in /Users/marius/.rvm/gems/ruby-1.9.2-p290@IMCloud/gems/ibm_db-2.5.9 for inspection. | |
Results logged to /Users/marius/.rvm/gems/ruby-1.9.2-p290@IMCloud/gems/ibm_db-2.5.9/ext/gem_make.out | |
An error occured while installing ibm_db (2.5.9), and Bundler cannot continue. | |
Make sure that `gem install ibm_db -v '2.5.9'` succeeds before bundling. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment