How do I do this "install: you may need to run ldconfig"
I've installed readline by using
./configure, make, make install
. At the end it ask meinstall: you may need to run ldconfig
.
So you just need to run the command
sudo ldconfig
What is ldconfig
ldconfig is a program that is used to maintain the shared library cache. This cache is typically stored in the file /etc/ld.so.cache
and is used by the system to map a shared library name to the location of the corresponding shared library file
man ldconfig
ldconfig - configure dynamic linker run-time bindings
DESCRIPTION
ldconfig creates, updates, and removes the necessary links and cache
(for use by the run-time linker, ld.so) to the most recent shared
libraries found in the directories specified on the command line, in
the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and
/lib). ldconfig checks the header and file names of the libraries it
encounters when determining which versions should have their links
updated. ldconfig ignores symbolic links when scanning for libraries.
For more information see : What-does-ldconfig-do?
UPDATE: solution for -bash: ldconfig: command not found
As told in comments below when you ran the echo $PATH
gives
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
while ldconfig
is inside /sbin which is outside the PATH, so you have then either to run the commands by absolute path like /sbin/ldconfig
or correct your path.
To correct your PATH do the following:
gedit ~/.bashrc
add the line
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
Now save and exit then source .bashrc
source .bashrc
So now you can use the commands directly