Solved

getting split.c:51:4: #error while installing mtr-0.44

Posted on 2004-08-26
4
211 Views
Last Modified: 2013-12-06
Hi,
I am trying to install mtr-044 on a Fedora Core release 1. Its a program which pings and does traceroute simultaneously. While issuing the command 'make' i get the follwoing error:

root@test mtr-0.44]# make
make  all-recursive
make[1]: Entering directory `/home/test/mtr-0.44'
Making all in img
make[2]: Entering directory `/home/test/mtr-0.44/img'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/test/mtr-0.44/img'
make[2]: Entering directory `/home/test/mtr-0.44'
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -c split.c
split.c:51:4: #error No curses header file available
make[2]: *** [split.o] Error 1
make[2]: Leaving directory `/home/test/mtr-0.44'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/test/mtr-0.44'
make: *** [all-recursive-am] Error 2
[root@test mtr-0.44]#

What does that error mean? Previously I was running the same program in Redhat 7.1 without any errors.

TIA,
S.
0
Comment
Question by:shekharbasnet
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:de2Zotjes
ID: 11901686
Ther error is clear: there is no curses header file available.
The header file is needed to inform the mtr packet about the capabilities of your curses libraries (roughly).

The easiest solution is to install the rpm that contains those header files. In redhat/fedora speak those are the devel-packages. So you probably have a ncurses library on your system (check with rpm -q -a|grep curses), install the devel-rpm for the SAME version:

rpm -q -a|grep ncurses

ncurses-5.2-26

rpm -iv ncurses-devel-5.2-26.rpm

You will probably have to search for the file on your distribution medium or the internet.
0
 
LVL 2

Author Comment

by:shekharbasnet
ID: 11924392
Ok, I downloaded and isntalled the relevant devel-rpm.

[root@test mtr-0.44]# rpm -qa | grep curses
ncurses-5.3-9
ncurses-devel-5.3-9
[root@test mtr-0.44]#

But  I am still getting the same error. Any other suggestions?

TIA
s.
0
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 125 total points
ID: 11926885
You need to "clean" out the configuration data that is stored for the mtr package:

make distclean (might produce an error, no such target)
make clean

ls -a| grep cache

remove any cache files having anything to do with config.

After all this do another
./configure
make all
0
 
LVL 2

Author Comment

by:shekharbasnet
ID: 11929118
Perfect...

Thanks a lot

-s
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
If you don't know how to downgrade, my instructions below should be helpful.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now