LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-25-2014, 03:37 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Rep: Reputation: Disabled
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
 
Old 03-25-2014, 04:51 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
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' ? ?



-

Last edited by knudfl; 03-25-2014 at 04:54 PM.
 
Old 03-25-2014, 05:40 PM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
I am unable to install libiptables-ipv4-ipqueue-perl: It is unable to locate the package. I am running Lubuntu.
 
Old 03-26-2014, 02:35 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
# 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.

-

Last edited by knudfl; 03-26-2014 at 02:43 AM.
 
Old 03-26-2014, 10:04 AM   #5
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
Tried both. Doesn't seem to work. This is what I get - (see attached image)
Attached Thumbnails
Click image for larger version

Name:	UPLOAD.jpg
Views:	5
Size:	51.1 KB
ID:	15063  

Last edited by sniper8752; 03-26-2014 at 10:07 AM.
 
Old 03-26-2014, 10:13 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
# 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'.

-
 
Old 03-27-2014, 03:35 PM   #7
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
$ cat /etc/issue <Enter>
Ubuntu 13.10 \n \l
 
Old 03-27-2014, 03:38 PM   #8
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
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.

Last edited by sniper8752; 03-27-2014 at 03:42 PM.
 
Old 03-27-2014, 06:29 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
#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 !


-

Last edited by knudfl; 03-27-2014 at 06:36 PM.
 
Old 03-27-2014, 06:48 PM   #10
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
I get this error when I try to do an update now, or install the .deb file:
Attached Thumbnails
Click image for larger version

Name:	UPLOAD.jpg
Views:	3
Size:	23.6 KB
ID:	15074   Click image for larger version

Name:	UPLOAD2.jpg
Views:	3
Size:	73.4 KB
ID:	15075  
 
Old 03-27-2014, 07:11 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
# 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.
 
Old 03-27-2014, 09:12 PM   #12
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
What about the second image? i thought that I had installed everything?
 
Old 03-28-2014, 05:31 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,062

Rep: Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876Reputation: 2876
# 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
-
 
Old 03-28-2014, 08:26 AM   #14
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 12 .

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

-
I commented that line out.
 
Old 03-28-2014, 10:48 AM   #15
sniper8752
Member
 
Registered: Oct 2012
Posts: 320

Original Poster
Rep: Reputation: Disabled
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?
 
  


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
INetSim C3phalex1n_0x Linux - Software 3 09-11-2013 12:48 AM
Setting start up programs? Flame3230 Linux - Server 7 11-24-2010 06:02 PM
Setting default programs JungleNut Linux - General 5 02-05-2006 07:36 AM
installing programs and setting permissions Furlinastis Slackware 5 12-08-2004 07:07 PM
setting umask that affects all programs in X...? apeekaboo Linux - Security 7 06-12-2003 04:48 PM


All times are GMT -5. The time now is 05:14 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