Results 1 to 8 of 8

Thread: what are 'lncurses'?

  1. #1
    Join Date
    Feb 2009
    Beans
    11

    Cool what are 'lncurses'?

    I did an install of freebasic and geany; the geany works fine compiling
    cpp files using the gcc compiler, but when I try to compile a .bas file
    I get "cannot find -lncurses, compilation not completed". I know the libs
    and includes for the freebasic are present. I have never gotten a message
    about 'lncurses' before.Using 8.10. --blurt.

  2. #2
    Join Date
    Oct 2007
    Location
    Oregon, USA
    Beans
    1,537

    Re: what are 'lncurses'?

    I think this will explain what it is:

    http://en.wikipedia.org/wiki/Ncurses
    Last edited by Chronon; June 10th, 2009 at 06:37 AM.

  3. #3
    Join Date
    Jan 2008
    Location
    USA.
    Beans
    131
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: what are 'lncurses'?

    Yea, -l is a flag for libraries. So it's just saying that it can't find the library ncurses. You'll need to install it.

  4. #4
    Join Date
    Feb 2009
    Beans
    11

    Re: what are 'lncurses'?

    Well, I got strange news and better news; I downloaded ncurses-5.7. Got some
    idea from a 'readme' in there to do: sudo ./configure; wheee!! impressive;
    can't figure what to do from there. Back to geany, still can't find lncurses. Better news: went to synaptic, searched on 'ncurses', found about
    sixty files; checkboxed about fifty of them. Back to geany, NOW it compiles
    .bas files; only problem? I have NO IDEA which of those fifty files did the
    trick. Some folks find this charming about linux; some don't.--kurt.

  5. #5
    Join Date
    Dec 2006
    Location
    Riga, Latvia
    Beans
    74
    Distro
    Ubuntu Karmic Koala (testing)

    Re: what are 'lncurses'?

    -lwhatever = file named libwhatever.so[.x.y]

    -lncurses = likely a file named libncurses.so

    These libraries are usually in the "-dev" packages of the repository, likely "ncurses-dev"

  6. #6
    Join Date
    Nov 2008
    Beans
    14

    Re: what are 'lncurses'?

    ./configure only prepares the source files for installation - you still have to build and then install it, like this:

    Code:
    sudo ./configure
    sudo make
    sudo make install
    Or you can consolidate everything on one line like this:

    Code:
    sudo ./configure && sudo make && sudo make install
    Or you could do it the easy way and just install all the newest ncurses library packages:

    Code:
    sudo apt-get install libncurses*

  7. #7
    Join Date
    Jan 2008
    Location
    USA.
    Beans
    131
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: what are 'lncurses'?

    Yea, there is no reason to go through all the ./configure && make business for such a common library. Just install it with apt.

  8. #8
    Join Date
    May 2010
    Beans
    1

    Unhappy Re: what are 'lncurses'?

    hi ,
    i am facing the same problem. when i write "mak menuconfig". It shows me an error. like:
    HOSTLD -static scripts/kconfig/mconf
    /usr/bin/ld: cannot find -lncursesw
    collect2: ld returned 1 exit status
    make[1]: *** [scripts/kconfig/mconf] Error 1
    make: *** [menuconfig] Error 2


    Please guide me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •