ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
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.
When I run one of my script I've got the following error:
Code:
Can't locate String/Util.pm in @INC (you may need to install the String::Util module)
I've already tried
Code:
cpan install String::Util
Read the "Question Guidelines" link in my posting signature. You don't tell us what operating system you're using, what error(s)/message(s) you're getting when you run that cpan command, if you've even installed CPAN, or if you've tried downloading/installing the module from source, using the instructions that come with the tarball. Without details, we can't tell you anything.
I have to appologys as after checking I notice that String::Util was not installed so I run again the installation cpan install String::Util
And I got an error (That I probably get the first time too, but I didn't watch close enough)
Here is the error:
Code:
# cpan install String::Util
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 02 Jan 2017 20:17:02 GMT
Running install for module 'String::Util'
Checksum for /root/.cpan/sources/authors/id/M/MI/MIKO/String-Util-1.26.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring M/MI/MIKO/String-Util-1.26.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Number::Misc 1.2 not found.
Warning: prerequisite Test::Toolbox 0.2 not found.
Generating a Unix-style Makefile
Writing Makefile for String::Util
Writing MYMETA.yml and MYMETA.json
MIKO/String-Util-1.26.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MI/MIKO/String-Util-1.26.tar.gz
---- Unsatisfied dependencies detected during ----
---- MIKO/String-Util-1.26.tar.gz ----
Test::Toolbox [requires]
Number::Misc [requires]
Running install for module 'Test::Toolbox'
Checksum for /root/.cpan/sources/authors/id/M/MI/MIKO/Test-Toolbox-0.4.tar.gz ok
Configuring M/MI/MIKO/Test-Toolbox-0.4.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Toolbox
Writing MYMETA.yml and MYMETA.json
MIKO/Test-Toolbox-0.4.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MI/MIKO/Test-Toolbox-0.4.tar.gz
MIKO/Test-Toolbox-0.4.tar.gz
make -- NOT OK
Running install for module 'Number::Misc'
Checksum for /root/.cpan/sources/authors/id/M/MI/MIKO/Number-Misc-1.2.tar.gz ok
Configuring M/MI/MIKO/Number-Misc-1.2.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Number::Misc
Writing MYMETA.yml and MYMETA.json
MIKO/Number-Misc-1.2.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MI/MIKO/Number-Misc-1.2.tar.gz
MIKO/Number-Misc-1.2.tar.gz
make -- NOT OK
MIKO/String-Util-1.26.tar.gz
Has already been unwrapped into directory /root/.cpan/build/String-Util-1.26-9KQtUO
MIKO/String-Util-1.26.tar.gz
Has already been prepared
Running make for M/MI/MIKO/String-Util-1.26.tar.gz
Warning: Prerequisite 'Number::Misc => 1.2' for 'MIKO/String-Util-1.26.tar.gz' failed when processing 'MIKO/Number-Misc-1.2.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Test::Toolbox => 0.2' for 'MIKO/String-Util-1.26.tar.gz' failed when processing 'MIKO/Test-Toolbox-0.4.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
MIKO/String-Util-1.26.tar.gz
make -- NOT OK
It might be worth Googling topics such as "Installing Perl in Shared Hosting" to see how these various things can work.
"On the one hand, there are lots of fairly-exotic options available, if you need them."
"On the other hand, 'distro' authors try very hard to keep things easy for you, if you don't."
So it goes . . .
And, for what it's worth ... "very-similar technical issues 'pretty much come with the territory,'" no matter what language you might be dealing with. (In other words, "it's not just Perl ...")
Last edited by sundialsvcs; 01-05-2017 at 09:00 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.