Hi Tom, Thank you for your help.
I am not using the perl that came with the system. I compiled the source code from scratch and using that. I have not uninstalled the perl that came with the system, I compiled the perl 5.8.3 in other path (/usr/local/apache) and used that perl for compiling and building the Apache and mod_perl. perl version is 5.8.3. Please find the below outputs from my system. I am able to run simple .pl files. like print "testing the perl script"; but not able to run the complex .pl files which are using some modules. Thanks, Bheema. # which perl /usr/local/apache/bin/perl # perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=aix, osvers=5.2.0.0, archname=aix-thread-multi uname='aix clibm023 2 5 00514c2a4c00 ' config_args='-Dcc=gcc' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES', optimize='-O', cppflags='-D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3.2', gccosandvers='aix5.2.0.0' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -Wl,-brtl -L/usr/local/lib -Wl,-b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker -bE:/usr/local/apache/lib/perl5/5.8.3/aix-thread-multi/CORE/perl.exp' cccdlflags=' ', lddlflags=' -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:$(PERL_INC)/perl.exp -Wl,-bE:$(BASEEXT).exp -Wl,-bnoentry -lpthreads -lc_r -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under aix Compiled at May 27 2004 16:35:10 %ENV: PERL5LIB="/usr/local/apache/lib/perl5/5.8.3:/usr/local/apache/lib/perl5/ site_perl/5.8.3" @INC: /usr/local/apache/lib/perl5/5.8.3/aix-thread-multi /usr/local/apache/lib/perl5/5.8.3 /usr/local/apache/lib/perl5/site_perl/5.8.3/aix-thread-multi /usr/local/apache/lib/perl5/site_perl/5.8.3 /usr/local/apache/lib/perl5/5.8.3/aix-thread-multi /usr/local/apache/lib/perl5/5.8.3 /usr/local/apache/lib/perl5/site_perl/5.8.3/aix-thread-multi /usr/local/apache/lib/perl5/site_perl/5.8.3 /usr/local/apache/lib/perl5/site_perl . # -----Original Message----- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 1:07 PM To: Bheema Rao Merugu, BSC, Ambattur, Chennai; mod_perl Subject: Re: mod_perl not able to run some pl files. well is the "perl" really executing your perl or the one that comes with the system? # which perl If you don't have uninstalled the default perl your command will execute the system perl because its located into /usr/bin/perl. Where's your personal built perl installed? # perl -V will tell you the include-paths of your perl installation. I think you've messed up something. Tom Bheema Rao Merugu, BSC, Ambattur, Chennai wrote: > Hi, > > > Please find the CGI.pm version installed in my system > > # perl -MCGI -e 'print "CGI.pm version $CGI::VERSION\n";' > CGI.pm version 3.01 > even though its giving the error I think there is some configuration > issue with apache and mod_perl. > > [Thu May 27 18:38:43 2004] [error] Can't locate CGI.pm in @INC (@INC > contains: /usr/local/apache/lib/perl5/5.8.3/aix-thread-multi > /usr/local/apache/lib/perl5/5.8.3 > /usr/local/apache/lib/perl5/site_perl/5.8.3/aix-thread-multi > /usr/local/apache/lib/perl5/site_perl/5.8.3 > /usr/local/apache/lib/perl5/5.8.3/aix-thread-multi > /usr/local/apache/lib/perl5/5.8.3 > /usr/local/apache/lib/perl5/site_perl/5.8.3/aix-thread-multi > /usr/local/apache/lib/perl5/site_perl/5.8.3 > /usr/local/apache/lib/perl5/site_perl . /usr/local/apache/ > /usr/local/apache/lib/perl) at /export/home/perl/test.pl line 10. > BEGIN failed--compilation aborted at /export/home/perl/test.pl line 10. > > > Thanks, > Bheema. > > -----Original Message----- > From: Brian Reichert [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 27, 2004 10:01 PM > To: Bheema Rao Merugu, BSC, Ambattur, Chennai > Cc: [EMAIL PROTECTED]; Stas Bekman > Subject: Re: mod_perl not able to run some pl files. > > > On Thu, May 27, 2004 at 07:45:49PM +0530, Bheema Rao Merugu, BSC, > Ambattur, Chennai wrote: > >>Hi, >> >> >>I am getting the below error message in the error_log file. but I had >>the CGI.pm in the path /usr/local/apache/lib/perl5/5.8.3 > > > When you say you 'had' CGI.pm in that path, do you mean that you > used that perl installation to make/install the module? > > Or did you merely copy it in? If the latter, make sure that you > have permissions on the file set properly. > > >>Thanks, >>Bheema > > -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html