Hello,

On Mon, May 25, 2015 at 08:20:08PM +0530, Sunita Pradhan wrote:
> I get following error while loading this module :
> Can't locate Format/Human/Bytes.pm in @INC (@INC contains: 
> /usr/software/lib/perl5/5.8.8/x86_64-linux-thread-multi 
> /usr/software/lib/perl5/5.8.8 
> /usr/software/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
> /usr/software/lib/perl5/site_perl/5.8.8 /usr/software/lib/perl5/site_perl .) 
> at test.pl line 3.BEGIN failed--compilation aborted at test.pl line 3.

You need to download and install CPAN modules that aren't
included with Perl. There are various command-line clients to do
this with varying degrees of automation. I prefer cpanm
(App::cpanminus) for being largely automatic and quiet.

Once cpanm is installed (installation instructions will depend on
your platform) you can install the Format::Human::Bytes module
and all of its dependencies with the following command:

    cpanm Format::Human::Bytes

You can also download the module yourself and manually install it
by following its installation instructions (this will require
repeating this process for each unsatisfied recursive dependeny).

That said, from the description of Format::Human::Bytes I'm not
sure that it really solves your problem. It seems to be meant for
friendly display of byte counts. It seems to automatically choose
which unit to display. If that is what you want then it will work
for you, but if you actually wanted something to do unit
conversions then I didn't have much success searching for a
module that contained the logic for that. That doesn't mean one
doesn't exist, but I failed to find it.

Regards,


-- 
Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bambams.ca/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

Attachment: signature.asc
Description: Digital signature

Reply via email to