Questions tagged [ld.so.conf]

6 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
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
0
votes
2 answers

Debian: Confusing ld.so manpage documentation

I am starring at the ld.so manpage on my Debian stable system. It currently states: $ man ld.so [...] NOTES Hardware capabilities Some shared objects are compiled using hardware-specific instructions which do not exist on every CPU. Such…
malat
  • 2,708
  • 4
  • 27
  • 47
0
votes
0 answers

Shared library fetching fails if LD_LIBRARY_PATH isn't exported

By looking at /etc/ld.so.conf.d there is a libc.conf file that point to /usr/local/lib that contains the .so file necessary to run my application correctly. Even running ldconfig -v it is showed that the above path is set yet when I launch my…
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
2 answers

Creating a link to a shared library

I have a library ( ZendDebugger.so ) which in turn requires the openssl library but it doesn't find a reference to it. Indeed when ZendDebugger.so loads, it prints this error on the error log ( which is the Apache error_log file in my case ): Failed…
HelloWorld
  • 9
  • 1
  • 3