How does the location of perl libs get set in IHS? - Websphere

This is a discussion on How does the location of perl libs get set in IHS? - Websphere ; How does the location of perl libs get set in IHS? I am seeing an expected value for @INC in the server. In the server error_log, I see this message Can't locate DBI.pm in @INC (@INC contains: /usr/opt/perl5/lib/5.8.8/aix-thread -multi /usr/opt/perl5/lib/5.8.8 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How does the location of perl libs get set in IHS?

  1. How does the location of perl libs get set in IHS?

    How does the location of perl libs get set in IHS? I am seeing an expected value for @INC in the server.

    In the server error_log, I see this message
    Can't locate DBI.pm in @INC (@INC contains: /usr/opt/perl5/lib/5.8.8/aix-thread
    -multi /usr/opt/perl5/lib/5.8.8 /usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-m
    ulti /usr/opt/perl5/lib/site_perl/5.8.8 /usr/opt/perl5/lib/site_perl .) at logi
    n.pl line 6.

    I'm surprised that @INC only contains 5.8.8 libs, as perl -V shows
    PERL5LIB="/usr/opt/perl5/lib/5.8.2:/usr/opt/perl5/lib/5.8.2/aix-thread-mult
    i:/usr/opt/perl5/lib/site_perl/5.8.2:/usr/opt/perl5/lib/site_perl/5.8.2/aix-thr
    ead-multi "
    @INC:
    /usr/opt/perl5/lib/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/5.8.2
    /usr/opt/perl5/lib/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.2
    /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/5.8.8
    /usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.8
    /usr/opt/perl5/lib/site_perl

    How can I change the value of @INC that IBM_HTTP_Server/6.1 uses?

  2. Re: How does the location of perl libs get set in IHS?

    ptrimble wrote:
    > How does the location of perl libs get set in IHS? I am seeing an expected value for @INC in the server.


    IHS is agnostic. Change the native environment variables in IHS'es
    envrionment (IHSROOT/bin/envvars) before your perl code is invoked, or
    invoke a different perl interpreter from your mod_perl build / CGI
    scripts. (IHS doesn't interact with perl on its own)


    --
    Eric Covener

  3. Re: How does the location of perl libs get set in IHS?

    No matter if you're using perl as CGI, mod_perl, or fastcgi, the IBM HTTP Server component knows nothing about your perl interpreter or where it stores files. Consult the perl documentation for information on how to properly invoke it.

+ Reply to Thread