Ncurses instructions - libcurses symlinks

Alexander E. Patrakov patrakov at ums.usu.ru
Fri Oct 5 00:08:00 PDT 2007


Chris Staub wrote:
> In Chapter 6, there is this set of commands...
>
> for lib in curses ncurses form panel menu ; do \
>      rm -vf /usr/lib/lib${lib}.so ; \
>      echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \
>      ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
> done
> ln -sfv libncurses++w.a /usr/lib/libncurses++.a
>
> Finally, make sure that old applications that look for -lcurses at build
> time are still buildable:
>
> rm -vf /usr/lib/libcursesw.so
> echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so
> ln -sfv libncurses.so /usr/lib/libcurses.so
> ln -sfv libncursesw.a /usr/lib/libcursesw.a
> ln -sfv libncurses.a /usr/lib/libcurses.a
>
> The for loop in the 1st set of commands creates (among other things)
> libcurses.so and libcurses.a. However, both of these are overwritten by
> the ln commands that follow, so it looks like including "curses" in the
> for loop is redundant.
>   
It looks like that.
> Also, the rm commands in the for loop don't do anything, since all the
> installed ncurses libs end in "w".
>   

They were required in the past for correct reinstallation of ncurses. 
Maybe this is no longer true. I will be happy with any simplification 
that does teh same as the old commands both for the case of the clean 
installation and reinstallation.

-- 
Alexander E. Patrakov



More information about the lfs-dev mailing list