LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-14-2002, 04:10 PM   #1
AnyoneEB
LQ Newbie
 
Registered: Jun 2002
Distribution: Debian
Posts: 19

Rep: Reputation: 0
Where to get Perl Moduals?


I was trying to run a perl program (script?) and it gave an error looking for a file (Pcap.pm). I looked at the readme and it says:
Quote:
Requires the following perl modules:
Net::Pcap
NetPacket::Ethernet
NetPacket::IP
NetPacket::TCP
Unicode::String
DBI
DBD::mysql
Where should I look to get those?

I'm using Debian and Perl 5.6.1.
 
Old 11-14-2002, 04:20 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The best place is either from your distro media or CPAN.
 
Old 11-14-2002, 04:49 PM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
www.search.cpan.org
whatever u need - here it is :-)
cheers, jens
 
Old 11-14-2002, 05:00 PM   #4
AnyoneEB
LQ Newbie
 
Registered: Jun 2002
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you for the link, I found all the modules I needed, but I still get an error.
Quote:
Can't locate loadable object for module Net::Pcap in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/per
l5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .)
Is that a coding error or do I need more files? (Pcap.pm is in the path, and it reconizes that)

EDIT: fixed, now it runs and gives the error:
Quote:
perl: relocation error: /usr/local/lib/perl/5.6.1/auto/Net/Pcap/Pcap.so: undefined symbol: pcap_open_live

Last edited by AnyoneEB; 11-14-2002 at 05:34 PM.
 
Old 11-15-2002, 11:28 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
i've never seen that yet cause the perl modules tend to install perfectly. if they are missing some dependencies they usually complain about that during
perl Makefile.PL or make or make install
but it seems there is a shared object missing or not written correctly??
1. u might update to perl5.8, perhaps then everything works fine
2. u might wait for someone who knows better :-)
cheers, jens
 
Old 11-16-2002, 11:13 AM   #6
AnyoneEB
LQ Newbie
 
Registered: Jun 2002
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: 0
I fixed the problem by deleting the files that I installed manually and finding out what the name of the apt-get modual was and that worked fine.
 
  


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
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 04:22 PM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 06:07 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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