Re: install curses/ncurses
Quote:
Originally Posted by
yolloms
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 and enter your own password. This gives you the equivalent of root privleges temporarily.
Re: install curses/ncurses
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.
Re: install curses/ncurses
Quote:
Originally Posted by
yolloms
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
Re: install curses/ncurses
Quote:
Originally Posted by
ktuulos
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
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.
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: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
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
Re: install curses/ncurses
sudo apt-get install build-essentials
sudo apt-get install libncurses5-dev
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!
):P