source: BOOK/final-system/multilib/bzip2-64bit.xml @ 946b71d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 946b71d was 946b71d, checked in by Jim Gifford <clfs@…>, 11 years ago

Changed Hardlinks to Softlinks in Bzip2

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-bzip2" role="wrap">
9  <?dbhtml filename="bzip2-64bit.html"?>
10
11  <title>Bzip2-&bzip2-version; 64 Bit</title>
12
13  <indexterm zone="ch-system-bzip2">
14    <primary sortas="a-Bzip2">Bzip2</primary>
15  </indexterm>
16
17  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18  href="../common/bzip2.xml"
19  xpointer="xpointer(//*[@role='package'])"/>
20
21  <sect2 role="installation">
22    <title>Installation of Bzip2</title>
23
24    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
25    href="bzip2.xml"
26    xpointer="xpointer(//*[@os='s1'])"/>
27
28    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
29    href="bzip2.xml"
30    xpointer="xpointer(//*[@os='s2'])"/>
31
32    <para os="m1">We need to change the default lib path
33    to <filename class="directory">lib64</filename>:</para>
34
35<screen os="m2"><userinput>sed -i 's@/lib\(/\| \|$\)@/lib64\1@g' Makefile</userinput></screen>
36
37    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38    href="bzip2.xml"
39    xpointer="xpointer(//*[@os='a'])"/>
40
41<screen os="b"><userinput>make -f Makefile-libbz2_so CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"
42make clean</userinput></screen>
43
44    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45    href="bzip2.xml"
46    xpointer="xpointer(//*[@os='c'])"/>
47
48    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
49    href="../common/bzip2.xml"
50    xpointer="xpointer(//*[@os='d'])"/>
51
52<screen os="e"><userinput>make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"</userinput></screen>
53
54    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55    href="../common/bzip2.xml"
56    xpointer="xpointer(//*[@os='g'])"/>
57
58    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
59    href="../common/bzip2.xml"
60    xpointer="xpointer(//*[@os='h'])"/>
61
62    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
63    href="../common/bzip2.xml"
64    xpointer="xpointer(//*[@os='i'])"/>
65
66<screen os="j"><userinput>cp -v bzip2-shared /bin/bzip2
67cp -av libbz2.so* /lib64
68ln -sv ../../lib64/libbz2.so.1.0 /usr/lib64/libbz2.so
69rm -v /usr/bin/{bunzip2,bzcat,bzip2}
70ln -sv bzip2 /bin/bunzip2
71ln -sv bzip2 /bin/bzcat</userinput></screen>
72
73  </sect2>
74
75  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76  href="../common/bzip2.xml"
77  xpointer="xpointer(id('contents-bzip2'))"/>
78
79</sect1>
Note: See TracBrowser for help on using the repository browser.