LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2005, 12:42 PM   #1
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Rep: Reputation: 15
ncurses and ncursed-dev are present but the App install throws errors?


Hi Everyone,

I send my best to those of you with family and friends that have been deeply affected by the Devastating Tsunami Waves in Asia

I have been reading thread after thread on this one and I think I know what SHOULD be the solution only it is not working!

I am attempting to ./configure imapproxy and am getting these errors:


Code:
#
...

checking for initscr in -lcurses... no
configure: error: Can't compile without curses!!!

#

I am running Suse 9.1 and through both YAST and downloaded RPMs I have installed:

Quote:

ncurses - New curses libraries

Installed Version
Version:
5.4-59
5.4-59
Build Time:
04/05/2004 07:25:10 PM
04/05/2004 07:25:10 PM
Install Time:

01/02/2005 07:36:42 PM
Package Group:
System/Libraries

and

ncurses-devel - Include Files and Libraries mandatory for Development

Installed Version
Version:
5.4-59
5.4-59
Build Time:
04/05/2004 07:25:10 PM
04/05/2004 07:25:10 PM
Install Time:

01/02/2005 07:36:58 PM
Package Group:
Development/Libraries/C and C++

I know that both ncurses and ncurses-dev need to be installed for the compile to work; however even though I do have them installed I still get he error.

Is this a problem with Suse 9.1 or are there additional packages that must be installed? If you can't answer the previous question, then do you know how to get around this?

In almost all of the 100 or so threads that I read previously to posting this the advice was to install one or another or both the ncurses and ncurses-dev; however I was not able to find someone else that had both installed an reported this and had a fix.

Your help and time is greatly appreciated.

ServerStorm
 
Old 01-04-2005, 01:06 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
First, try a 'make distclean' in your imapproxy source directory.

Next, as the root user, run 'ldconfig' again just to make sure the systems knows where to find the libraries.

Then try 'locate ncurses' to see where SuSE installed it and the devel libraries.

Try ./configure --help to see if there is a default location used for the libraries, and how to set the correct path to find them.

Run ./configure (with options if required to point to ncurses)
 
Old 01-04-2005, 02:18 PM   #3
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
As Suggested I First tried to run a make distclean. It gave an error:

Code:
# make distclean
make: *** No rule to make target `distclean'.  Stop.
Then I ran 'ldconfig' which proceed fine.

When I located ncurses this is a summary of the files found (minus documentation).

file:/var/lib/YaST2/you/installed/ncurses-51347
file:/var/lib/YaST2/you/mnt/i386/update/9.1/patches/ncurses-51347
file:/var/adm/YaST/InstSrcManager/IS_CACHE_0x00000001/MEDIA/suse/i586/ncurses-devel-5.4-59.i586.rpm
file:/var/lib/YaST2/you/mnt/i386/update/9.1/rpm/i586/ncurses-devel-5.4-61.3.i586.patch.rpm
file:/usr/share/man/man3/ncurses.3ncurses.gz
file:/usr/share/susehelp/meta/Administration/System/ncurses.desktop
file:/usr/include/ncurses.h
file:/usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi/ncurses.ph
file:/usr/lib/zinf/plugins/ncurses.ui
file:/usr/include/ncurses_dll.h
file:/usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi/ncurses_dll.ph

I have highlighted lines in Red as the paths to the files that I think it needs. I am not sure if these are correct?

Quote:
Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.

Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-openssl=DIR use OpenSSL rooted in DIR
--with-openssl-inc=DIR use OpenSSL headers from DIR
--with-openssl-lib=DIR use OpenSSL libs from DIR
--with-krb5=DIR use Kerberos5 rooted in DIR
--with-libwrap=DIR use libwrap rooted in DIR

Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Here is my botched attempts at using the options. It is quite apparent that I don't understand how to use this command properly!

Quote:
# ./configure -I</usr> -I</usr>
bash: syntax error near unexpected token `newline'
# ./configure -I</usr>
bash: syntax error near unexpected token `newline'
# ./configure --I</usr>
bash: syntax error near unexpected token `newline'
# ./configure -I Var=</usr>
bash: syntax error near unexpected token `newline'
# ./configure CPPFLAGS -I</usr>
bash: syntax error near unexpected token `newline'
# ./configure CPPFLAGS -I</usr>
bash: syntax error near unexpected token `newline'
# ./configure CPPFLAGS =-I</usr>
bash: syntax error near unexpected token `newline'
I don't know if I:

a) performed the make distclean properly, but I can tell you that I was in the source directory when I issued the 'make distclean' at the command line.

b) If the file paths (highlighted in red) are what I should be including

c) how to add the paths to the options in ./configure

I have performed a few source compilations before but they were pretty vanilla - follow cut and paste scripts and I didn't have to do anything fancy what you have asked is new too me.

Thanks for your post and I hope that you might clear up some of the difficulties that I am experiencing.

Truly,
ServerStorm.
 
Old 01-04-2005, 02:40 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Don't worry about the CPP flags unless you're having serious compiler issues.

how about 'locate libncurses' - what does that tell you?
 
Old 01-04-2005, 10:44 PM   #5
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Mcleodnine

When I type locate libncurses into the command prompt I get the following error:

Code:
locate libncurses
bash: locate: command not found
Not having much luck with the old line commands today

Truly,
ServerStorm
 
Old 01-04-2005, 11:37 PM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Ahhh, yeah. Good ole SuSE....

Fire up YaST and tell it you want to install packages, search for 'locate' and install the recommendations. 'locate' and 'slocate are some very handy tools and really should be a part of the default installation of any distribution. Lightweight, zero calories, and low in satutated fats.
 
