ncurses-exp.xml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>--with-shared:</userinput> This enables the build of the
  4. shared ncurses library files.</para>
  5. <para><userinput>--disable-termcap:</userinput> Disabled the compilation of
  6. termcap fall back support.</para>
  7. <para><userinput>mv /lib/*.a /usr/lib :</userinput> This
  8. moves all of the static ncurses library files from /lib to /usr/lib.
  9. /lib should only contain the shared files which are essential to the
  10. system when /usr may not be mounted.</para>
  11. <para><userinput>chmod 755 *.5.2:</userinput> Shared libraries should be
  12. executable. Ncurses install routine doesn't set the permissions
  13. properly so we do it manually instead.</para>
  14. <para><userinput>ln -sf libncurses.a libcurses.a:</userinput> Some
  15. programs try to link using -lcurses instead of -lncurses. This symlink
  16. ensures that such programs will link without errors.</para>
  17. <para><userinput>ln -sf ../../lib/libncurses.so etc:</userinput> These
  18. symlinks are created to tidy up the installation. It's good practice to
  19. have the *.so files in /usr/lib as well as in /lib, to ensure that the
  20. linker is always able to find the files whether it's looking in /lib or
  21. /usr/lib.</para>
  22. </sect2>