Should libcurses.so point to libncurses.so? I'm assuming no but am not sure.
I tried the following links on the server system: ln -s /lib/$ARCH/libncurses.so.5.9 /usr/lib/$ARCH/libncurses.so ln -s /lib/$ARCH/libcurses.so.5.9 /usr/lib/$ARCH/libncurses.so Which populated the CMakeCache.txt file with the file paths for CURSES_CURSES_LIBRARY:FILEPATH=/usr/lib/$ARCH/libcurses.so and CURSES_NCURSES_LIBRARY:FILEPATH=/usr/lib/$ARCH/libncurses.so They were listed as NOT_FOUND before I added the links. Though, cmake is still unable to detect the library. I did a find / -type f -name libcurses* on both systems and noticed that: Ubuntu Server _doesn't_ have libcurses.so Ubuntu Desktop _does_ have libcurses.so On the Desktop system which has libcurses.so I made a symlink like you mentioned: /usr/lib# ls -l libcurses* lrwxrwxrwx 1 root root 38 Oct 8 18:09 libcurses.so -> /usr/lib/x86_64-linux-gnu/libcurses.so I tried other combinations and am still unable to compile. Any other ideas? Thanks Jon On Sun, Oct 7, 2012 at 6:02 AM, Daniel Borkmann <[email protected]> wrote: > On Sun, Oct 7, 2012 at 4:00 AM, Jon Schipp <[email protected]> wrote: >> More Info for the Ubuntu Desktop 12.04 system. >> >> The below file doesn't exist. I don't know if this has anything to do >> with it since it is libcurses rather than >> libNcurses. >> >> # grep -R CURSES_LIBRARY * >> build/CMakeCache.txt:CURSES_CURSES_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcurses.so >> apt-cache search libcurses doesn't provide anything except a few perl >> packages. >> >> # apt-cache search libcurses >> libruby - Transitional package for libruby1.8 >> libruby1.8 - Libraries necessary to run Ruby 1.8 >> libcurses-ocaml - OCaml bindings for the ncurses library >> libcurses-ocaml-dev - OCaml bindings for the ncurses library >> libcurses-perl - Curses interface for Perl >> libcurses-ui-perl - curses-based OO user interface framework for Perl >> libcurses-widgets-perl - Curses widget interface for Perl >> >> # ls -l /usr/lib/x86_64-linux-gnu/libncurses* >> -rw-r--r-- 1 root root 294004 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncurses.a >> -rw-r--r-- 1 root root 157584 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncurses++.a >> -rw-r--r-- 1 root root 31 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncurses.so >> -rw-r--r-- 1 root root 157584 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncurses++w.a >> -rw-r--r-- 1 root root 390674 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncursesw.a >> -rw-r--r-- 1 root root 32 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libncursesw.so >> >> # ls -l /usr/lib/x86_64-linux-gnu/libcurses* >> lrwxrwxrwx 1 root root 12 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libcurses.a -> libncurses.a >> lrwxrwxrwx 1 root root 13 Nov 18 2011 >> /usr/lib/x86_64-linux-gnu/libcurses.so -> libncurses.so >> >> # ls -l /lib/x86_64-linux-gnu/libncurses* >> lrwxrwxrwx 1 root root 17 Oct 5 10:06 >> /lib/x86_64-linux-gnu/libncurses.so.5 -> libncurses.so.5.9 >> -rw-r--r-- 1 root root 133808 Nov 18 2011 >> /lib/x86_64-linux-gnu/libncurses.so.5.9 >> lrwxrwxrwx 1 root root 18 Oct 5 10:06 >> /lib/x86_64-linux-gnu/libncursesw.so.5 -> libncursesw.so.5.9 >> -rw-r--r-- 1 root root 183072 Nov 18 2011 >> /lib/x86_64-linux-gnu/libncursesw.so.5.9 >> >> Thanks >> Jon >> >> On Sat, Oct 6, 2012 at 9:48 PM, Jon Schipp <[email protected]> wrote: >>> Hello all, >>> >>> I'm having a little trouble with the libncurses dependency on Ubuntu >>> Desktop 12.04 and Ubuntu Server 12.04. >>> It looks like libncurses5 is already installed by default. I went >>> ahead and installed the dev package: libncurses5-dev >>> >>> $ dpkg -l | grep libncurses >>> ii libncurses5 5.9-4 >>> shared libraries for terminal handling >>> ii libncurses5-dev 5.9-4 >>> developer's libraries for ncurses >>> ii libncursesw5 5.9-4 >>> shared libraries for terminal handling (wide character >>> support >>> >>> These are the only libncurses libraries in the repo. I tried >>> installing the libncursesw5-dev package too. >>> >>> # apt-cache search libncurses >>> libncurses5 - shared libraries for terminal handling >>> libncurses5-dbg - debugging/profiling libraries for ncurses >>> libncurses5-dev - developer's libraries for ncurses >>> libncursesw5 - shared libraries for terminal handling (wide character >>> support) >>> libncursesw5-dbg - debugging/profiling libraries for ncursesw >>> libncursesw5-dev - developer's libraries for ncursesw >>> centerim-utf8 - A text-mode multi-protocol instant messenger client >>> libncurses-gst - Ncurses bindings for GNU Smalltalk >>> libncurses-ruby - Transitional package for ruby-ncurses >>> libncurses-ruby1.8 - Transitional package for ruby-ncurses >>> libncurses-ruby1.9 - Transitional package for ruby-ncurses >>> libncurses-ruby1.9.1 - Transitional package for ruby-ncurses >>> libncursesada-dbg - Ada binding to the ncurses text interface library: >>> debug symbols >>> libncursesada-doc - Ada binding to the ncurses text interface library: >>> documentation >>> libncursesada2 - Ada binding to the ncurses text interface library: >>> shared library >>> libncursesada2-dev - Ada binding to the ncurses text interface >>> library: development >>> ruby-ncurses - ruby extension for the ncurses C library >>> >>> Using cmake I still get: >>> >>> -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) >>> libncurses is missing on target. Skipping ifpps build. >>> -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) >>> libncurses is missing on target. Skipping flowtop build. >>> >>> I've never had this problem before. I haven't been able to solve it >>> yet. Any tips? > > Hmm, the usual cmake pain. For libncurses, we use the buit-in cmake > modul to fin it. Can you try to create a symlink to > /usr/lib/libcurses.so that points to your actual path? > > -- > > --
