diff options
Diffstat (limited to 'chapter06/readline.xml')
-rw-r--r-- | chapter06/readline.xml | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/chapter06/readline.xml b/chapter06/readline.xml index f56bb7a60..6ad6ecaaa 100644 --- a/chapter06/readline.xml +++ b/chapter06/readline.xml @@ -55,7 +55,7 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen> <para>Prepare Readline for compilation:</para> -<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> @@ -81,17 +81,12 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen> <screen><userinput remap="install">make install</userinput></screen> - <para>Now move the static libraries to a more appropriate location:</para> + <para>Now move the dynamic libraries to a more appropriate location + and fix up some symbolic links:</para> -<screen><userinput remap="install">mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen> - - <para>Next, remove the <filename class="extension">.so</filename> files in - <filename class="directory">/lib</filename> and relink them into <filename - class="directory">/usr/lib</filename>:</para> - -<screen><userinput remap="install">rm -v /lib/lib{readline,history}.so -ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so -ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so</userinput></screen> +<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib +ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so +ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen> <para>If desired, install the documentation:</para> |