Old 01-05-2005, 11:25 AM   #7
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Installed locate (thanks for the heads-up!)

ran the command with success and what is interesting is that it did not locate ncurses:

Code:
# locate libncurses
locate: /var/lib/locatedb: No such file or directory
In an earlier post in this thread using Find I was able to locate a certain number of curses files; however with 'locate libncurses' or 'locate [-d] libncurses it found nothing. Does this indicate that even though ncurses and ncursed-deve are installed that they are not located in the proper spot or listed in a environmental variable or text file?

Thanks for you help thus far. I hoping to get through it so that I can get my mail server up and running (for my new business) yikes so much to learn and so little time. Your time is Very Much appreciated!

Truly,
ServerStorm
 
Old 01-05-2005, 11:35 AM   #8
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
As user 'root' - run 'updatedb'. This will make an index of all the files on your system. Most distros are setup to run this daily via a cron job.

If you want to stick with the find command try 'find / -iname "libncurses*" '
 
Old 01-05-2005, 12:33 PM   #9
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
A little success

I first tried locate (as seen below) but nothing (I think because it seems to be searching /var/lib/locatedb only) so I then used find and this is what it came up with:

foozle:~ # locate libncurses
locate: /var/lib/locatedb: No such file or directory

foozle:~ # find / -iname "libncurses*"
/lib/libncurses.so.5
/lib/libncurses.so.5.4
/usr/lib/libncurses.so.1.9.7a
/usr/lib/libncurses++w.a
/usr/lib/libncurses.so.4
/usr/lib/libncurses.so.2.1
/usr/lib/libncurses.so.4.2
/usr/lib/libncurses++.a
/usr/lib/libncursesw.so.5
/usr/lib/libncursesw.so
/usr/lib/libncurses.so
/usr/lib/libncursesw.so.5.4
/usr/lib/libncurses.a

I also ran updatedb, which ran correctly - I will be looking at (in my own time) setting up Cron to do this as a daily job; although a topic for another day...

I also noticed something in Yast that may be of interest. Even though NCurses and NCurses-Deve were showing as installed when I checked the dependancies there were conflicts. I straightened out the conflicts by ensuring the version were all that what was recommended and then ncurses reported no conflicts.

Excitedly I tried ./configure again and got the same errors, but at least I feel like steps forward have been made in that we found the libncurses now, what to do with the info that the found livncurses provides?

Thanks for your continued help! I feel that we are close!

Truly,
ServerStorm

Last edited by ServerStorm; 01-05-2005 at 12:37 PM.
 
Old 01-05-2005, 12:42 PM   #10
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Strange.

try 'make clean' in the source directory and if that doesn't work, delete the source dir and unpack the tarball again to get a fresh start.

Now that you've run updatedb, the locate command should function properly for you. I'm pretty sure that SuSE runs updatedb every day as part of its cron jobs, so there's nothing you should have to do in that department. 'locate' is a lot faster than find as it just looks in its own database, rather than searching the entire filesystem.
 
Old 01-05-2005, 03:03 PM   #11
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Well after a wild goose chase - something that I did adversly affected x-windows on reboot and so I had to get that back up and running (which I did), I did as suggested and started from a fresh .tar file. long story short after getting down to ./configure I got the same checking for initscr in -lcurses...no error.

Further thoughts?

BTW locate did work and output the same as find only as you suggested a whole pile faster!

Thank you,
ServerStorm

Last edited by ServerStorm; 01-05-2005 at 03:04 PM.
 
Old 01-05-2005, 03:14 PM   #12
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
some programs look for curses (not ncurses) which is what it looks like the one your having problems with is doing. so (as root):

ln -s /lib/libncurses.so.5 /lib/libcurses.so
ln -s /lib/libncurses.so.5 /usr/lib/libcurses.so

should take care of that
 
Old 01-05-2005, 03:38 PM   #13
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Wooooo Whoooooooooooo!

These simple commands did it!!!!!

Code:
ln -s /lib/libncurses.so.5 /lib/libcurses.so
ln -s /lib/libncurses.so.5 /usr/lib/libcurses.so
If I understand this correctly the ls operation lists both filenames, but only one physical file will exist. This should mean that moving forward I should not run into the problem of some programs look for curses (not ncurses)?

Thank you __J for this solution! Mcleodnine a great big thanks to you too as I learned many things from the different processes that you asked me to try!


Gratuitous Happiness
 
Old 01-05-2005, 03:46 PM   #14
ServerStorm
Member
 
Registered: Oct 2004
Posts: 76

Original Poster
Rep: Reputation: 15
BTW I thought I would tie up a loose end - I did figure out how to add parameter to './configure'. This worked:

Code:
./configure  libdir="/usr/lib/"
...
Thanks again!!!!!!!!!!!!!!!!!!!
ServerStorm (getting a little less stormy all the time )
 
Old 01-05-2005, 03:55 PM   #15
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
yes you understand correctly. you shouldn't run into too many programs that will require this but there are some out there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sequencer not present jagot Linux - Hardware 2 10-22-2006 03:12 PM
errors: present but cannot be compiled AzY Linux - Newbie 5 01-08-2005 02:53 PM
The Curse of NCurses that are all present ServerStorm SUSE / openSUSE 2 01-05-2005 09:07 PM
ncurses-dev alaios Programming 4 11-14-2004 06:28 PM
No sound but /dev/dsp present meldar Linux - Hardware 7 03-06-2004 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration