I've installed readline by using
./configure, make, make install. At
the end it ask me
install: you may need to run ldconfig.
So you just need to run the command
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
ldconfig - configure dynamic linker run-time bindings
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
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:
add the line
Now save and exit then source
So now you can use the commands directly