10.41. Readline-5.2 N32 Libraries

The Readline package is a set of libraries that offers command-line editing and history capabilities.

10.41.1. Installation of Readline

Prepare Readline for compilation:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
   ./configure --prefix=/usr --libdir=/lib32

Compile the package:

The meaning of the make option:

SHLIB_XLDFLAGS=-lncurses

This option forces Readline to link against the libncurses library.

This package does not come with a test suite.

Install the package:

make install

Give Readline's dynamic libraries more appropriate permissions:

chmod -v 755 /lib32/lib{readline,history}.so*

Now move the static libraries to a more appropriate location:

mv -v /lib32/lib{readline,history}.a /usr/lib32

Next, remove the .so files in /lib32 and relink them into /usr/lib32.

rm -v /lib32/lib{readline,history}.so
ln -svf ../../lib32/libreadline.so.5 /usr/lib32/libreadline.so
ln -svf ../../lib32/libhistory.so.5 /usr/lib32/libhistory.so

Details on this package are located in Section 10.55.2, “Contents of File.”