From 73aedd1d35747ff2fad4ddf514dca810721a612a Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sat, 1 Nov 2003 22:31:50 +0000 Subject: Merging caption and installation sections for all packages in chapters 5 and 6. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/ncurses.xml | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'chapter06/ncurses.xml') diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index aa97c4867..8cc9008d1 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -7,7 +7,54 @@ Estimated required disk space: &ncurses-compsize; &aa-ncurses-shortdesc; &aa-ncurses-dep; -&c6-ncurses-inst; + +   + + +Installation of Ncurses + +First fix two tiny bugs: + +patch -Np1 -i ../&ncurses-etip-patch; +patch -Np1 -i ../&ncurses-vsscanf-patch; + +The first patch corrects the etip.h header file, and +the second patch prevents some compiler warnings on the use of deprecated +headers. + +Now prepare Ncurses for compilation: + +./configure --prefix=/usr --with-shared \ +    --without-debug + +Compile the package: + +make + +Install the package: + +make install + +Give the Ncurses libraries execute permissions: + +chmod 755 /usr/lib/*.&ncurses-version; + +And fix a library that shouldn't be executable: + +chmod 644 /usr/lib/libncurses++.a + +Move the libraries to the /lib directory, +where they're expected to reside: + +mv /usr/lib/libncurses.so.5* /lib + +Since the libraries have been moved to +/lib, a few symlinks are currently pointing +towards non-existing files. Recreate those symlinks: + +ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so +ln -sf libncurses.so /usr/lib/libcurses.so + -- cgit v1.2.3-54-g00ecf