From 509125143a054af2785ac0d66e1a457981962040 Mon Sep 17 00:00:00 2001 From: Jim Gifford Date: Fri, 3 Dec 2004 18:29:38 +0000 Subject: Updates: zlib, readline Upgrade: perl to 5.8.6 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4344 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/readline.xml | 14 ++++---------- chapter06/zlib.xml | 22 +--------------------- 2 files changed, 5 insertions(+), 31 deletions(-) (limited to 'chapter06') diff --git a/chapter06/readline.xml b/chapter06/readline.xml index 5ce6413ba..64feb87a0 100644 --- a/chapter06/readline.xml +++ b/chapter06/readline.xml @@ -35,7 +35,7 @@ sometimes will only show 33 characters on a line and then wrap to the next line. Prepare Readline for compilation: -./configure --prefix=/usr +./configure --prefix=/usr --libdir=/lib Compile the package: @@ -47,17 +47,11 @@ sometimes will only show 33 characters on a line and then wrap to the next line. Give Readline's dynamic libraries to a more appropriate permissions: -chmod 755 /usr/lib/*.&readline-version; +chmod 755 /lib/lib{readline.history}.so* -And move them to a more appropriate location: +Now we move them static libraries to a more appropriate location: -mv /usr/lib/lib{readline,history}.so.5* /lib - -Because the libraries have been moved, a few symlinks are now pointing to -non-existent files. Recreate those symlinks: - -ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so -ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so +mv /lib/lib{readline,history}.a /usr/lib diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index 8aa195b62..f32d235e8 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -36,7 +36,7 @@ afterwards. Prepare Zlib for compilation: -./configure --prefix=/usr --shared +./configure --prefix=/usr --shared --libdir=/lib Compile the package: @@ -66,26 +66,6 @@ make chmod 644 /usr/lib/libz.a -It is good policy and common practice to place important libraries into -the /lib directory. This matters most -in scenarios where /usr is on a -separate partition. Essentially, the run-time components of any libraries that -are used by programs in /bin or -/sbin should reside in -/lib so that they are on the root -partition and available in the event of -/usr being inaccessible. - -For the above reason we move the run-time components of the shared Zlib -into /lib: - -mv /usr/lib/libz.so.* /lib - -Now we need to fix the /usr/lib/libz.so symlink -because we just moved the file it points to: - -ln -sf ../../lib/libz.so.1 /usr/lib/libz.so - -- cgit v1.2.3-54-g00ecf