Can't include shared libraries.
See original GitHub issue- Version: 20.38.5
- Target: Linux x64 AppImage
Some of my users are experiencing this error:
Error: libsecret-1.so.0: cannot open shared object file: No such file or directory
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/run/firejail/appimage/.appimage-10275/resources/app.asar/node_modules/keytar/lib/keytar.js:1:169)
at Object.<anonymous> (/run/firejail/appimage/.appimage-10275/resources/app.asar/node_modules/keytar/lib/keytar.js:61:3)
How can I include shared libraries?
- Host: Linux Mint Tara 19 x64
- Node version: v8.10.0
- NPM version: 3.5.2
- package.json:
{
"name": "gkreta",
"version": "0.7.0",
"description": "It's an application for displaying your informations from the KRÉTA systems. (Written in Electron)",
"main": "main.js",
"scripts": {
"start": "electron .",
"postinstall": "electron-rebuild",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"dist:linux": "electron-builder --linux appimage",
"dist:win": "electron-builder --win"
},
"author": "thegergo02",
"license": "GPL-3.0",
"dependencies": {
"keytar": "^4.4.0"
},
"devDependencies": {
"electron": "^4.0.4",
"electron-builder": "^20.38.5",
"electron-rebuild": "^1.8.4"
},
"build": {
"appId": "thegergo02.gkreta",
"productName": "gKreta",
"artifactName": "${productName}.${ext}",
"copyright": "Copyright © 2019 Gergő Vári",
"directories": {
"buildResources": "build",
"output": "dist"
},
"win": {
"target": [
{
"target": "nsis",
"arch": "x64"
}
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true
},
"mac": {
"target": "dmg",
"category": "public.app-category.education"
},
"linux": {
"target": "AppImage",
"maintainer": "thegergo02",
"vendor": "gKreta",
"synopsis": "Based on Electron, a replacement for KRÉTA's web interface.",
"description": "Based on Electron, this is a replacement for KRÉTA's web interface.",
"category": "Education"
},
"deb": {
"compression": "xz",
"packageCategory": "Education",
"priority": "optional"
},
"compression": "maximum",
"files": [
"!{dist,.gitignore,.github,.conf,dist}"
],
"extraResources": [
"libraries"
],
"asar": true
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Cant use shared libraries in Qt project - Stack Overflow
The error simply boils down to how shared libraries are searched by LD for dynamic linking on Unix OS family. Today, I've answered...
Read more >How to manage shared libraries — conan 1.56.0 documentation
On Windows, the dynamic linker, will search in the same directory then in the PATH directories. ... Manage Shared Libraries with Environment Variables....
Read more >Solving The “Cannot Open Shared Object File - Baeldung
Learn what causes the "cannot open shared object file: No such file or directory" error in Linux, and how to fix it.
Read more >Why can't my program find the libraries in "/usr/local/lib"?
/usr/local/lib is not in the default Ubuntu path. You should add it at the end of the LD_LIBRARY_PATH environment variable in ...
Read more >How to use iCloud Shared Photo Library - Apple Support
iCloud Shared Photo Library lets you share photos and videos seamlessly with up to five other ... Learn how to set up and...
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 FreeTop 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
Top GitHub Comments
Not doing anything is never a good reason to close tickets in my humble opinion. So I don’t know what good this bot is supposed to be doing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.