Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: install curses/ncurses

  1. #1
    Join Date
    Oct 2006
    Beans
    15

    install curses/ncurses

    i want to install curses/ncurses.h file to my ubuntu.

    iv gotten the file off the web using 'wget'

    then untared it
    then was instructed by the website to use the following commands
    cd ncurses-5.5
    ./configure
    make
    ** su root
    make install

    ** -> this is where my problem is. i do the su root command and im promted for a password. since i am the only user & administrator on my laptop i entered my password. however it wont accept it.

    any ideas what this password could be or is there any way around it.

    iv tried my password, 0, root, rootroot but to no avail.

  2. #2
    qamelian's Avatar
    qamelian is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Feb 2005
    Location
    Nova Scotia, Canada
    Beans
    1,580
    Distro
    Ubuntu Development Release

    Re: install curses/ncurses

    Quote Originally Posted by yolloms View Post
    i want to install curses/ncurses.h file to my ubuntu.

    iv gotten the file off the web using 'wget'

    then untared it
    then was instructed by the website to use the following commands
    cd ncurses-5.5
    ./configure
    make
    ** su root
    make install

    ** -> this is where my problem is. i do the su root command and im promted for a password. since i am the only user & administrator on my laptop i entered my password. however it wont accept it.

    any ideas what this password could be or is there any way around it.

    iv tried my password, 0, root, rootroot but to no avail.
    Don't use su. Instead use
    Code:
    sudo make install
    and enter your own password. This gives you the equivalent of root privleges temporarily.

  3. #3
    Join Date
    Oct 2006
    Beans
    15

    Re: install curses/ncurses

    so simple

    thanks

  4. #4
    qamelian's Avatar
    qamelian is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Feb 2005
    Location
    Nova Scotia, Canada
    Beans
    1,580
    Distro
    Ubuntu Development Release

    Re: install curses/ncurses

    I also should have mentioned that Ubuntu by default doesn't use a root account. Using sudo, you should never need one. I've been using Ubuntu since Warty and haven't needed a root account yet.

  5. #5
    Join Date
    Sep 2006
    Beans
    5

    Re: install curses/ncurses

    Quote Originally Posted by yolloms View Post
    i want to install curses/ncurses.h file to my ubuntu.

    iv gotten the file off the web using 'wget'

    then untared it
    then was instructed by the website to use the following commands
    cd ncurses-5.5
    ./configure
    make
    ** su root
    make install

    ** -> this is where my problem is. i do the su root command and im promted for a password. since i am the only user & administrator on my laptop i entered my password. however it wont accept it.

    any ideas what this password could be or is there any way around it.

    iv tried my password, 0, root, rootroot but to no avail.
    Hello

    Maybe I'm just stupid, but why Ubuntu/Kubuntu does not contain the ncurses.h file by default?

    [EDIT] ---> stupid me. The file (or symlink to curses.h) comes with libncurses5-dev package. But still, it again took a while before I found this.... in fact I found this from Cygwin documentation.

    Thanks,

    - Kalle
    Last edited by ktuulos; February 24th, 2007 at 10:15 PM.

  6. #6
    Join Date
    Aug 2006
    Location
    Cedar Rapids
    Beans
    45
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: install curses/ncurses

    Quote Originally Posted by ktuulos View Post
    Hello

    Maybe I'm just stupid, but why Ubuntu/Kubuntu does not contain the ncurses.h file by default?

    [EDIT] ---> stupid me. The file (or symlink to curses.h) comes with libncurses5-dev package. But still, it again took a while before I found this.... in fact I found this from Cygwin documentation.

    Thanks,

    - Kalle
    Thank you Kalle, that information was very useful. Without it, I also would have attempted to recompiled myself. Thanks for the tip

  7. #7
    Join Date
    Oct 2007
    Beans
    1

    Re: install curses/ncurses

    ubuntu, and all linux distribs, has a root account. Ubuntu chooses by default not to give this account a password. Personally, I think it's a bad idea for a number of reasons, but that's they way they have chosen to distribute the OS.

  8. #8
    Join Date
    Dec 2007
    Beans
    5

    Re: install curses/ncurses

    Im noob to linux and I am trying to install ncurses lib to ubuntu but I am not sure how. All the info I get on the web expects me to know something about what I am doing...but I do not.

    First I downloaded Ncurses 5.6 to my desktop so I could find it. Now i need to install it and I am not sure how. If I navigate to the ncurses file and type ./configure I get an error
    Code:
    checking for C compiler default output... 
    configure: error: C compiler cannot create executables
    I need to write an application using the curses library so I need this to work badly

    any help?

    Thank you!

    Av

  9. #9
    Join Date
    Nov 2006
    Beans
    5

    Re: install curses/ncurses

    sudo apt-get install build-essentials
    sudo apt-get install libncurses5-dev

  10. #10
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Beans
    48
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: install curses/ncurses

    I was compiling my cobol program using openCOBOL and was getting error :
    /usr/bin/ld: cannot find -lncurses
    collect2: ld returned 1 exit status

    Following the discussion above I installed libncurses5-dev and it works!

    Thanks all!

Page 1 of 2 12 LastLast

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
  •