Reputation: 609
I am reading that Perl 5.10 already has the Time::Piece
module installed on it. I am working on another Linux computer that doesn't have internet capabilities and has Perl 5.10 installed. I wrote a program that uses Time::Piece
and am getting this error when I run it on that machine.
Cant locate Time/Piece.pm in @INC (@INC contains: /usr/local/lib64/perl5/site_perl/5.10.0/
x86_64-linux-thread-multi
It then lists some more folders and says the error occurs at the line I say use Time::Piece
Like I said I don't have internet access on that machine so I can't just run a command to update it. I guess I need to download the Time::Piece
module onto a USB and update it manually?
Upvotes: 1
Views: 1253
Reputation: 385647
Some OS distributors (e.g. Fedora) have split the perl
distribution into multiple packages. Use your OS's package manager (apt-get
, yum
, etc) to install the missing package.
Upvotes: 1
Reputation: 126722
Time::Piece
was introduced to core Perl in v5.10.1. If you have v5.10.0 then you are just out of luck
You can download the installation package on an internet-connected PC from here onto, say, a flash drive, and follow the instructions in perlmodinstall
to install it onto your target system
Upvotes: 1