Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: readline-6.0   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
rm -rf readline-6.0 &&
tar -xzf readline-6.0.tar.gz &&
cd readline-6.0 &&
./configure --prefix=/usr --libdir=/lib &&
make SHLIB_LIBS=-lncurses &&
make install &&
mv -v /lib/lib{readline,history}.a /usr/lib &&
rm -v /lib/lib{readline,history}.so &&
ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so &&
ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so &&
cd /sources/  &&
rm -rf readline-6.0

The output should look something like this:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Beginning configuration for readline-6.0 for
i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /bin/install -c
checking for ar... ar
checking for ranlib... ranlib
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking whether char is unsigned... no
checking for working volatile... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for ssize_t... yes
checking for ANSI C header files... (cached) yes
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for fcntl... yes
checking for kill... yes
checking for lstat... yes
.
.
.
if test -n """" ; then \
	if test -f readline.html; then \
		/bin/install -c -m 644 readline.html
/readline.html; \
	else \
		/bin/install -c -m 644 ./readline.html
/readline.html; \
	fi ; \
	if test -f history.html; then \
		/bin/install -c -m 644 history.html
/history.html; \
	else \
		/bin/install -c -m 644 ./history.html
/history.html; \
	fi ; \
	if test -f rluserman.html; then \
		/bin/install -c -m 644 rluserman.html
/rluserman.html; \
	else \
		/bin/install -c -m 644 ./rluserman.html
/rluserman.html; \
	fi ; \
fi
make[1]: Leaving directory `/sources/readline-6.0/doc'
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Entering directory `/sources/readline-6.0/shlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sources/readline-6.0/shlib'
( cd examples ; make  DESTDIR= install )
make[1]: Entering directory
`/sources/readline-6.0/examples'
/bin/sh ../support/mkdirs /usr/share/readline
make[1]: Leaving directory `/sources/readline-6.0/examples'
mv /lib/libreadline.a /lib/libreadline.old
mv: cannot stat `/lib/libreadline.a': No such file or
directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libreadline.a /lib/libreadline.a
test -n ""ranlib"" && ranlib /lib/libreadline.a
mv /lib/libhistory.a /lib/libhistory.old
mv: cannot stat `/lib/libhistory.a': No such file or
directory
make: [install-static] Error 1 (ignored)
/bin/install -c -m 644 libhistory.a /lib/libhistory.a
test -n ""ranlib"" && ranlib /lib/libhistory.a
( cd shlib ; make  DESTDIR= install )
make[1]: Entering directory `/sources/readline-6.0/shlib'
/bin/sh ../support/mkdirs /lib
/bin/sh ../support/shlib-install -O linux-gnu -d /lib -b
/usr/bin -i ""/bin/install -c -m 644"" libhistory.so.6.0
/bin/sh ../support/shlib-install -O linux-gnu -d /lib -b
/usr/bin -i ""/bin/install -c -m 644"" libreadline.so.6.0
install: you may need to run ldconfig
make[1]: Leaving directory `/sources/readline-6.0/shlib'
`/lib/libreadline.a' -> `/usr/lib/libreadline.a'
`/lib/libhistory.a' -> `/usr/lib/libhistory.a'
removed `/lib/libreadline.so'
removed `/lib/libhistory.so'
`/usr/lib/libreadline.so' -> `../../lib/libreadline.so.5'
`/usr/lib/libhistory.so' -> `../../lib/libhistory.so.5'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS