Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

10 views
Skip to first unread message

ptrimble

unread,
Oct 28, 2009, 3:26:37 PM10/28/09
to
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?

Eric Covener

unread,
Oct 28, 2009, 3:33:35 PM10/28/09
to
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

Eric Covener

unread,
Nov 18, 2009, 5:03:47 PM11/18/09
to
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.
0 new messages