Hi, I’m trying to install a local module in a webserver that isn’t mine. Up until now the directory /home/username/usr/lib/perl5/site_perl/5.6.1 wasn’t created until I used the PREFIX with “perl Makefile.PL”. The “INSTALLMAN3DIR = /home/username/usr/lib/perl5/man/man3 ” gave me an error. But now, I get no error with the following Makefile.PL
#!/usr/local/bin/perl use 5.008007; use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( NAME => 'Kepler', VERSION_FROM => 'lib/Kepler.pm', # finds $VERSION PREREQ_PM => {}, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'lib/Kepler.pm', AUTHOR => 'Kepler <me@me.com>') : ()), LIBS => ['-L/home/username/usr/local/lib -lskepler'], # LIBS => ['-lskepler'], # e.g., '-lm' DEFINE => '', # e.g., '-DHAVE_SOMETHING' INC => '-I/home/username/usr/local/include', # INSTALL_BASE => '/home/username/usr/local', PREFIX => '/home/username/usr/local/lib/perl5/site_perl +/5.6.1', INSTALLMAN3DIR => '/home/username/usr/local/lib/perl5/man/man3' +, # DISTVNAME => 'perl_kepler', # # Un-comment this if you add C files to link with later: # OBJECT => '$(O_FILES)', # link all the C files too );
Before everything, I put in the scripts - which gives no error:
use lib qw(/home/username/usr/local/lib/perl5/site_perl/5.6.1);
I get the error - in the test.pl script:
Can't locate Kepler.pm in @INC (@INC contains: /home/username/usr/loca +l/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.8.8/i386-linux +-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl + /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/pe +rl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8 +/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at test.pl line 6.
like the module isn't there. Can you help me out? Kind regards, Kepler

In reply to Installing local Perl module by kepler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.