Still need your help
 
When I did
perl -V:sitelib
sitelib='/usr/local/share/perl/5.18.2';
I can browse usr/local/share/ but I annot access /perl/5.18.2
 
 
When I did Perl -v
I obtain
 
@INC:
    /etc/perl
    /usr/local/lib/perl/5.18.2
    /usr/local/share/perl/5.18.2
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.18
    /usr/share/perl/5.18
    /usr/local/lib/site_perl
 
I copy from Documents
jupiter@jupiter-OptiPlex-755:~/Documents$ cp vt.pm /usr/local/share/perl/5.18.2
get this message
 
cp: impossible de créer le fichier standard «/usr/local/share/perl/5.18.2»: Aucun fichier ou dossier de ce type
Impossible to create a file «/usr/local/share/perl/5.18.2»
 
Thanks
Sent: Wednesday, February 18, 2015 at 6:39 PM
From: "Brandon McCaig" <bamcc...@gmail.com>
To: nicolas <nicolas...@mail.com>
Cc: beginners@perl.org
Subject: Re: can locate pm
Nicolas:

On Wed, Feb 18, 2015 at 6:14 PM, nicolas <nicolas...@mail.com> wrote:
> Hello,

Hello,

> I used to work with a perl script that contains (use vt.pm).
> (vt.pm are code that complement the script) I remember that I
> have to copy the vt.pm file in perl somewhere. Since I am not
> very familar with programming my question is where to excaclly
> copy this *.pm so I can use my script again.
> Thanks
>
>
> Can't locate lib/vt.pm in @INC (you may need to install the lib::vt module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at sequence.pm line 8.
>
> Thanks for you help

It sounds like your program is looking for lib::vt. That means
the file should have a relative path of lib/vt.pm, and it should
be located in one of the paths in @INC as listed in the error
output. E.g., /usr/local/lib/site_perl/lib/vt.pm. You should be
able to pick any of those base paths to put the relative path of
lib/vt.pm into.

There may be better places to put it, but if you just want it to
work then that should suffice. Alternatively, you could look into
lib and local::lib to use it to customize the @INC array at
run-time to specify a project-specific path instead.

See also `perldoc perlvar' for @INC, `perldoc lib' for
manipulating @INC at run-time, and search cpan.org or
metacpan.org for "local::lib" which is a similar idea.

Or just copy the file to one of the paths already listed and get
on with your day. :) Hope that helps. Let us know if it works.

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'
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Reply via email to