LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   help setting up programs for inetsim (https://www.linuxquestions.org/questions/linux-software-2/help-setting-up-programs-for-inetsim-4175499443/)

sniper8752 03-25-2014 03:37 PM

help setting up programs for inetsim
 
I am trying to set up the programs that inetsim needs to run. I had issue installing two of the programs. Here are the errors:

Code:

username@username-virtual-machine:~/Desktop/perlipq-1.25$ perl Makefile.PL

Location of iptables development components: [/usr/local]

Ok, using '/usr/local' to find libipq headers and libraries.

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lipq
Writing Makefile for IPTables::IPv4::IPQueue
Writing MYMETA.yml
username@username-virtual-machine:~/Desktop/perlipq-1.25$ make
cp dumper.pl blib/lib/IPTables/IPv4/dumper.pl
cp IPQueue.pm blib/lib/IPTables/IPv4/IPQueue.pm
AutoSplitting blib/lib/IPTables/IPv4/IPQueue.pm (blib/lib/auto/IPTables/IPv4/IPQueue)
cp passer.pl blib/lib/IPTables/IPv4/passer.pl
cp passer6.pl blib/lib/IPTables/IPv4/passer6.pl
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap  IPQueue.xs > IPQueue.xsc && mv IPQueue.xsc IPQueue.c
Please specify prototyping behavior for IPQueue.xs (see perlxs manual)
cc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC "-I/usr/lib/perl/5.14/CORE"  IPQueue.c
/bin/sh: 1: cc: not found
make: *** [IPQueue.o] Error 127
username@username-virtual-machine:~/Desktop/perlipq-1.25$ make test
cc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC "-I/usr/lib/perl/5.14/CORE"  IPQueue.c
/bin/sh: 1: cc: not found
make: *** [IPQueue.o] Error 127
username@username-virtual-machine:~/Desktop/perlipq-1.25$ make install
cc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC "-I/usr/lib/perl/5.14/CORE"  IPQueue.c
/bin/sh: 1: cc: not found
make: *** [IPQueue.o] Error 127
username@username-virtual-machine:~/Desktop/perlipq-1.25$

Code:

username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Digest::SHA
Writing MYMETA.yml
username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ make
cp lib/Digest/SHA.pm blib/lib/Digest/SHA.pm
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap  SHA.xs > SHA.xsc && mv SHA.xsc SHA.c
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"5.88\" -DXS_VERSION=\"5.88\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -DSHA_PerlIO SHA.c
/bin/sh: 1: cc: not found
make: *** [SHA.o] Error 127
username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ make test
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"5.88\" -DXS_VERSION=\"5.88\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -DSHA_PerlIO SHA.c
/bin/sh: 1: cc: not found
make: *** [SHA.o] Error 127
username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ make install
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"5.88\" -DXS_VERSION=\"5.88\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -DSHA_PerlIO SHA.c
/bin/sh: 1: cc: not found
make: *** [SHA.o] Error 127
username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ sudo make test
[sudo] password for username:
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"5.88\" -DXS_VERSION=\"5.88\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -DSHA_PerlIO SHA.c
/bin/sh: 1: cc: not found
make: *** [SHA.o] Error 127
username@username-virtual-machine:~/Desktop/Digest-SHA-5.88$ sudo make install
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g  -DVERSION=\"5.88\" -DXS_VERSION=\"5.88\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -DSHA_PerlIO SHA.c
/bin/sh: 1: cc: not found
make: *** [SHA.o] Error 127
username@username-virtual-machine:~/Desktop/Digest-SHA-5.8


knudfl 03-25-2014 04:51 PM

Which OS are you using ?

And why aren't you installing the packages ...
"iptables-dev", "libiptables-ipv4-ipqueue-perl", "libdigest-sha-perl"
.. with your `Package Manager' ? ?



-

sniper8752 03-25-2014 05:40 PM

I am unable to install libiptables-ipv4-ipqueue-perl: It is unable to locate the package. I am running Lubuntu.

knudfl 03-26-2014 02:35 AM

# 3 : Unknown Ubuntu version : $ cat /etc/issue

The install command for Ubuntu 10.04 and 12.04 is :
sudo apt-get update && sudo apt-get install libiptables-ipv4-ipqueue-perl

Other Ubuntu versions :
sudo apt-get update && sudo apt-get install iptables-dev libdigest-sha-perl

.. And then you can install perlipq-1.25 manually, or with cpan.

-

sniper8752 03-26-2014 10:04 AM

1 Attachment(s)
Tried both. Doesn't seem to work. This is what I get - (see attached image)

knudfl 03-26-2014 10:13 AM

# 5 .

! First : You forgot to answer $ cat /etc/issue <Enter>

About "could not get lock" :
You will have to close all "Package Managers" before using 'apt-get'.

-

sniper8752 03-27-2014 03:35 PM

Quote:

Originally Posted by knudfl (Post 5141591)
$ cat /etc/issue <Enter>

Ubuntu 13.10 \n \l

sniper8752 03-27-2014 03:38 PM

When I ran
sudo apt-get install iptables-dev libdigest-sha-perl
It said that it is "already the newest version".
EDIT: Does this take care of Digest-SHA-5.88? And I just need to install perlipq-1.25, right?
And I tried installing libiptables-ipv4-ipqueue-perl (http://www.ubuntuupdates.org/package...e/base/perlipq) but it said it is not able to locate it.

knudfl 03-27-2014 06:29 PM

#8 :
a) No libiptables-ipv4-ipqueue-perl for Ubuntu 13.10 : Read post #4.
b) Inetsim does not require libiptables-ipv4-ipqueue-perl / perlipq-1.25 .

Install "INetSim" version 1.2.4 , ref. http://www.inetsim.org/packages.html
1) gedit /etc/apt/sources
.... And then add this line , and save : deb http://www.inetsim.org/debian/ binary/
2) sudo dpkg -i inetsim-archive-keyring_2008.10.12_all.deb
Or 2a) sudo wget http://www.inetsim.org/inetsim.org-a...igning-key.asc | apt-key add
3) sudo apt-get update && sudo apt-get install inetsim
*** Tested with Ubuntu 13.10 : No issues !


-

sniper8752 03-27-2014 06:48 PM

2 Attachment(s)
I get this error when I try to do an update now, or install the .deb file:

knudfl 03-27-2014 07:11 PM

# 10 .
Please do not show errors as an image : Use copy/paste for text.

Solution for the corrupt line 58 : Delete the line,
or comment it with a hash mark ( # ) , then the line is ignored.

sniper8752 03-27-2014 09:12 PM

What about the second image? i thought that I had installed everything?

knudfl 03-28-2014 05:31 AM

# 12 .
Quote:

I thought that I had installed everything
No. A corrupt `/etc/apt/sources.list' will prevent $ sudo apt-get update
.. Must be fixed before you can do $ sudo apt-get install inetsim
.. And : Nothing is installed until you get this message :
Code:

Setting up <package-name>
OK

-

sniper8752 03-28-2014 08:26 AM

Quote:

Originally Posted by knudfl (Post 5142757)
# 12 .

No. A corrupt `/etc/apt/sources.list' will prevent $ sudo apt-get update

-

I commented that line out.

sniper8752 03-28-2014 10:48 AM

i did a sudo apt-get -f, and it seemed to have fixed it. but why isn't it liking the
deb http://www.inetsim.org/debian/ binary/
? I think maybe because there is a space between the two - the link, and the binary word. is the space part of the address?


All times are GMT -5. The time now is 09:04 PM.