LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't start a new installed program - iptraf-3.0.0.tar.gz (https://www.linuxquestions.org/questions/linux-newbie-8/cant-start-a-new-installed-program-iptraf-3-0-0-tar-gz-653307/)

stefanolima 07-03-2008 05:55 AM

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

stress_junkie 07-03-2008 06:12 AM

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.

stefanolima 09-04-2008 01:23 AM

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.
----------------------------------------------------

chrism01 09-04-2008 02:34 AM

Just FYI, RH9 (codename Shrike) hasn't been supported/updated in yrs. Its wide open to exploits...
I'd advise going with Fedora 9.

stefanolima 09-04-2008 03:00 AM

Quote:

Originally Posted by chrism01 (Post 3269173)
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

John VV 09-04-2008 03:25 AM

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



All times are GMT -5. The time now is 01:36 AM.