Being a non-root user I have tried doing this (installing modules into a directory for which I have write permission), and then adding the directory into @INC with
use lib '/path/to/my/dir';
but this doesn't work with modules for which an older version exists.
Perl uses the older version (DBI v1.13 instead of DBI v1.30). Is there a way I can specify the version/location I want used instead of letting Perl pick the one it likes? Or, I guess more specifically, can I specify explicitly the order in which directories containing libraries should be considered for inclusion.
UPDATE: Just in case anyone else should ever have this problem, I found out there are multiple instances of perl installed on our system. The default instance called when I ran perl Makefile.pl is in a different location than the one I specified in my script. It solved the problem to re-install the module using /path/to/perl Makefile.pl when compiling the module.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.