question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library not loaded error on running on mac machines

See original GitHub issue

Hi team,

I am working on an electron app, which uses node-ibm_db. I am getting ‘Library not loaded’ error while trying to run the app on other’s machines. There are no errors while building the app.

Screenshot: image

It seems that the library location is being absolute-referenced to my local machine path instead of linking to the assets in the app itself.

This issue is only occuring for mac builds (windows and linux binaries are working fine), so I figured it might be arising from bindings.gyp. Any suggestions in this regard would be really helpful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bimalkjhacommented, Feb 21, 2019

Another simpler way to install ibm_db for the use with electron on vscode is, install ibm_db using command: npm install ibm_db --dist-url=https://atom.io/download/electron If you have already installed ibm_db then try below steps:

cd .../node_modules/ibm_db
rm -rf build
npm install --dist-url=https://atom.io/download/electron
node test/test-basic-test.js

Thanks.

1reaction
bimalkjhacommented, Oct 12, 2017

@tarzzz Please share the steps to reproduce the issue on mac starting with npm install electron. You can set below env vars as a workaround and verify the error:

export DYLD_LIBRARY_PATH=/Users/tarun/plotly/plotly-database-connector/node_modules/ibm_db/installer/clidriver/lib:/Users/tarun/plotly/plotly-database-connector/node_modules/ibm_db/installer/clidriver/bin:$DYLD_LIBRARY_PATH
export PATH=$PATH: $DYLD_LIBRARY_PATH

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 'Dyld: Library not Loaded' Error on MacOS - Appuals
How to Fix 'Dyld: Library not Loaded' Error on MacOS ; Navigate to the “/usr/lib” folder. Press the “Command” + “Space” simultaneously. Type...
Read more >
xcode14:Library not loaded: /usr/l… | Apple Developer Forums
I use xcode 14 and run to iphone 11.2 , and my app crashes when runs. The crash log is " dyld: Library...
Read more >
macos - dyld: Library not loaded ... Reason: Image not found
I think the problem has something to do with the executable only looking in the directory it is in as when I paste...
Read more >
Dyld Library Not Loaded: A Bundle of Solutions Disclosed
Dyld library not loaded error indicates an incorrectly placed or missing library. Click here to read more about the problem and sort it...
Read more >
HEASoft: Known Issues In v6.31.1 - HEASARC
This error typically implies that your compiler suite (e.g. Homebrew or MacPorts) is out-of-synch with the Apple (XCode) Command Line Tools (CLT) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found