Changeset 56964fb for chapter06/ncurses.xml
- Timestamp:
- 01/16/2005 07:58:31 AM (20 years ago)
- Children:
- ac89fab
- Parents:
- e464747
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/ncurses.xml
re464747 r56964fb 32 32 <para>Prepare Ncurses for compilation:</para> 33 33 34 <screen><userinput>./configure --prefix=/usr --with-shared --without-debug</userinput></screen> 34 <screen><userinput>./configure --prefix=/usr --libdir \ 35 --with-shared --without-debug</userinput></screen> 35 36 36 37 <para>Compile the package:</para> … … 38 39 <screen><userinput>make</userinput></screen> 39 40 40 <para>This package does not come with a test suite.</para>41 42 41 <para>Install the package:</para> 43 42 44 43 <screen><userinput>make install</userinput></screen> 45 44 45 <para>Move the Ncurses static libraries to the proper locations:</para> 46 47 <screen><userinput>mv /lib/lib{panel,menu,form,ncurses,ncurses++}.a /usr/lib</userinput></screen> 48 49 <para>Create symlinks in <filename class="directory">/usr/lib:</filename></para> 50 51 <screen><userinput>rm /lib/lib{ncurses,menu,panel,form}.so 52 ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so 53 ln -sf ../../lib/libmenu.so.5 /usr/lib/libmenu.so 54 ln -sf ../../lib/libpanel.so.5 /usr/lib/libpanel.so 55 ln -sf ../../lib/libform.so.5 /usr/lib/libform.so</userinput></screen> 56 46 57 <para>Give the Ncurses libraries execute permissions:</para> 47 58 48 <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen> 49 50 <para>Fix a library that should not be executable:</para> 51 52 <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen> 53 54 <para>Move the libraries to the <filename class="directory">/lib</filename> directory, 55 where they are expected to reside:</para> 56 57 <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen> 58 59 <beginpage/> 60 <para>Because the libraries have been moved, a few symlinks are pointing to 61 non-existent files. Recreate those symlinks:</para> 62 63 <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so 64 ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen> 59 <screen><userinput>chmod 755 /lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen> 60 65 61 </sect2> 66 67 62 68 63 <sect2 id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
Note:
See TracChangeset
for help on using the changeset viewer.