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-5.2   Print


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

Run these commands:

cd /sources/  &&
tar -xzf mcj2.0patches.tar.gz &&
rm -rf readline-5.2 &&
tar -xzf readline-5.2.tar.gz &&
cd readline-5.2 &&
sed -i '/MV.*old/d' Makefile.in &&
sed -i '/{OLDSUFF}/c:' support/shlib-install &&
patch -Np1 -i ../readline-5.2-fixes-3.patch &&
./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-5.2 

The output should look something like this:

patching file display.c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu

Beginning configuration for readline-5.2 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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 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 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
checking for memmove... yes
checking for putenv... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strpbrk... yes
checking for tcgetattr... yes
checking for vsnprintf... yes
checking for isascii... yes
checking for isxdigit... yes
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for working strcoll... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
.
.
.
/bin/sh ../support/shlib-install -O linux-gnu -d /lib -b /usr/bin -i "/bin/install -c -m 644" libreadline.so.5.2
install: you may need to run ldconfig
make[1]: Leaving directory `/sources/readline-5.2/shlib'
`/lib/libreadline.a' -> `/usr/lib/libreadline.a'
`/lib/libhistory.a' -> `/usr/lib/libhistory.a'
removed `/lib/libreadline.so'
removed `/lib/libhistory.so'
create symbolic link `/usr/lib/libreadline.so' to `../../lib/libreadline.so.5'
create symbolic link `/usr/lib/libhistory.so' to `../../lib/libhistory.so.5'

~~~
Please read our Terms of Use
The Mountain Climbing Journal filesystem has borrowed heavily from various pieces of Linux From Scratch.

Copyright 2006-2008 NoNIC.org

Created by:
MCJ
MCJ CMS