ncurses-exp.xml 1.3 KB

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