Questions tagged [ldconfig]
14 questions
14
votes
2 answers
using ldconfig and ld.so.conf versus LD_LIBRARY_PATH
I often build various libraries from source code to play with, such as gmp-6.1.2, mpfr-4.0.1, and gcc-7.x. In doing so, I prefer to use --prefix=/usr/local/gcc-7.2.0 so I know exactly where it is installed and does not mess up existing libraries. …
ron
- 5,749
- 7
- 48
- 84
4
votes
1 answer
How to get "ldconfig"?
I am trying setup wireless network.
I referred to Cross Compiling iw_wpa_supplicant_hostapd_rfkill for ARM.
In the iw part, he used ldconfig -v, but it is not in my rootfs.
I searched my busybox, but could not find it.
How to get the ldconfig…
Kim Gwanyoung
- 53
- 2
- 6
2
votes
1 answer
ldconfig --> sudo: you do not exist in the passwd database
Ok, I made a mistake and I'm struggling to fix it:
I was looking for a libGL.so to link a project, and found it in a (conan-related) package that is mounted during build time. The default system /usr/lib64/libGL.so.1 didn't seem to get picked up…
StarShine
- 131
- 1
- 7
1
vote
1 answer
Compiling executable locally (Not system-wide)
I am working on an Fedora-34 ssh server and I don't have root access. So I was trying to compile and install the following tool:
% git clone https://github.com/google/sentencepiece.git
% cd sentencepiece
% mkdir build
% cd build
% cmake ..
% make…
M.A.G
- 233
- 1
- 7
1
vote
0 answers
Program can't find lib declared on ld.so.conf.d
I'm migrating a company-made program, who depends on a couple of also company-made libs (among other libs, of course) to a new server. In the current (old) server (RHEL 5), the lib is in /usr/lib64, but in the new server (RHEL 7), we want to put it…
JucaPirama
- 333
- 1
- 10
1
vote
1 answer
ldconfig creating links with strange names after patching libraries with patchelf?
I am patching several libraries on my development server to remove unneeded dependencies using the patchelf tool. These get packaged into an RPM and installed on my runtime system. After the install, ldconfig gets called, and strange links are…
swaggy p
- 111
- 3
0
votes
1 answer
/usr/lib vs /etc/ld.so.conf.d
TL;DR Why is it better to place a symlink to a shared library at /etc/lib(64)/ or why is it better to create a *.conf file in /etc/ld.so.conf.d/
.conf file
Assuming i have my custom binary at /opt/foo/, shipping with it's own shared libraries. The…
void
- 5
- 5
0
votes
1 answer
Double symlink of vim doesnt load library file ncurses.so.6 when invoked with sudo
I have a symlink of the vim.basic executable:
⤷ ls -l /etc/alternatives/vim
lrwxrwxrwx 1 root root 18 Apr 22 21:02 /etc/alternatives/vim -> /usr/bin/vim.basic
Another symlink to the above symlink as:
⤷ ls -l /usr/bin/vim
lrwxrwxrwx 1 root…
Akash
- 111
- 5
0
votes
1 answer
ldconfig does not include libs in /usr/lib/x86_64-linux-gnu
I need to use swrast_dri.so for Flutter but ldconfig is not locating it nor than others libs in /usr/lib/x86_64-linux-gnu.
Here my x86_64-linux-gnu.conf file:
# Multiarch…
Milvintsiss
- 101
- 2
0
votes
1 answer
Why do I need to run ldconfig everytime I put .so library into directories like /usr/local/lib if set by config files in /etc/ld.so.conf.d/?
I am running centos 6.10 in docker. As is described in the title, I set /usr/local/lib and /usr/local/lib64 in a conf file in /etc/ld.so.conf.d/. I need to run ldconfig everytime when I put .so library into /usr/local/lib or it will not be found…
Steven Yang
- 423
- 1
- 8
- 15
0
votes
0 answers
Linking to wrong .so file on Fedora 33 (libx265) when compiling ImageMagic
On Fedora 33, I'm trying to compile ImageMagic from git.
libx265 and libheif are installed from the Fedora fusion repos, along with their -devel packages.
When running ./configure --prefix=$HOME --program-prefix=p_ I get these reports:
HEIC …
polemon
- 11,133
- 11
- 69
- 111
0
votes
1 answer
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib64/dri)
I'm trying to run an app on Fedora 33, but when I run the executable, I get this error:
error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
libGL error: MESA-LOADER: failed to open iris…
SClark
- 1
- 1
- 1
0
votes
1 answer
How to add library search path on Alpine Linux? ldconfig
I'm trying to build a dockerfile for installing saprfc on an Alpine linux base image.
The instructions say to create /etc/ld.so.conf.d/nwrfcsdk.conf and to put /usr/local/sap/nwrfcsdk/lib in the nwrfcsdk.conf file. ldconfig should then load the…
Paul Wieland
- 101
- 1
- 4
0
votes
1 answer
why would ldconfig create a symlink to libselinux.so.1 from libext2fs.so.2?
using strace I have found a behaviour of ldconfig (glibc), I can make no sense of
lstat("/usr/lib/libext2fs.so.2", {st_mode=S_IFLNK|0777, st_size=16, ...}) = 0
unlink("/usr/lib/libext2fs.so.2") = 0
symlink("libselinux.so.1",…
humanityANDpeace
- 13,722
- 13
- 61
- 107