Hi everyone,
I need install some perl modules using cpan on my droplet i get this output on the terminal
install Image::Magick
Reading '/root/.cpan/Metadata'
Database was generated on Tue, 04 Feb 2020 21:41:03 GMT
Running install for module 'Image::Magick'
Checksum for /root/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Use of uninitialized value $newdir in substitution (s///) at /usr/lib/x86_64-linux-gnu/perl/5.26/Cwd.pm line 368.
Use of uninitialized value $newdir in chdir at /usr/lib/x86_64-linux-gnu/perl/5.26/Cwd.pm line 377.
Use of uninitialized value $cwd in concatenation (.) or string at /usr/share/perl/5.26/CPAN/CacheMgr.pm line 81.
Catching error: "Can't chdir to : No such file or directory at /usr/share/perl/5.26/CPAN/Distribution.pm line 470.\cJ" at /usr/share/perl/5.26/CPAN.pm line 392.
CPAN::shell() called at /usr/share/perl/5.26/App/Cpan.pm line 414
App::Cpan::_process_options("App::Cpan") called at /usr/share/perl/5.26/App/Cpan.pm line 511
App::Cpan::run("App::Cpan") called at /usr/bin/cpan line 13
When i try to find what perl modules are installed on my droplet using this command “instmodsh” i get this output:
cmd? l
Installed modules are:
Perl
cmd?
Maybe you guys can help me to solve this issue. Thanks everyone!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Solved doing this:
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
then
sudo cpanm Name::Module
Thanks everybody!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.