You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by CN <cn...@fastmail.fm> on 2004/10/29 06:19:18 UTC

Fail to configure mod_perl and build apache

Hi!

Because "perl Makefile.PL" did not find LWP::UserAgent and
HTML::HeadParser in my Debian box, I did "apt-get install
libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
that package. Since then "perl Makefile.PL" seems to have trouble as it
complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
directory":
==================
host1:/usr/src/mod_perl-1.29# perl Makefile.PL
Configure mod_perl with ../apache_1.3.32/src ? [y] y
Shall I build httpd in ../apache_1.3.32/src for you? [y] n
(cd ../apache_1.3.32/src && ./Configure -file
Configuration)PerlDispatchHandler.........disabled (enable with
PERL_DISPATCH=1)
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..disabled (enable with
PERL_POST_READ_REQUEST=1)
PerlTransHandler............disabled (enable with PERL_TRANS=1)
PerlHeaderParserHandler.....disabled (enable with PERL_HEADER_PARSER=1)
PerlAccessHandler...........disabled (enable with PERL_ACCESS=1)
PerlAuthenHandler...........disabled (enable with PERL_AUTHEN=1)
PerlAuthzHandler............disabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.............disabled (enable with PERL_TYPE=1)
PerlFixupHandler............disabled (enable with PERL_FIXUP=1)
PerlHandler.................enabled
PerlLogHandler..............disabled (enable with PERL_LOG=1)
PerlInitHandler.............disabled (enable with PERL_INIT=1)
PerlCleanupHandler..........disabled (enable with PERL_CLEANUP=1)
PerlRestartHandler..........disabled (enable with PERL_RESTART=1)
PerlStackedHandlers.........disabled (enable with
PERL_STACKED_HANDLERS=1)
PerlMethodHandlers..........disabled (enable with
PERL_METHOD_HANDLERS=1)
PerlDirectiveHandlers.......disabled (enable with
PERL_DIRECTIVE_HANDLERS=1)
PerlTableApi................disabled (enable with PERL_TABLE_API=1)
PerlLogApi..................disabled (enable with PERL_LOG_API=1)
PerlUriApi..................disabled (enable with PERL_URI_API=1)
PerlUtilApi.................disabled (enable with PERL_UTIL_API=1)
PerlFileApi.................disabled (enable with PERL_FILE_API=1)
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................disabled (enable with PERL_SECTIONS=1)

PerlSSI.....................disabled (enable with PERL_SSI=1)

cat: ../apache_1.3.32/src/Makefile.config: No such file or directory
Will run tests as User: 'nobody' Group: 'root'
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl
==================
I ignore it, and try to build apache:

./configure --with-layout=Apache \
--disable-rule=EXPAT \
--activate-module=src/modules/perl/libperl.a --disable-shared=perl
host1:/usr/src/apache_1.3.32# make
[snip]
===> src/modules/perl
gcc -I. -I../../include -I../../include/regex -I../../include/../
-DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` 
-I`/usr/bin/perl -MConfig -e 'print $Config{archlibexp}'`/CORE
`/usr/bin/perl '-MApache::ExtUtils=%Config' -e 'print $Config{ccflags}'`
-DNO_PERL_DISPATCH   -DNO_PERL_POST_READ_REQUEST -DNO_PERL_TRANS
-DNO_PERL_HEADER_PARSER -DNO_PERL_ACCESS -DNO_PERL_AUTHEN
-DNO_PERL_AUTHZ -DNO_PERL_TYPE  -DNO_PERL_FIXUP  -DNO_PERL_LOG 
-DNO_PERL_INIT -DNO_PERL_CLEANUP -DNO_PERL_RESTART
-DNO_PERL_STACKED_HANDLERS -DNO_PERL_SECTIONS -DNO_PERL_METHOD_HANDLERS
-DNO_PERL_SSI -DNO_PERL_DIRECTIVE_HANDLERS  -DMOD_PERL_VERSION=\"1.29\" 
     -c -o mod_perl_opmask.o mod_perl_opmask.c
/bin/sh: ../apaci: No such file or directory
In file included from ../../include/httpd.h:29,
                 from apache_inc.h:120,
                 from mod_perl.h:162,
                 from mod_perl_opmask.c:1:
../../include/ap_config.h:73: os.h: No such file or directory
make[4]: *** [mod_perl_opmask.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.32/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.32'
make: *** [build] Error 2

I notice that apaci resides in /usr/src/apache_1.3.32/src/ rather than
/usr/src/apache_1.3.32/src/modules/.

Before doing "apt-get install libapache-mod-perl" and "dpkg -P
libapache-mod-perl", I did not have this "cat:
../apache_1.3.32/src/Makefile.config: No such file or directory"
problem, but the linker complained a huge number of unknown symbols in
libperl.a.

Helps are much appreciated!

Regards,
CN

-- 
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


Re: Fail to configure mod_perl and build apache

Posted by Nick Phillips <Ni...@stonebow.otago.ac.nz>.
On 30/10/2004, at 7:19 AM, Stas Bekman wrote:

> CN wrote:
>> Hi!
>>
>> Because "perl Makefile.PL" did not find LWP::UserAgent and
>> HTML::HeadParser in my Debian box, I did "apt-get install
>> libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
>> that package. Since then "perl Makefile.PL" seems to have trouble as 
>> it
>> complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
>> directory":
>
> Unless someone on Debian can help you with the specific of those 
> packages,

Well, I'll try...

> I'd suggest that you download the source and build everything by 
> yourself
> as explained here:

...because this always seems to lead to a world of pain, in the end (as 
the
next time you try to install a package that depends on one of the ones 
you've
built yourself, you have to resort to twisting the packaging system's 
arm).

First suggestion: use aptitude, not apt-get. aptitude shows you the 
packages
that are recommended by the package you are installing, as well as those
upon which it absolutely depends.

Second suggestion: CPAN packages in debian are named consistently. If 
you
have a CPAN package called Foo::Bar, the debian package of it will be 
called
libfoo-bar-perl. There are a few confusing ones, such as LWP. Try
libwww-perl.

Third suggestion: Even if you want to rebuild a package which is in 
Debian,
start off with the Debian package sources ("apt-get source foo"). That 
way,
you end up with a packaged version of the thing, and any idiosyncracies
needed to build it on Debian.



Cheers,


Nick


-- 
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


Re: Fail to configure mod_perl and build apache

Posted by Stas Bekman <st...@stason.org>.
CN wrote:
> Hi!
> 
> Because "perl Makefile.PL" did not find LWP::UserAgent and
> HTML::HeadParser in my Debian box, I did "apt-get install
> libapache-mod-perl". Then I did "dpkg -P libapache-mod-perl" to remove
> that package. Since then "perl Makefile.PL" seems to have trouble as it
> complains "cat: ../apache_1.3.32/src/Makefile.config: No such file or
> directory":

Unless someone on Debian can help you with the specific of those packages,
I'd suggest that you download the source and build everything by yourself
as explained here:
http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_for_Unix_Platforms
http://perl.apache.org/docs/1.0/guide/install.html

-- 
__________________________________________________________________
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

-- 
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