source: BOOK/final-system/multilib/ncurses-64bit.xml@ ab22f1b

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ab22f1b was 5de15f0, checked in by William Harrington <kb0iic@…>, 11 years ago

Use readlink when creating symbolic links to ncurses dynamic libraries of libncurses, libform, libpanel, and libmenu.

  • Property mode set to 100644
File size: 3.7 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-ncurses" role="wrap">
9 <?dbhtml filename="ncurses-64bit.html"?>
10
11 <title>Ncurses-&ncurses-version; 64 Bit</title>
12
13 <indexterm zone="ch-system-ncurses">
14 <primary sortas="a-Ncurses">Ncurses</primary>
15 </indexterm>
16
17 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
18 href="../common/ncurses.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
20
21 <sect2 role="installation">
22 <title>Installation of Ncurses</title>
23
24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
25 href="ncurses.xml"
26 xpointer="xpointer(//*[@os='p1'])"/>
27
28 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
29 href="ncurses.xml"
30 xpointer="xpointer(//*[@os='p2'])"/>
31
32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
33 href="ncurses.xml"
34 xpointer="xpointer(//*[@os='a'])"/>
35
36<screen os="b"><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
37 ./configure --prefix=/usr --libdir=/lib64 \
38 --with-shared --without-debug --enable-widec \
39 --with-manpage-format=normal \
40 --with-default-terminfo-dir=/usr/share/terminfo</userinput></screen>
41
42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
43 href="ncurses.xml"
44 xpointer="xpointer(//*[@os='c'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
47 href="ncurses.xml"
48 xpointer="xpointer(//*[@os='d'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
51 href="ncurses.xml"
52 xpointer="xpointer(//*[@os='e'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
55 href="ncurses.xml"
56 xpointer="xpointer(//*[@os='f'])"/>
57
58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
59 href="ncurses.xml"
60 xpointer="xpointer(//*[@os='g'])"/>
61
62 <para os="m1">Prepare <filename>ncursesw5-config</filename> to be wrapped by
63 the multiarch wrapper and then wrap it:</para>
64
65<screen os="m2"><userinput>mv -v /usr/bin/ncursesw5-config{,-64}
66ln -svf multiarch_wrapper /usr/bin/ncursesw5-config</userinput></screen>
67
68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
69 href="ncurses.xml"
70 xpointer="xpointer(//*[@os='h'])"/>
71
72<screen os="i"><userinput>mv -v /lib64/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a /usr/lib64</userinput></screen>
73
74 <para os="j">Create symlinks in <filename class="directory">/usr/lib64:</filename></para>
75
76<screen os="k"><userinput>
77ln -svf ../../lib64/$(readlink /lib64/libncursesw.so) /usr/lib64/libncursesw.so
78ln -svf ../../lib64/$(readlink /lib64/libmenuw.so) /usr/lib64/libmenuw.so
79ln -svf ../../lib64/$(readlink /lib64/libpanelw.so) /usr/lib64/libpanelw.so
80ln -svf ../../lib64/$(readlink /lib64/libformw.so) /usr/lib64/libformw.so
81rm -v /lib64/lib{ncursesw,menuw,panelw,formw}.so
82</userinput></screen>
83
84 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
85 href="ncurses.xml"
86 xpointer="xpointer(//*[@os='l'])"/>
87
88<screen os="m"><userinput>for lib in curses ncurses form panel menu ; do
89 echo "INPUT(-l${lib}w)" > /usr/lib64/lib${lib}.so
90 ln -sfv lib${lib}w.a /usr/lib64/lib${lib}.a
91done
92ln -sfv libcurses.so /usr/lib64/libcursesw.so
93ln -sfv libncurses.so /usr/lib64/libcurses.so
94ln -sfv libncursesw.a /usr/lib64/libcursesw.a
95ln -sfv libncurses.a /usr/lib64/libcurses.a
96ln -sfv libncurses++w.a /usr/lib64/libncurses++.a
97ln -sfv ncursesw5-config-64 /usr/bin/ncurses5-config-64
98ln -sfv ncursesw5-config /usr/bin/ncurses5-config</userinput></screen>
99
100 </sect2>
101
102 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
103 href="../common/ncurses.xml"
104 xpointer="xpointer(id('contents-ncurses'))"/>
105
106</sect1>
Note: See TracBrowser for help on using the repository browser.