You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rich Kosiba <ri...@StKolbe.net> on 2003/09/04 23:05:28 UTC
Can't get a mod_perl.so...
I've read the documentation several times and searched the web, but
can't find an answer to my problem. I can't get a mod_perl.so. I used
several different configure combinations from what I had read in the
documentation. What I am using right now is:
perl Makefile.PL PREP_HTTPD=1 EVERYTHING=1
I then run make. I don't get any errors. I also don't have a
mod_perl.so anywhere on my system. I tried the "make install" as one
forum said that it is created when you do the make install. This wasn't
the case for me. I still don't have a mod_perl.so. There are no errors
anywhere.
I'm using mod_perl 1.28 source. I'm running Apache 1.3.26 on Linux
2.4.18 (Slackware 8).
I really appreciate any help anybody can give me.
Thanks!
Rich
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Can't get a mod_perl.so...
Posted by Rich Kosiba <ri...@StKolbe.net>.
On Thursday, September 4, 2003, at 09:23 PM, Stas Bekman wrote:
>>> perl Makefile.PL APACHE_SRC=../apache_1.3.26_modperl/
>>> APACHE_PREFIX=/usr/local/apache EVERYTHING=1 USE_DSO=1 USE_APACI=1
>>> APACI_ARGS='--enable-module=rewrite, --enable-module=info,
>>> --enable-module=expires, --disable-module=userdir' DO_HTTPD=1
>> when I use those options, I end up with
>> /usr/local/apache/libexec/libperl.so
>> but only after I install the package - it's not in my mod_perl source
>> tree.
> It's never in the mod_perl source, it's in the
> apache_1.3.26_modperl/src/modules/perl dir. mod_perl copies its
> src/modules/perl to the apache source dir and compiles it there.
Not there either, but I did the install and it showed up in
/usr/local/apache/libexec. (Except that it decided to overwrite my
apache binary and config files. Fortunately we had backups and put them
back.)
Now I have a new problem. When I run apache with the LoadModule
perl_module libexec/libperl.so line, none of my sites are accessible.
Also, the AddModule mod_perl.c line gives me a warning that mod_perl.c
is already added. As soon as I comment those two lines and restart
apache, the sites load again. :-/
Rich
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Can't get a mod_perl.so...
Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>
>> perl Makefile.PL APACHE_SRC=../apache_1.3.26_modperl/
>> APACHE_PREFIX=/usr/local/apache EVERYTHING=1 USE_DSO=1 USE_APACI=1
>> APACI_ARGS='--enable-module=rewrite, --enable-module=info,
>> --enable-module=expires, --disable-module=userdir' DO_HTTPD=1
>
>
> when I use those options, I end up with
>
> /usr/local/apache/libexec/libperl.so
>
> but only after I install the package - it's not in my mod_perl source tree.
It's never in the mod_perl source, it's in the
apache_1.3.26_modperl/src/modules/perl dir. mod_perl copies its
src/modules/perl to the apache source dir and compiles it there.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Can't get a mod_perl.so...
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> perl Makefile.PL APACHE_SRC=../apache_1.3.26_modperl/
> APACHE_PREFIX=/usr/local/apache EVERYTHING=1 USE_DSO=1 USE_APACI=1
> APACI_ARGS='--enable-module=rewrite, --enable-module=info,
> --enable-module=expires, --disable-module=userdir' DO_HTTPD=1
when I use those options, I end up with
/usr/local/apache/libexec/libperl.so
but only after I install the package - it's not in my mod_perl source tree.
--Geoff
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Can't get a mod_perl.so...
Posted by Rich Kosiba <ri...@StKolbe.net>.
>> I still don't have a mod_perl.so. There are no errors anywhere.
>> I'm using mod_perl 1.28 source. I'm running Apache 1.3.26 on Linux
>> 2.4.18 (Slackware 8).
> you only get a shared object file if you compile mod_perl as a DSO,
> which is not the default with mod_perl 1.28.
> to check whether mod_perl is installed, try running
> /usr/local/apache/bin/httpd -l
> and check for mod_perl.c at the bottom.
> if you want mod_perl as a dso use USE_DSO=1
> besides the documentation on perl.apache.org you can find additional
> installation instructions at
> http://www.modperlcookbook.org/chapters/ch01.pdf
Nope. :-( That has probably gotten me closer (it's trying to compile as
a DSO now) but I'm still not getting the libperl.so file. I see this in
the output from make (these first two lines are the only references to
libperl.so in the output from make):
rm -f libperl.so
cc -shared -L/usr/local/lib -o libperl.so mod_perl.lo perlxsi.lo
perl_config.lo perl_util.lo perlio.lo mod_perl_opmask.lo Apache.lo
Constants.lo ModuleConfig.lo Log.lo URI.lo Util.lo Connection.lo
Server.lo File.lo Table.lo -rdynamic -L/usr/local/lib
/usr/lib/perl5/i386-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt
-lutil
<=== src/modules/perl
<=== src/modules
That looks like it should be building libperl.so. There aren't any
errors, I just still don't have a libperl.so. I'm now using the
following line to configure it;
perl Makefile.PL APACHE_SRC=../apache_1.3.26_modperl/
APACHE_PREFIX=/usr/local/apache EVERYTHING=1 USE_DSO=1 USE_APACI=1
APACI_ARGS='--enable-module=rewrite, --enable-module=info,
--enable-module=expires, --disable-module=userdir' DO_HTTPD=1
That's taken more or less directly from the modperlcookbook.org chapter
1 that you gave me above.
This has me totally lost. I've never had something compile with no
errors, but I don't get a file. If I don't get any errors, that usually
means the file is there.
Thanks!
Rich
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
apache2, mod_perl: problem with CGI
Posted by Bart Terryn <ba...@grafikon.com>.
Hi folks,
Just trying to get up and running with Apache/2.0.47 (Win32)
mod_perl/1.99_10-dev Perl/v5.8.0 Server
Have installed AS Perl 5.8 and the mod_perl ppm that Randy provides the
world with.
Running my mod_perl code using the ModPerl::Registry handler.
Now everything is fine until I put the following in my code:
use CGI();
my $q = CGI->new();
>From that point on I get a servererror and the following entry in the apache
logfile:
[Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't locate
object method "request" via package "Apache" at C:/Perl/lib/CGI.pm line 269.
Now it is getting late here and I really want to go to sleep.
Could somebody enlighten me here what is going on
Many thanks in advance
Bart
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bart Terryn - Systems Manager - Grafikon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steenbruggedijk, 1 8020 Oostkamp - Belgium
phone: +32 50 367200 fax: +32 50 367230
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A man who does not read good books has no
advantage over the man who cannot read them
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Can't get a mod_perl.so...
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> I still don't have a mod_perl.so. There are no errors anywhere.
>
> I'm using mod_perl 1.28 source. I'm running Apache 1.3.26 on Linux
> 2.4.18 (Slackware 8).
you only get a shared object file if you compile mod_perl as a DSO, which is
not the default with mod_perl 1.28.
to check whether mod_perl is installed, try running
/usr/local/apache/bin/httpd -l
and check for mod_perl.c at the bottom.
if you want mod_perl as a dso use USE_DSO=1
besides the documentation on perl.apache.org you can find additional
installation instructions at
http://www.modperlcookbook.org/chapters/ch01.pdf
HTH
--Geoff
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html