wdatkinson
Verified User
One of our customers needed a perl module installed. I went in as root and installed the required module via CPAN. CPAN put the module here:
/usr/lib/perl5/site_perl/5.8.0/Astro
@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
As a work around, I've copied the module to /usr/lib/perl5/5.8.0 and the script it working, but to keep things clean, I'd like to know how I can add a path to the @INC variable.
/usr/lib/perl5/site_perl/5.8.0/Astro
@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
As a work around, I've copied the module to /usr/lib/perl5/5.8.0 and the script it working, but to keep things clean, I'd like to know how I can add a path to the @INC variable.