Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/readline.xml

    r110e1fa re89c4c9  
    3333    <para os="a">Prepare Readline for compilation:</para>
    3434
    35 <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
     35<screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib \
     36    --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
    3637
    3738    <para os="c">Compile the package:</para>
     
    4344    <para os="f">Install the package:</para>
    4445
    45 <screen os="g"><userinput>make install</userinput></screen>
     46<screen os="g"><userinput>make htmldir=/usr/share/doc/readline-&readline-version; install</userinput></screen>
    4647
    47     <para os="h">Install the documentation:</para>
     48    <para os="h">Now move the static libraries to a more appropriate location:</para>
    4849
    49 <screen os="i"><userinput>make install-doc</userinput></screen>
     50<screen os="i"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
    5051
    51     <para os="j">Now move the static libraries to a more appropriate location:</para>
     52    <para os="j">Next, relink the dynamic libraries into <filename class="directory">/usr/lib</filename> and remove the <filename class="extension">.so</filename> files in <filename class="directory">/lib</filename>.</para>
    5253
    53 <screen os="k"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
    54 
    55     <para os="l">Next, remove the <filename class="extension">.so</filename>
    56     files in <filename class="directory">/lib</filename> and relink them into
    57     <filename class="directory">/usr/lib</filename>.</para>
    58 
    59 <screen os="m"><userinput>rm -v /lib/lib{readline,history}.so
    60 ln -svf ../../lib/libreadline.so.&readline-version2; /usr/lib/libreadline.so
    61 ln -svf ../../lib/libhistory.so.&readline-version2; /usr/lib/libhistory.so</userinput></screen>
     54<screen os="k"><userinput>ln -svf ../../lib/$(readlink /lib/libreadline.so) /usr/lib/libreadline.so
     55ln -svf ../../lib/$(readlink /lib/libhistory.so) /usr/lib/libhistory.so
     56rm -v /lib/lib{readline,history}.so</userinput></screen>
    6257
    6358  </sect2>
     
    7267      <seglistitem>
    7368        <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
    74         <seg>/usr/include/readline, /usr/share/readline</seg>
     69        <seg>/usr/include/readline, /usr/share/doc/readline-&readline-version;, /usr/share/readline</seg>
    7570      </seglistitem>
    7671    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.