install python3 ibm_db Library not loaded

734 views
Skip to first unread message

Heqin Wang

unread,
May 10, 2017, 2:15:36 AM5/10/17
to ibm_db
I got error likes


ImportError: dlopen(/Users/heqinw/miniconda3/lib/python3.6/site-packages/ibm_db-2.0.7-py3.6-macosx-10.7-x86_64.egg/ibm_db.cpython-36m-darwin.so, 2): Library not loaded: /Users/heqinw/miniconda3/lib/python3.6/site-packages/libdb2.dylib
  Referenced from: /Users/heqinw/miniconda3/lib/python3.6/site-packages/ibm_db-2.0.7-py3.6-macosx-10.7-x86_64.egg/ibm_db.cpython-36m-darwin.so
  Reason: image not found

I tried someone post https://www.ibm.com/developerworks/community/blogs/96960515-2ea1-4391-8170-b0515d08e4da/entry/ibm_db_on_MAC_OS_Hints_and_Tips?lang=en. Set DYLD_LIBRARY_PATH and install_name_tool, but it still does not work.


Anyone can give me a help.
Thanks,
Heqin 

Swetha V

unread,
Jan 29, 2019, 9:13:47 AM1/29/19
to ibm_db
Hello,

Is this solved?

Thanks,
Swetha V

Saba Kauser

unread,
Jan 29, 2019, 9:25:24 AM1/29/19
to ibm_db

You need to change the library name using install_name_tool.

Can you do the following:
otool -L ibm_db.cpython-37m-darwin.so

ibm_db.cpython-37m-darwin.so:
libdb2.dylib (compatibility version 0.0.0, current version 0.0.0) ==> current library path is libdb2.dyib
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)


Then run install name tool to change old path i.e libdb2.dylib to new path as:
install_name_tool -change libdb2.dylib @loader_path/clidriver/lib/libdb2.dylib ibm_db.cpython-37m-darwin.so


We will automate this in next release. The dates are not finalized yet.


Shan Jiang

unread,
Apr 22, 2019, 2:49:36 AM4/22/19
to ibm_db
When will be next release???

Saba Kauser

unread,
Apr 22, 2019, 2:51:48 AM4/22/19
to ibm_db
The new release with this fix is available. ibm_db 3.0.1.
install as:
pip --no-cache-dir install ibm_db

make sure to use --no-cache-dir with pip.
Reply all
Reply to author
Forward
0 new messages