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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-25-2014, 03:37 PM
|
#1
|
Member
Registered: Oct 2012
Posts: 564
Rep:
|
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
|
|
|
03-25-2014, 04:51 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
|
|
|
03-25-2014, 05:40 PM
|
#3
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
I am unable to install libiptables-ipv4-ipqueue-perl: It is unable to locate the package. I am running Lubuntu.
|
|
|
03-26-2014, 02:35 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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.
|
|
|
03-26-2014, 10:04 AM
|
#5
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
Tried both. Doesn't seem to work. This is what I get - (see attached image)
Last edited by sniper8752; 03-26-2014 at 10:07 AM.
|
|
|
03-26-2014, 10:13 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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'.
-
|
|
|
03-27-2014, 03:35 PM
|
#7
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
$ cat /etc/issue <Enter>
|
Ubuntu 13.10 \n \l
|
|
|
03-27-2014, 03:38 PM
|
#8
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
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.
|
|
|
03-27-2014, 06:29 PM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
#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.
|
|
|
03-27-2014, 06:48 PM
|
#10
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
I get this error when I try to do an update now, or install the .deb file:
|
|
|
03-27-2014, 07:11 PM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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.
|
|
|
03-27-2014, 09:12 PM
|
#12
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
What about the second image? i thought that I had installed everything?
|
|
|
03-28-2014, 05:31 AM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 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
-
|
|
|
03-28-2014, 08:26 AM
|
#14
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
# 12 .
No. A corrupt `/etc/apt/sources.list' will prevent $ sudo apt-get update
-
|
I commented that line out.
|
|
|
03-28-2014, 10:48 AM
|
#15
|
Member
Registered: Oct 2012
Posts: 564
Original Poster
Rep:
|
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 04:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|