Questions tagged [shared-library]
The shared-library tag has no usage guidance.
324
questions
0
votes
0
answers
29
views
Prevent a program from writing the HOME directory using SMACK
I have a binary program that creates an empty folder in the HOME directory everytime it starts up. I don't like that and want to use the SMACK mechanism to stop it from doing that. My idea is to label ...
1
vote
0
answers
23
views
How this executable is able to locate this shared library invisible to ldconfig? [duplicate]
I have an executable vimba, which uses a shared library libVmbC.so, which is not installed to the standard location. The copies reside at:
paul@desktop:~/st-cpp/vimba/build$ sudo find / -name "...
2
votes
1
answer
36
views
Why doesn't this executable load a relatively-pathed module library even though RPATH is set?
I migrated this question from Stack Overflow; although there is a programming aspect to it, the more I've tried to understand what's going on, the more I think this may have more to do with RPATH and $...
0
votes
1
answer
56
views
Need to install HDF5 library 1.8.16 on Ubuntu 18.04
I need to run an older software that requires this specific version of HDF5 library. But Ubuntu 18 already consists 1.10.0-patch 1, which is a higher version. So in result I get:
"Headers are 1.8....
0
votes
0
answers
39
views
Issue with `libz.so.1` when running PhantomJS
After extracting the file contents from the phantomjs archive, I ran the command phantomjs and was met with the error:
phantomjs: error while loading shared libraries: libz.so.1: cannot open shared ...
0
votes
0
answers
36
views
Linux so convention: is the .so link intended to come from dev packages?
On my Ubuntu jammy Linux PC, after installing the libuv1 package (apt-get install libuv1), I noticed that there was a file, named libuv.so.1.0.0 and a symbolic link to it, named libuv.so.1:
$ find /...
0
votes
3
answers
131
views
Making changes to the shared library
Suppose we have a C program that uses the shared library.
If you make changes to a shared library and rebuild it, all programs using that library will automatically receive those changes the next time ...
0
votes
0
answers
15
views
Shared library not found when installing samba-ad-dc with 800-171 security policy enabled
In the interest of ensuring compliance I’m trying to get the Samba DC running on Rocky Linux 8 with the FIPS 800-171 security policy enabled. Fresh minimal VM install from the DVD image, I download ...
0
votes
1
answer
62
views
Substitute a new man page for an older one
I've just built (from source) a current version (ver 2.1) of libgpiod on my RPi 4B. There are six (6) "command-line tools" included in the source tarball for libgpiod. During the make ...
0
votes
1
answer
304
views
Unable to start gnome applications because of shared library libappstream
Whenever I am trying to start a gnome applications (like calculator, Files, event gnome-control-center), I get the following error:
gnome-control-center: error while loading shared libraries: ...
2
votes
2
answers
387
views
Distinguish direct and indirect dependencies of a binary on Linux?
ldd on Linux will give the list of all shared libraries on which a given binary depends. This is usually much more extensive than the libraries that were listed on the linker command line used to ...
1
vote
1
answer
61
views
Synology DSM6 Entware running dovecot: libz.so: cannot open shared object file: No such file or directory (But it's there!)
I have a very strange problem on my Synology DS220+ NAS. (Kernel 4.4.59+, x86_64 GNU/Linux, synology_geminilake_220+)
dovecot, installed via opkg from Entware, has been running since years on my NAS. ...
1
vote
0
answers
98
views
Runtime library search order on AIX
If I understand correctly, the variables LIBPATH and LD_LIBRARY_PATH have a higher priority than the argument to the linker -blibpath. I'm looking for how to tell the loader to search for libraries ...
0
votes
1
answer
68
views
is it possible to link the zlib when genreate so with gcc
I need to invoke the c method from rust. Fisrt step, I am using gcc to generate a so file like this:
gcc -shared *.o -o libsynctex_parser.so
But when I build the rust project, it shows that the c ...
0
votes
0
answers
257
views
ld.so issue after upgrading Ubuntu to release 22.04
I have upgraded Ubuntu from 18.04 to 22.04, but I'm getting the following error:
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1' from LD_PRELOAD cannot be preloaded (cannot open ...
4
votes
1
answer
2k
views
Cannot exceute binary: required file not found
I see that there are other questions like this out there, but the answers there did not work for me.
I am using I downloaded the Julia 1.9.2 (Linux, x86-64, glibc) prebuilt binary and tried to execute ...
0
votes
0
answers
25
views
Who's been in my /opt/lib dotfiles?
Long story short, I recently decided to compile blender from source for the second time in a year. Not sure if I took this long at it last year. As usual, it all comes down to the libraries being in ...
0
votes
1
answer
172
views
Why accompanying shared library to which the one requires it fail like:
As Debian program often lags of shared library / dependency, so accompanying it with the eligible shared library should work, i.e. by the same latest update of roll-based/quick update OS, e.g. Arch ...
1
vote
2
answers
9k
views
How to resolve this error "ERROR: ld.so: object 'xxx' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored. "
To utilize the proxy on my Ubuntu system, I required the installation of proxychains. Here are the steps I took:
sudo apt-get install proxychains
sudo vim /etc/proxychains.conf
...
[ProxyList]
...
1
vote
1
answer
620
views
Install a package and its associated or required shared libraries (.so) without sudo access
I needed to install ffmpeg on my company's server without sudo access. Here is how I did it:
Add $HOME/bin and $HOME/usr/bin to my PATH, and $HOME/usr/lib/x86_64-linux-gnu/ to my LD_LIBRARY_PATH
...
0
votes
1
answer
66
views
Do I need to recompile Vim if Python changes a minor version?
I use a compiled Vim on my machine.
This compiled vim attempts to load the shared libary libpython3.10.so.1.0
I just updated my system and apparently Python deleted the old Python 3.10 libaries and ...
0
votes
3
answers
1k
views
Error while generating cookbook: Missing shared library "libcrypt.so.1"
I encountered an error when trying to generate a cookbook using the command chef generate cookbook test-cookbook. The error message I received is as follows:
ERROR : exit status 127
/opt/chef-...
0
votes
1
answer
656
views
libx264.so.155: cannot open shared object file: No such file or directory
While the above is true, I have:
$ sudo apt install libx264-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libx264-dev is already the newest ...
1
vote
0
answers
31
views
Bundle library for two architectures in the same package
I need to ship a Racket package that is cross compatible on x86 and arm. I have a shared library I depend on via FFI that I would like to bundle in, so that the user doesn't need to install it.
What ...
2
votes
2
answers
596
views
Are library symlinks used to load libraries?
I had someone tell me this, "I do know the symlinks are not used on linux when loading a library."
However, this does not seem correct to me. Too often I have had to fix broken symlinks when ...
1
vote
1
answer
583
views
Kali Linux: Error while loading shared libraries
I’m getting an error:
error while loading shared libraries: libtbb.so.2: cannot open shared
object file: No such file or directory
On Kali Linux.
Is there any way to fix this?
Yes, I tried to ...
1
vote
0
answers
153
views
Provide a link order for `.so` libraries
I need to dynamically link to a number of .so shared libraries from R. R can only do this one at a time using the dyn.load function, which takes the file path of the shared object. However, if the ...
1
vote
1
answer
143
views
What IPC is used between an application and a library in Linux?
When you have a Linux application that depends on a library (dynamically-linked), how does the application communicate with the library? What inter-process communication method is used?
-2
votes
1
answer
115
views
Megajogos, libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Where do i find libgtk-x11-2.0.so.0, I can't find it on sid or ATP.
I installed the game by following the instructions on the official website.
Thank you
-2
votes
2
answers
268
views
Tell to linux binary not load specific shared libraries
I have a problem with shared libraries, Command show warning each time when it run's,
PHP Warning: PHP Startup: Unable to load dynamic library 'xxxx.so'
whereas it run fine with not issues, i want to ...
0
votes
1
answer
99
views
How to install ttyd from source on Fedora?
I'm trying to compile ttyd that requires libwebsockets on Fedora. My system has an outdated version of ttyd and I need a newer one to run vhs tool.
Both projects use CMake, I was able to compile and ...
0
votes
1
answer
911
views
Shared library error when using rsync
I'm trying to transfer a folder from a backup location to my $HOME folder but I keep getting the error:
rsync: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No ...
1
vote
0
answers
153
views
How do AppImage tools decide what .so files to include? Why produced different .so-files-including list from different distros?
Compiled a Qt project and created .AppImage for it, on two different Linux distros ( Qt was installed via different ways).
The two output .AppImage contain different .so files. Both .AppImage run.
I ...
1
vote
1
answer
351
views
Debian shared library setup
I have a Debian package for a shared library.
Lets assume the lib is called threadx.
And I have the version 0.0.1 installed.
So this package contains:
/lib/i386-linux-gnu/libthreadx.so.0.0.1
/lib/i386-...
0
votes
1
answer
366
views
Loading shared object to specific processes in Linux
I want to load a shared object to certain processes, there are certain conditions that are required
loading to only specific processes and not all of them
it has to be done before the process code ...
-1
votes
1
answer
403
views
Find shared libraries that ldd won't list?
I have a script that would run through and pull in needed shared libraries (and another that will report unused libraries), using ldd however certain things like the libnss_* items part of the glibc ...
2
votes
2
answers
713
views
apt-get install does not find local library
After I tried to install gstreamer1.0-rockchip1 and get:
The following packages have unmet dependencies:
gstreamer1.0-rockchip1 : Depends: librockchip-mpp1 but it is not installable
E: Unable to ...
9
votes
4
answers
2k
views
Executable vs Library in Bash Script
When reading over Google's shell style guide, I found the following line that confused me a little: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must ...
0
votes
1
answer
280
views
Script to determine which shared libraries are not used?
I don't want to reinvent the wheel, but I'm looking for a script that can run through and list out shared libraries that are not used.
The idea would be to ldd everything to create a list. From there,...
1
vote
2
answers
983
views
Figuring out location of a loaded shared library
I'm maintaining a C-program, that uses Oracle client libraries. The libraries expect the ORACLE_HOME environment variable to be set, and fail to work without it -- in many cases.
In our situation, the ...
0
votes
1
answer
4k
views
/usr/bin/ld: cannot find -lstdc++
I am using ubuntu 14.04 64 bit OS
when i am running my verilog code in synopsys vcs it shows me the following error, i think there might some missing packages in ubuntu, i search through but i didn't ...
0
votes
1
answer
918
views
apt packages - static vs dynamic libraries
I use Ubuntu 18.04. I install libraries using apt, for example:
sudo apt install freeglut3-dev
Does apt always install dynamic libraries or I can determine if a package contains static or dynamic ...
0
votes
2
answers
292
views
Cannot link to matlab libmat.so and libmx.so under Eclipse IDE
I am trying to compile matcreat.cpp under Eclipse C++ IDE. It allows to exchange matlab data with c++ programs. At some point I compile the program :
/*
* matcreat.cpp - MAT-file creation program
*
...
1
vote
3
answers
3k
views
PHP Extensions Are Not Enabled
I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.
For example, if I run php -m | grep dom from the command line ...
4
votes
2
answers
5k
views
How do I "install" a shared libray
I am developing a C++ application that uses external libraries, using gcc. For instance libtiff and libpng. I obtained these by apt-get and everything is working fine.
But then I added another third ...
2
votes
2
answers
16k
views
Unable to load shared library 'libdl.so' or one of its dependencies
I'm trying to compile a project and the compilation fails due to a missing library.
System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies. In order to help ...
0
votes
1
answer
128
views
How to link using -lfoo when there are versioned names of libfoo but no libfoo.so
Suppose /usr/lib/x86_64-linux-gnu/ contains libfoo:
libfoo.so.2 -> libfoo.so.2.0.0 (symbolic link)
libfoo.so.2.0.0
Notably missing is libfoo.so.
Suppose there is a program /usr/local/bin/...
1
vote
3
answers
5k
views
Using wkhtmltopdf on RHEL returns libpng15.so.15 shared library not found
To give a little background, I am using wkhtmltopdf to convert a local .html to a .pdf for use as evidence for our pipeline/release.
However this html that is generated has some remote scripts and ...
1
vote
0
answers
2k
views
Error while loading shared libraries: libyaml-0.so.2: file too short
I've installed flatpak on ARCH-LINUX and rebooted, the next thing to do was test it on terminal, then I typed: flatpak
And then:
flatpak: error while loading shared libraries: /usr/lib/libyaml-0.so.2: ...
0
votes
1
answer
525
views
How do you list a program's all library dependencies, configs when the program has attached flags/options?
How do you list all of a program's dependencies (libraries) and configs even if it gets argv given to it which changes the dependencies let's say?