- Timestamp:
- 12/03/2004 06:29:38 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- ee6618f
- Parents:
- 266a7bd
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/readline.xml
r266a7bd r5091251 36 36 <para>Prepare Readline for compilation:</para> 37 37 38 <screen><userinput>./configure --prefix=/usr </userinput></screen>38 <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen> 39 39 40 40 <para>Compile the package:</para> … … 48 48 <para>Give Readline's dynamic libraries to a more appropriate permissions:</para> 49 49 50 <screen><userinput>chmod 755 / usr/lib/*.&readline-version;</userinput></screen>50 <screen><userinput>chmod 755 /lib/lib{readline.history}.so*</userinput></screen> 51 51 52 <para> And move themto a more appropriate location:</para>52 <para>Now we move them static libraries to a more appropriate location:</para> 53 53 54 <screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen> 55 56 <para>Because the libraries have been moved, a few symlinks are now pointing to 57 non-existent files. Recreate those symlinks:</para> 58 59 <screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so 60 ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen> 54 <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen> 61 55 62 56 </sect2> -
chapter06/zlib.xml
r266a7bd r5091251 37 37 <para>Prepare Zlib for compilation:</para> 38 38 39 <screen><userinput>./configure --prefix=/usr --shared </userinput></screen>39 <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen> 40 40 41 41 <para>Compile the package:</para> … … 67 67 <screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen> 68 68 69 <para>It is good policy and common practice to place important libraries into70 the <filename class="directory">/lib</filename> directory. This matters most71 in scenarios where <filename class="directory">/usr</filename> is on a72 separate partition. Essentially, the run-time components of any libraries that73 are used by programs in <filename class="directory">/bin</filename> or74 <filename class="directory">/sbin</filename> should reside in75 <filename class="directory">/lib</filename> so that they are on the root76 partition and available in the event of77 <filename class="directory">/usr</filename> being inaccessible.</para>78 79 <para>For the above reason we move the run-time components of the shared Zlib80 into <filename class="directory">/lib</filename>:</para>81 82 <screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen>83 84 <para>Now we need to fix the <filename class="symlink">/usr/lib/libz.so</filename> symlink85 because we just moved the file it points to:</para>86 87 <screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>88 89 69 </sect2> 90 70
Note:
See TracChangeset
for help on using the changeset viewer.