LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2008, 06:55 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
Can't start a new installed program - iptraf-3.0.0.tar.gz


Hi there,

I've just installed IPTraf from iptraf-3.0.0.tar.gz

The INSTALL doc explains that you only have to run ./Setup to install it. After running ./Setup it ended with the following message:

=====================================================================
"Thank you for installing IPTraf. You can now start IPTraf by issuing the command
/usr/local/bin/iptaf
at your shell prompt. You can also add /usr/local/bin to your PATH environment variable to avoid having to type the pathname when invoking the program.

make: leaving directory '/root/iptraf-3.0.0/src'
=====================================================================

tried man iptraf - no manual entry

tried locate iptraf - it's on /var/local/, /var/log/, and /var/run/

tried which iptraf - no iptraf in (/usr/kerberos/sbin: /usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Any help will be appreciated

P.S. I run Redhat 9 (tried also on fedora but it is the same situation /usr/local/bin/ is empty) and I always operate my linux at run level 3
Thanks

Last edited by stefanolima; 07-03-2008 at 06:59 AM. Reason: Didn't specify the linux platform
 
Old 07-03-2008, 07:12 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
I'm surprised that the locate command gave any information. Locate uses its own database. I would have expected it to return no information until after the update utility ran (updatedb). If your system is set up to run the updatedb utility as user "nobody", which is typical, then when you are logged on as root you can run it like this:
Code:
su --command=updatedb nobody
I just checked to be sure that this will work on my PCLOS 2007 system. The only thing that I don't know is if Red Hat is set up to run updatedb under the "nobody" account.

Once the updatedb utility has run you can then find the binary using the locate utility.
Code:
locate iptraf | grep bin
The only way that this wouldn't work is if iptraf was installed into your home directory, which is possible.

I find that man pages for applications are sometimes set to the wrong permissions. You should check the ownership and file permissions on the man page file.

Last edited by stress_junkie; 07-03-2008 at 07:13 AM.
 
Old 09-04-2008, 02:23 AM   #3
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for ur input,

I again tried installing using the traditional make clean, make , make install and it gave me errors. I thinks that's why it can't be located. I then decided to install using rpm and and I can use iptraf now.

But anyway, below is the output of make clean, make, and make install, if you can help me find out why that tar.gz didn't work

-----------------------------
[root@stefalino src]# make clean
rm -f *.o *~ core iptraf rvnamed rawtime
make -C ../support clean
make[1]: Entering directory `/root/Download/iptraf-3.0.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make[1]: Leaving directory `/root/Download/iptraf-3.0.0/support'
[root@stefalino src]# make
gcc -Wall -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/i386\" -c -o iptraf.o iptraf.c
gcc -Wall -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/i386\" -c -o itrafmon.o itrafmon.c
itrafmon.c: In function ‚checkrvnamed‚:
itrafmon.c:511: warning: not enough variable arguments to fit a sentinel
itrafmon.c: In function ‚ipmon‚:
itrafmon.c:1044: warning: pointer targets in passing argument 3 of ‚processpacket‚ differ in signedness
gcc -Wall -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/i386\" -c -o packet.o packet.c
packet.c: In function ‚adjustpacket‚:
packet.c:218: warning: pointer targets in passing argument 1 of ‚get_tr_ip_offset‚ differ in signedness
packet.c: In function ‚getpacket‚:
packet.c:286: warning: pointer targets in passing argument 6 of ‚recvfrom‚ differ in signedness
gcc -Wall -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/i386\" -c -o tcptable.o tcptable.c
tcptable.c: In function ‚updateentry‚:
tcptable.c:602: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
tcptable.c:604: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
tcptable.c:606: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
gcc -Wall -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/i386\" -c -o othptab.o othptab.c
In file included from /usr/include/stdlib.h:439,
from tcptable.h:10,
from othptab.c:27:
/usr/include/sys/types.h:62: error: conflicting types for ‚dev_t‚
/usr/include/linux/types.h:13: error: previous declaration of ‚dev_t‚ was here
/usr/include/sys/types.h:67: error: conflicting types for ‚gid_t‚
/usr/include/linux/types.h:27: error: previous declaration of ‚gid_t‚ was here
/usr/include/sys/types.h:72: error: conflicting types for ‚mode_t‚
/usr/include/linux/types.h:15: error: previous declaration of ‚mode_t‚ was here
/usr/include/sys/types.h:77: error: conflicting types for ‚nlink_t‚
/usr/include/linux/types.h:16: error: previous declaration of ‚nlink_t‚ was here
/usr/include/sys/types.h:82: error: conflicting types for ‚uid_t‚
/usr/include/linux/types.h:26: error: previous declaration of ‚uid_t‚ was here
In file included from /usr/include/sys/types.h:134,
from /usr/include/stdlib.h:439,
from tcptable.h:10,
from othptab.c:27:
/usr/include/time.h:105: error: conflicting types for ‚timer_t‚
/usr/include/linux/types.h:22: error: previous declaration of ‚timer_t‚ was here
In file included from /usr/include/sys/types.h:221,
from /usr/include/stdlib.h:439,
from tcptable.h:10,
from othptab.c:27:
/usr/include/sys/select.h:78: error: conflicting types for ‚fd_set‚
/usr/include/linux/types.h:12: error: previous declaration of ‚fd_set‚ was here
In file included from /usr/include/stdlib.h:439,
from tcptable.h:10,
from othptab.c:27:
/usr/include/sys/types.h:235: error: conflicting types for ‚blkcnt_t‚
/usr/include/linux/types.h:124: error: previous declaration of ‚blkcnt_t‚ was here
othptab.c: In function ‚add_othp_entry‚:
othptab.c:139: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
othptab.c:141: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
othptab.c:144: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
othptab.c:146: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
othptab.c:149: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
othptab.c:151: warning: pointer targets in passing argument 1 of ‚convmacaddr‚ differ in signedness
make: *** [othptab.o] Error 1
[root@stefalino src]# make install

*** Installing executable programs and preparing work directories

>>> Installing iptraf in /usr/local/bin
/usr/bin/install: cannot stat `iptraf': No such file or directory
>>> Installing rvnamed in /usr/local/bin
/usr/bin/install: cannot stat `rvnamed': No such file or directory
>>> IPTraf work directory /var/local/iptraf already exists
>>> IPTraf log directory /var/log/iptraf already exists
>>> IPTraf lockfile directory /var/run/iptraf already exists


*** iptraf, and rvnamed executables are in /usr/local/bin
*** Log files are placed in /var/log/iptraf


======================================================================

Please read the RELEASE-NOTES file for important new information about
this version. You can view this file now (will require the 'less'
program in /usr/bin. Press Q to quit when done).

Would you like to view the RELEASE-NOTES file now (Y/N)? n

=====================================================================

Thank you for installing IPTraf. You can now start IPTraf by issuing
the command

/usr/local/bin/iptraf

at your shell prompt. You can also add /usr/local/bin to your PATH environment
variable to avoid having to type the pathname when invoking the program.
----------------------------------------------------
 
Old 09-04-2008, 03:34 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Just FYI, RH9 (codename Shrike) hasn't been supported/updated in yrs. Its wide open to exploits...
I'd advise going with Fedora 9.
 
Old 09-04-2008, 04:00 AM   #5
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Just FYI, RH9 (codename Shrike) hasn't been supported/updated in yrs. Its wide open to exploits...
I'd advise going with Fedora 9.
Sure, but this last installation I did on Fedora 9, but still tar.gz didn't work
 
Old 09-04-2008, 04:25 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
well you are getting an ERROR during make .So make dose not finish There for there is NOTHING to install
no wonder it won't build on fedora 9 with gcc 4.1 the last update to the code was on
Mon, Sep 19th 2005 05:07 UTC
http://freshmeat.net/projects/iptraf/
-- and --
http://iptraf.seul.org/
Announcing the release of IPTraf 3.0.0, the newest major release
IPTraf 3.0.0 - September 19, 2005

you will need to have gcc 3.4 installed
for fedora9 it is
compat-gcc-34-c++-
compat-gcc-34

personally i would install snort
-- fedora --
Code:
su -
yum install snort
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[HOW TO] Install Program from Source-tar.gz/tar.bz kratosal Linux - Newbie 5 04-04-2008 04:59 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
Just installed Partimage. How do I start the program? thort Linux - Newbie 6 03-18-2006 12:26 PM
any improved version of iptraf or any other utility like iptraf..? shahg_shahg Linux - Networking 1 03-07-2005 01:58 AM
Program installed, now can't locate or start it rollo Linux - Newbie 24 12-29-2004 10:22 PM


All times are GMT -5. The time now is 06:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration