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/?
0
votes
1
answer
1627
views
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 (when compiling Python 3). However, setting LD_LIBRARY_PATH
to /usr/local/lib:/usr/local/lib64
(without writing them to conf files in /etc/ld.so.conf.d/
) does not need any additional steps after putting the libs. What causes this?
By the way, why directories like /lib
and /usr/lib
are not set in /etc/ld.so.conf
or /etc/ld.so.conf.d/
?
Asked by Steven Yang
(463 rep)
Feb 27, 2021, 11:47 AM
Last activity: Feb 27, 2021, 11:53 AM
Last activity: Feb 27, 2021, 11:53 AM