Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
i can't seem to understand how to change strawberry's library path.

Since it doesn't give me an option where to install my strawberry, perl was automatically put under c:/strawberry/perl

the thing is since im using apache 2 and windowsxp, all my existing perl projects shebangs are under #!/usr/bin/perl so i tried moving strawberry perl's bin, lib and site folders into c:/usr folder.

then in my system's environmental variable :

INCLUDE = ;C:\strawberry\c\include;C:\usr\lib\CORE; LIB = ;C:\strawberry\c\lib;C:\usr\bin; PATH = C:\usr\bin; and even added this : PERL5LIB = C:\usr\site\lib;

Then in my C:\usr\lib\ file i changed the last section :

tie %Config, 'Config', { archlibexp => 'C:\\usr\\lib', archname => 'MSWin32-x86-multi-thread', cc => 'gcc', d_readlink => undef, d_symlink => undef, dlsrc => 'dl_win32.xs', dont_use_nlink => undef, exe_ext => '.exe', inc_version_list => '', intsize => '4', ldlibpthname => '', libpth => 'C:\\strawberry\\c\\lib', osname => 'MSWin32', osvers => '5.1', path_sep => ';', privlibexp => 'C:\\usr\\lib', scriptdir => 'C:\\usr\\bin', sitearchexp => 'C:\\usr\\site\\lib', sitelibexp => 'C:\\usr\\site\\lib', useithreads => 'define', usevendorprefix => undef, version => '5.10.0', };

but still..once i installed my module through cpan, my packages were included inside C:\strawberry\perl\site\lib\ instead.

how should i change this so that it'll auto install into C:\usr\lib\ ??

In reply to strawberry perl library path? by adrive

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (6)
    As of 2020-07-09 17:37 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found