You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by gene <ge...@smalltime.com> on 2001/06/19 16:18:55 UTC
need assistance installing Apache::Request
I just downloaded and compiled the latest Apache::Request
(libapreq-0.33), but I continue to get the same errors as with
version 0.31.
This is what appears in the apache error log:
[Mon Jun 18 21:13:13 2001] [error] Can't load
'/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.so'
for module Apache::Request: libapreq.so.0: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
at /usr/lib/perl5/5.6.0/i386-linux/mod_perl.pm line 14
I am using apache version 1.3.14,
mod_perl is: Embedded Perl version v5.6.0 for
Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk)
mod_perl/1.24 both installed from apache-mod_perl-1.3.14_1.24,
perl is v5.6.0 built for i386-linux from perl-5.600-17mdk
The includes are from mod_perl-1.24 downloaded from CPAN and I've
tried the apache includes downloaded from apache.org as well as from
apache-devel-1.3.14-2mdk.i586.rpm.
Any help would be appreciated.
--
------------------------------------------------------------------
smalltime industries brings you the latest in games, information,
art, and interplanetary transport. Visit us at www.smalltime.com
------------------------------------------------------------------
Re: need assistance installing Apache::Request
Posted by Joe Schaefer <jo...@sunstarsys.com>.
gene <ge...@smalltime.com> writes:
> > Dunno, but maybe an rpm -ql on the relevant rpm's might show a
> >conflict in file locations (.h vs .so).
> >
> >> Any help would be appreciated.
> >
> >So you did not build apache+mod_perl yourself, but got it from
> >rpm(s), right? If so, which ones? Do you have more than one
> >perl binary on your system? Try
>
> Yes, everything is from rpms except the mod_perl headers which I
> downloaded from CPAN, but I made sure that those were the same version
> as what's installed.
Just a guess- try putting whatever you got from CPAN into
/usr/lib/perl5/site_perl/5.6.0
instead of in
/usr/lib/perl5/5.6.0
It appears that some/all of your mod_perl stuff got placed into
/usr/lib/perl5/5.6.0 instead of /usr/lib/perl5/site_perl/5.6.0.
> [Tue Jun 19 15:10:36 2001] [error] Can't load
> '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.so'
> for module Apache::Request: libapreq.so.0: cannot open shared object
> file: No such file or directory at
> /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
> at /usr/lib/perl5/5.6.0/i386-linux/mod_perl.pm line 14
^^^^^^^^^^^^^^^^^^^^
I'm pretty sure mod_perl.pm belongs in /usr/lib/site_perl/5.6.0/i386-linux.
> Compilation failed in require at /usr/lib/perl5/5.6.0/Gene/test.pm line 4.
^^^^
IMO so should this (but that's up to you :-)
[...]
> One thing I noticed was that Cookie.bs and Request.bs are both empty
> files. Is that right?
That's OK. Your libapreq install looked correct to me.
--
Joe Schaefer
Re: need assistance installing Apache::Request
Posted by gene <ge...@smalltime.com>.
>
> Dunno, but maybe an rpm -ql on the relevant rpm's might show a
>conflict in file locations (.h vs .so).
>
>> Any help would be appreciated.
>
>So you did not build apache+mod_perl yourself, but got it from
>rpm(s), right? If so, which ones? Do you have more than one
>perl binary on your system? Try
Yes, everything is from rpms except the mod_perl headers which I
downloaded from CPAN, but I made sure that those were the same version
as what's installed.
> % ls -l /usr/bin/perl*
> % ls -l /usr/local/bin/perl*
lrwxrwxrwx 1 root root 5 Sep 29 2000 /usr/bin/perl -> perl5*
lrwxrwxrwx 1 root root 9 Sep 29 2000
/usr/bin/perl5 -> perl5.6.0*
-rwxr-xr-x 1 root root 9.9k Sep 30 2000 /usr/bin/perl5.6.0*
There's no perl in
>Also, have you been able to successfully install any other Apache::
>packages that required XS (e.g. Apache::PassThru, Apache::TrafficCop)?
Haven't tried any of those yet. I'll try one when I get a chance.
>I think we need more step-by-step info to see what went wrong.
>Please post the output of (using unedited distribution of libapreq)
>
> % perl Makefile.PL
> % make
> % make install
>
OK. Here's the installation from the top:
> tar-xzvf libapreq-0.33.tar.gz
...
> cd libapreq-0.33
....
> ln -s /usr/share/automake/missing missing
(my automake/missing is not where the link pointed to originally)
....
>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for libapreq
mkdir ../blib
mkdir ../blib/arch
mkdir ../blib/arch/auto
mkdir ../blib/arch/auto/libapreq
Warning: -L../blib/arch/auto/libapreq changed to
-L/usr/src/libapreq-0.33/Request/../blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Warning: -L../blib/arch/auto/libapreq changed to
-L/usr/src/libapreq-0.33/Cookie/../blib/arch/auto/libapreq
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
> make
mkdir blib/lib
mkdir blib/lib/auto
mkdir blib/lib/auto/libapreq
mkdir blib/man3
cp libapreq.pod blib/lib/libapreq.pod
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
make[1]: Entering directory `/usr/src/libapreq-0.33/c'
cc -c -I/usr/include/apache -I/usr/include/apache
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-fomit-frame-pointer -pipe -s -march=pentium -ffast-math
-fexpensive-optimizations -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.0/i386-linux/CORE
apache_request.c
cc -c -I/usr/include/apache -I/usr/include/apache
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-fomit-frame-pointer -pipe -s -march=pentium -ffast-math
-fexpensive-optimizations -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.0/i386-linux/CORE
apache_cookie.c
cc -c -I/usr/include/apache -I/usr/include/apache
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-fomit-frame-pointer -pipe -s -march=pentium -ffast-math
-fexpensive-optimizations -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\" -fpic -I/usr/lib/perl5/5.6.0/i386-linux/CORE
apache_multipart_buffer.c
rm -rf ../blib/arch/auto/libapreq/libapreq.a
/usr/bin/ar cr ../blib/arch/auto/libapreq/libapreq.a apache_request.o
apache_cookie.o apache_multipart_buffer.o && :
../blib/arch/auto/libapreq/libapreq.a
chmod 755 ../blib/arch/auto/libapreq/libapreq.a
cp apache_cookie.h ../blib/arch/auto/libapreq/include/apache_cookie.h
cp apache_multipart_buffer.h
../blib/arch/auto/libapreq/include/apache_multipart_buffer.h
cp apache_request.h ../blib/arch/auto/libapreq/include/apache_request.h
make[1]: Leaving directory `/usr/src/libapreq-0.33/c'
make[1]: Entering directory `/usr/src/libapreq-0.33/Request'
mkdir ../blib/arch/auto/Apache
mkdir ../blib/arch/auto/Apache/Request
mkdir ../blib/lib/auto/Apache
mkdir ../blib/lib/auto/Apache/Request
cp Request.pm ../blib/lib/Apache/Request.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux
-I/usr/lib/perl5/5.6.0 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap
/usr/lib/perl5/5.6.0/i386-linux/auto/Apache/typemap Request.xs >
Request.xsc && mv Request.xsc Request.c
cc -c -I../c -I/usr/include/apache -I/usr/include/apache
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-fomit-frame-pointer -pipe -s -march=pentium -ffast-math
-fexpensive-optimizations -DVERSION=\"0.33\"
-DXS_VERSION=\"0.33\" -fpic -I/usr/lib/perl5/5.6.0/i386-linux/CORE
Request.c
Running Mkbootstrap for Apache::Request ()
chmod 644 Request.bs
LD_RUN_PATH="/usr/src/libapreq-0.33/Request/../blib/arch/auto/libapreq"
cc -o ../blib/arch/auto/Apache/Request/Request.so -shared
-L/usr/local/lib Request.o
-L/usr/src/libapreq-0.33/Request/../blib/arch/auto/libapreq -lapreq
chmod 755 ../blib/arch/auto/Apache/Request/Request.so
cp Request.bs ../blib/arch/auto/Apache/Request/Request.bs
chmod 644 ../blib/arch/auto/Apache/Request/Request.bs
Manifying ../blib/man3/Apache::Request.3
make[1]: Leaving directory `/usr/src/libapreq-0.33/Request'
make[1]: Entering directory `/usr/src/libapreq-0.33/Cookie'
mkdir ../blib/arch/auto/Apache/Cookie
mkdir ../blib/lib/auto/Apache/Cookie
cp Cookie.pm ../blib/lib/Apache/Cookie.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux
-I/usr/lib/perl5/5.6.0 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap
/usr/lib/perl5/5.6.0/i386-linux/auto/Apache/typemap Cookie.xs >
Cookie.xsc && mv Cookie.xsc Cookie.c
cc -c -I../c -I/usr/include/apache -I/usr/include/apache
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3
-fomit-frame-pointer -pipe -s -march=pentium -ffast-math
-fexpensive-optimizations -DVERSION=\"0.01\"
-DXS_VERSION=\"0.01\" -fpic -I/usr/lib/perl5/5.6.0/i386-linux/CORE
Cookie.c
Running Mkbootstrap for Apache::Cookie ()
chmod 644 Cookie.bs
LD_RUN_PATH="/usr/src/libapreq-0.33/Cookie/../blib/arch/auto/libapreq"
cc -o ../blib/arch/auto/Apache/Cookie/Cookie.so -shared
-L/usr/local/lib Cookie.o
-L/usr/src/libapreq-0.33/Cookie/../blib/arch/auto/libapreq -lapreq
chmod 755 ../blib/arch/auto/Apache/Cookie/Cookie.so
cp Cookie.bs ../blib/arch/auto/Apache/Cookie/Cookie.bs
chmod 644 ../blib/arch/auto/Apache/Cookie/Cookie.bs
Manifying ../blib/man3/Apache::Cookie.3
make[1]: Leaving directory `/usr/src/libapreq-0.33/Cookie'
Manifying blib/man3/libapreq.3
Manifying blib/man3/Apache::libapreq.3
> make install
make[1]: Entering directory `/usr/src/libapreq-0.33/c'
make[1]: Leaving directory `/usr/src/libapreq-0.33/c'
make[1]: Entering directory `/usr/src/libapreq-0.33/Request'
make[1]: Leaving directory `/usr/src/libapreq-0.33/Request'
make[1]: Entering directory `/usr/src/libapreq-0.33/Cookie'
make[1]: Leaving directory `/usr/src/libapreq-0.33/Cookie'
Installing
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Cookie/Cookie.so
Skipping
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Cookie/Cookie.bs
(unchanged)
Installing
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.so
Skipping
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.bs
(unchanged)
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/libapreq.a
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/extralibs.ld
Installing
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/include/apache_cookie.h
Installing
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/include/apache_multipart_buffer.h
Installing
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/include/apache_request.h
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/libapreq.pod
Skipping /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/libapreq.pm
(unchanged)
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/Request.pm
Installing /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/Cookie.pm
Installing /usr/lib/perl5/man/man3/Apache::Request.3
Installing /usr/lib/perl5/man/man3/Apache::Cookie.3
Installing /usr/lib/perl5/man/man3/libapreq.3
Installing /usr/lib/perl5/man/man3/Apache::libapreq.3
Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libapreq/.packlist
Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod
And then when I try to look at a test mod_perl module that I wrote,
apache logs this error message:
[Tue Jun 19 15:10:36 2001] [error] Can't load
'/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.so'
for module Apache::Request: libapreq.so.0: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
at /usr/lib/perl5/5.6.0/i386-linux/mod_perl.pm line 14
Compilation failed in require at /usr/lib/perl5/5.6.0/Gene/test.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.0/Gene/test.pm line 4.
Compilation failed in require at (eval 589) line 3.
[Tue Jun 19 15:10:36 2001] [error] Undefined subroutine
&Gene::test::handler called.
One thing I noticed was that Cookie.bs and Request.bs are both empty
files. Is that right?
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
smalltime industries bringing you the latest in
interplanetary transport technology, interactive
web games, dada, art, poetry and pants.
www.smalltime.com ...... visit early and often
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: need assistance installing Apache::Request
Posted by Joe Schaefer <jo...@sunstarsys.com>.
gene <ge...@smalltime.com> writes:
> [Mon Jun 18 21:13:13 2001] [error] Can't load
> '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Apache/Request/Request.so'
> for module Apache::Request: libapreq.so.0: cannot open shared object
> file: No such file or directory at
> /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
> at /usr/lib/perl5/5.6.0/i386-linux/mod_perl.pm line 14
I recognize this symptom from long-term memory; but unfortunately I
don't recall the cause.
> I am using apache version 1.3.14,
> mod_perl is: Embedded Perl version v5.6.0 for
> Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk)
> mod_perl/1.24 both installed from apache-mod_perl-1.3.14_1.24,
> perl is v5.6.0 built for i386-linux from perl-5.600-17mdk
>
> The includes are from mod_perl-1.24 downloaded from CPAN and I've
> tried the apache includes downloaded from apache.org as well as from
> apache-devel-1.3.14-2mdk.i586.rpm.
Dunno, but maybe an rpm -ql on the relevant rpm's might show a
conflict in file locations (.h vs .so).
> Any help would be appreciated.
So you did not build apache+mod_perl yourself, but got it from
rpm(s), right? If so, which ones? Do you have more than one
perl binary on your system? Try
% ls -l /usr/bin/perl*
% ls -l /usr/local/bin/perl*
Also, have you been able to successfully install any other Apache::
packages that required XS (e.g. Apache::PassThru, Apache::TrafficCop)?
I think we need more step-by-step info to see what went wrong.
Please post the output of (using unedited distribution of libapreq)
% perl Makefile.PL
% make
% make install
--
Joe Schaefer