Library not loaded error on running on mac machines
See original GitHub issueHi 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:
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:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:Thanks.
@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:Thanks.