![]() |
Automatically install perl dependencies?
Hello,
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: Code:
perl Makefile.PLCode:
Warning: prerequisite Imager 0.49 not found.I've tried googling without much luck. And 'man perl' doesn't seem like the right place to find this. Thank you. |
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: Code:
sudo aptitude install libvideo-capture-v4l-perl |
Hello, thank you for your response.
Quote:
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. Thanks! |
Use the CPAN shell to install perl modules from CPAN, it will do (nearly) all of the dependencies checking and resolving:
Code:
$ sudo perl -MCPAN -e shellCode:
$ perldoc CPAN |
This is straight from the perlsdocs, it will install all dependencies without any interaction
Code:
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Video::Capture::V4l::Imager' |
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.
|
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. Thanks |
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.
|
| All times are GMT -5. The time now is 11:57 PM. |