Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-06-2008, 07:17 AM   #1
LQ Newbie
Registered: Dec 2007
Location: Chicago, USA
Distribution: Debian, NetBSD
Posts: 25

Rep: Reputation: 15
Automatically install perl dependencies?


I recently installed Video::Capture::V4l using apt from Debian's repositories.

I then downloaded the Video::Capture::V4l::Imager tarball from CPAN.

I've unpacked the tarball, cd'd into the directory, and ran:
perl Makefile.PL
at which point I receive:

Warning: prerequisite Imager 0.49 not found.
Warning: prerequisite Inline::C 0.44 not found.
Warning: prerequisite Log::Log4perl 1.06 not found.
Warning: prerequisite Video::Capture::V4l 0.9 not found.
Writing Makefile for Video::Capture::V4l::Imager
Would anyone be so kind as to share the switch for automatically downloading and installing prerequisites from CPAN?

I've tried googling without much luck. And 'man perl' doesn't seem like the right place to find this.

Thank you.
Old 08-06-2008, 09:04 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Debian has a package for that Perl module, so I expect any dependencies which it has will also be in the Debian repositories.

Use aptitude and install the package libvideo-capture-v4l-perl:

sudo aptitude install libvideo-capture-v4l-perl
For other modules which do not have Debian packages, you might want to use the CPAN interactive system. See the cpan manual page for more information. IIRC, CPAN does include the ability to recursively download dependencies within the CPAN sources.
Old 08-06-2008, 09:26 AM   #3
LQ Newbie
Registered: Dec 2007
Location: Chicago, USA
Distribution: Debian, NetBSD
Posts: 25

Original Poster
Rep: Reputation: 15
Hello, thank you for your response.

Originally Posted by matthewg42 View Post
Use aptitude and install the package libvideo-capture-v4l-perl:
I have that installed already. I am trying to install from CPAN what would be the equivalent of 'libvideo-capture-v4l-imager-perl' which isn't a package in the Debian repositories. So I downloaded the tarball from CPAN, unpacked it, and tried to install it. I ran into dependency issues.

I was just wondering, for future reference, if there was a way to install CPAN packages and have dependencies installed automatically, without more than some initial interaction, like apt does.

Old 08-06-2008, 09:43 AM   #4
ne pas
Registered: Jul 2008
Posts: 55

Rep: Reputation: 23
Use the CPAN shell to install perl modules from CPAN, it will do (nearly) all of the dependencies checking and resolving:
$ sudo perl -MCPAN -e shell

cpan>install Video::Capture::V4l::Imager
see CPAN-Module's perldoc for more instructions
$ perldoc CPAN
Old 08-07-2008, 08:38 PM   #5
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,290

Rep: Reputation: 62
This is straight from the perlsdocs, it will install all dependencies without any interaction

PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Video::Capture::V4l::Imager'
Old 08-08-2008, 12:44 AM   #6
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Be very careful when mixing package-based perl modules with CPAN modules. This can lead to mysterious module load failures, difficult for inexperienced users to diagnose and resolve.
Old 12-03-2010, 03:46 PM   #7
LQ Newbie
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Hi the two commands worked for me but at the end it gave me following things

Running make install
make test had returned bad status, won't install without force
Failed during this command:
DARREN/Tie-Google-0.03.tar.gz : make_test NO
ASCOPE/Net-Google-1.0.tar.gz : make_test NO

What should i do?

Any help shall be appericiated.

Old 12-04-2010, 02:24 AM   #8
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,290

Rep: Reputation: 62
Did you run the commnad as root, you need root privileges to install, also make sure you update cpan itself to the latest version before updating any other cpan packages.


auto, cpan, install, module, perl

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
Linux and Perl module dependencies?? niner710 Linux - Newbie 5 04-29-2008 09:18 AM
scan now for module dependencies using libmodule-scandeps-perl cccc Linux - General 3 10-31-2007 12:41 PM
dvd::rip - Can't resolve perl install dependencies crystaldon Fedora 3 09-11-2006 04:17 PM
How can I install a rpm package and get the dependencies installed automatically? sceadu Fedora 10 01-06-2006 04:10 PM
perl modules failed dependencies ziggie216 Linux - Software 5 01-14-2005 07:01 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration