httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gene <gen...@smalltime.com>
Subject Re: need assistance installing Apache::Request
Date Tue, 19 Jun 2001 22:13:13 GMT
>
>   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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Mime
View raw message