Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter06 / ncurses.xml
blob6f9262a055088f1db720516470a4f0eb0a368ca6
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd" [
3   <!ENTITY % ncurses-entities SYSTEM "../ent/ncurses.ent">
4   %ncurses-entities;
5 ]>
6 <sect1 id="ch06-ncurses">
7 <title>Installing Ncurses-&ncurses-version;</title>
8 <?dbhtml filename="ncurses.html"?>
10 <screen>Estimated build time:           0.6 SBU
11 Estimated required disk space:  27 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/ncurses-contents.xml"/>
16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/ncurses-deps.xml"/>
20 <sect2>
21 <title>Installation of Ncurses</title>
23 <para>Fix a minor problem related to the <filename>etip.h</filename> header
24 file:</para>
26 <screen><userinput>patch -Np1 -i ../ncurses-&ncurses-version;-etip-2.patch</userinput></screen>
28 <para>Now prepare Ncurses for compilation:</para>
30 <screen><userinput>./configure --prefix=/usr --with-shared \
31     --without-debug</userinput></screen>
33 <para>Compile the package:</para>
35 <screen><userinput>make</userinput></screen>
37 <para>Install the package:</para>
39 <screen><userinput>make install</userinput></screen>
41 <para>Give the Ncurses libraries execute permissions:</para>
43 <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
45 <para>And fix a library that shouldn't be executable:</para>
47 <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
49 <para>Move the libraries to the <filename>/lib</filename> directory,
50 where they're expected to reside:</para>
52 <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
54 <para>Since the libraries have been moved to
55 <filename>/lib</filename>, a few symlinks are currently pointing
56 towards non-existing files. Recreate those symlinks:</para>
58 <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
59 ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
60 </sect2>
62 </sect1>