PDA

View Full Version : install curses/ncurses


yolloms
November 9th, 2006, 09:50 AM
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.:-k

qamelian
November 9th, 2006, 09:56 AM
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.:-k
Don't use su. Instead use sudo make install and enter your own password. This gives you the equivalent of root privleges temporarily.

yolloms
November 9th, 2006, 10:04 AM
so simple

thanks

qamelian
November 9th, 2006, 10:04 AM
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.

ktuulos
February 24th, 2007, 04:06 PM
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.:-k
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

city-17
October 1st, 2007, 11:18 PM
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

cg2112
October 30th, 2007, 12:56 PM
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.

Avalanche21
December 12th, 2007, 05:16 AM
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:confused:.

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

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

driedfruit
February 23rd, 2008, 01:12 AM
sudo apt-get install build-essentials
sudo apt-get install libncurses5-dev