Skip to main content

Questions tagged [shared-library]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

The library path of gold linker (ld.gold)

How to set library search path through environment variables? (since I'm using bazel) How to print library search path used by ld.gold (so I can check if I set it correctly) Context: I'm compiling a ...
Xiaochen Cui's user avatar
0 votes
1 answer
34 views

How to specify which glibc and libstdc++ to run the program, without sudo

I want to run a program on CentOS, but I met problem with the libstdc++ and glibc. I can't update both because I have no root privileges, and I would like the solution to only affect this particular ...
House Peace's user avatar
0 votes
0 answers
20 views

Mamba broken after updating ssl. ImportError: cannot dynamically load position-independent executable

I work on a linux server that is running Ubuntu. I have been using miniforge to manage environments with packages for specific tasks. Previously, I was using a global install of anaconda in but ...
Weston Elison's user avatar
0 votes
0 answers
11 views

Library not being found [duplicate]

I am getting the following error when running a Java Project: /home/morpho/lib64/libMorphoSmartSDKJavaWrapper.so.6.45.0.0: libmorphosdk.so.6: cannot open shared object file: no such file or directory ...
Noor's user avatar
  • 989
29 votes
2 answers
3k views

What does "6" mean in glibc.so.6?

When exploring the C++ binary, I find that libstdc++.so.6 is dyn-linked into libm.so.6 and libc.so.6: $ ldd /lib/x86_64-linux-gnu/libstdc++.so.6 linux-vdso.so.1 (0x00007ffcb737b000) ...
syheliel syheliel's user avatar
0 votes
0 answers
32 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 ...
Xinyu Wang's user avatar
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 "...
Paul Jurczak's user avatar
2 votes
1 answer
41 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 $...
StoneThrow's user avatar
  • 1,787
0 votes
1 answer
78 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....
imNotARobot's user avatar
0 votes
0 answers
52 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 ...
Майкл Шодеке's user avatar
0 votes
0 answers
43 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 /...
StoneThrow's user avatar
  • 1,787
0 votes
3 answers
241 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 ...
dsa14dfS's user avatar
0 votes
0 answers
24 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 ...
moosemaimer's user avatar
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 ...
Seamus's user avatar
  • 3,062
0 votes
1 answer
426 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: ...
Simon's user avatar
  • 3
2 votes
2 answers
469 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 ...
RJVB's user avatar
  • 254
1 vote
1 answer
74 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. ...
LichtiMC's user avatar
1 vote
0 answers
116 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 ...
ibse's user avatar
  • 341
0 votes
1 answer
90 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 ...
Dolphin's user avatar
  • 629
0 votes
0 answers
310 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 ...
Ponnilavan Elcot's user avatar
4 votes
1 answer
3k 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 ...
loonatick's user avatar
  • 171
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 ...
ixtmixilix's user avatar
  • 13.3k
0 votes
1 answer
242 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 ...
user avatar
1 vote
2 answers
12k 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] ...
tao zhang's user avatar
1 vote
1 answer
708 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 ...
Đào Minh Dũng's user avatar
0 votes
1 answer
74 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 ...
Tyler Durden's user avatar
  • 5,753
0 votes
3 answers
2k 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-...
utkarsh gupta's user avatar
0 votes
1 answer
862 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 ...
Daniel's user avatar
  • 339
1 vote
0 answers
33 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 ...
Nate's user avatar
  • 154
2 votes
2 answers
780 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 ...
Fred's user avatar
  • 335
1 vote
1 answer
701 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 ...
Daniel Santos's user avatar
1 vote
0 answers
183 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 ...
Migwell's user avatar
  • 417
2 votes
1 answer
157 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?
Noob_Guy's user avatar
  • 223
-2 votes
1 answer
123 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
Juninho's user avatar
-2 votes
2 answers
306 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 ...
Ganesh Kandu's user avatar
0 votes
1 answer
104 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 ...
jcubic's user avatar
  • 9,992
0 votes
1 answer
952 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 ...
telometto's user avatar
  • 2,055
1 vote
0 answers
173 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 ...
garywill's user avatar
1 vote
1 answer
409 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-...
Sir l33tname's user avatar
0 votes
1 answer
420 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 ...
ALsec's user avatar
  • 1
-1 votes
1 answer
433 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 ...
user3161924's user avatar
2 votes
2 answers
758 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 ...
Miguel's user avatar
  • 132
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 ...
Hunter T.'s user avatar
  • 603
0 votes
1 answer
321 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,...
user3161924's user avatar
1 vote
2 answers
1k 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 ...
Mikhail T.'s user avatar
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 ...
Biki Teron's user avatar
0 votes
1 answer
1k 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 ...
Irbis's user avatar
  • 239
0 votes
2 answers
321 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 * ...
Bap23's user avatar
  • 1
1 vote
3 answers
4k 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 ...
Josh's user avatar
  • 111
4 votes
2 answers
7k 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 ...
Yves Daoust's user avatar

1
2 3 4 5
7