You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Scott Chapman <sc...@mischko.com> on 2001/08/30 16:51:40 UTC

Compile problem w/ mod_perl-1.26 & apache_1.3.20

I'm getting this error when I make mod-perl. I'm running on 
TurboLinux 5.0.  I'd appreciate any info on why this is failing.

(cd ../apache_1.3.20 && PERL5LIB=/home/software/mod_perl-1.26/lib make)
make[1]: Entering directory `/home/software/apache_1.3.20'
===> src
make[2]: Entering directory `/home/software/apache_1.3.20'
make[3]: Entering directory `/home/software/apache_1.3.20/src'
===> src/regex
make[4]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
make[4]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[4]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[4]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[5]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/perl
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [mod_perl.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [perlxsi.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [perl_config.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [perl_util.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [perlio.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [mod_perl_opmask.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [Apache.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [Constants.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [Connection.o] Error 127 (ignored)
I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
/bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
make[5]: [Server.o] Error 127 (ignored)
rm -f libperl.a
ar crv libperl.a mod_perl.o perlxsi.o perl_config.o perl_util.o perlio.o mod_perl_opmask.o Apache.o Constants.o Connection.o Server.o
ar: mod_perl.o: No such file or directory
make[5]: *** [libperl.a] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/home/software/apache_1.3.20/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/home/software/apache_1.3.20'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/software/apache_1.3.20'
make: *** [apaci_httpd] Error 2


Scott

RE: Compile problem w/ mod_perl-1.26 & apache_1.3.20

Posted by Rob Bloodgood <ro...@empire2.com>.
> > cp apaci/perl_config ../apache_1.3.20/src/modules/perl/perl_config
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> the file is copied all right
>
> [snip]
> > Creating Makefile
> > Creating Configuration.apaci in src
> >       + id: mod_perl/1.26
> >       + id: Perl/v5.6.0 (linux) [perl]
> > modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No
> such file or directory
>
> You probably have a wrong path to perl in the first line of
> ../modules/perl/perl_config, that's what the error message says (I know
> it's not very clear from the error message, but it's a perl's error).

Actually...
is there any chance that the file was UNZIPPED or in some other way
dos-ized?  I've seen my shell barf when a script with DOS line endings
interferes with the way the shell interprets the shebang... "No such file or
directory" on
/usr/bin/perl<lf>

L8r,
Rob

#!/usr/bin/perl -w
use Disclaimer qw/:standard/;



Re: Compile problem w/ mod_perl-1.26 & apache_1.3.20

Posted by Stas Bekman <st...@stason.org>.
On Thu, 30 Aug 2001, Scott Chapman wrote:

> Stas,
> I just do an Install.simple:
>
> [root@river mod_perl-1.26]# perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFI
> X=/www
> Will configure via APACI
[snip]
> cp apaci/perl_config ../apache_1.3.20/src/modules/perl/perl_config
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

the file is copied all right

[snip]
> Creating Makefile
> Creating Configuration.apaci in src
>       + id: mod_perl/1.26
>       + id: Perl/v5.6.0 (linux) [perl]
> modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory

You probably have a wrong path to perl in the first line of
./modules/perl/perl_config, that's what the error message says (I know
it's not very clear from the error message, but it's a perl's error).


> noticed the errors:
>
> modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No
> such file or directory
>
> ??
>
> Scott
>
>
> On 30 Aug 2001, at 23:38, Stas Bekman wrote:
>
> > On Thu, 30 Aug 2001, Scott Chapman wrote:
> >
> > > I'm getting this error when I make mod-perl. I'm running on
> > > TurboLinux 5.0.  I'd appreciate any info on why this is failing.
> >
> > > I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -
> DNO_PERL_FI
> > > /bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
> > > make[5]: [mod_perl.o] Error 127 (ignored)
> >
> > looks like a broken Makefile. How did you configure mod_perl? Did you
> > follow the instructions as per
> > http://perl.apache.org/guide/installation.html ?
> >
> > _____________________________________________________________________
> > Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> > http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
> > mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
> > http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
> >
> >
>
>



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://localhost/      http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



Re: Compile problem w/ mod_perl-1.26 & apache_1.3.20

Posted by Scott Chapman <sc...@mischko.com>.
Stas,
I just do an Install.simple:

[root@river mod_perl-1.26]# perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFI
X=/www
Will configure via APACI
cp apaci/Makefile.libdir ../apache_1.3.20/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl ../apache_1.3.20/src/modules/perl/Makefile.tmpl
cp apaci/README ../apache_1.3.20/src/modules/perl/README
cp apaci/configure ../apache_1.3.20/src/modules/perl/configure
cp apaci/libperl.module ../apache_1.3.20/src/modules/perl/libperl.module
cp apaci/mod_perl.config.sh ../apache_1.3.20/src/modules/perl/mod_perl.config.sh
cp apaci/load_modules.pl ../apache_1.3.20/src/modules/perl/load_modules.pl
cp apaci/find_source ../apache_1.3.20/src/modules/perl/find_source
cp apaci/apxs_cflags ../apache_1.3.20/src/modules/perl/apxs_cflags
cp apaci/perl_config ../apache_1.3.20/src/modules/perl/perl_config
cp apaci/mod_perl.exp ../apache_1.3.20/src/modules/perl/mod_perl.exp
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)

Will run tests as User: 'nobody' Group: 'root'
(cd ../apache_1.3.20 && CC="cc" CFLAGS=" -fno-strict-aliasing -D_LARGEFILE_SOURC
E -D_FILE_OFFSET_BITS=64" ./configure --activate-module=src/modules/perl/libperl
.a --disable-rule=EXPAT --prefix=/www)
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
      + id: mod_perl/1.26
      + id: Perl/v5.6.0 (linux) [perl]
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No such file or directory
Creating Makefile in src
 + configured for Linux platform
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
    o perl_module uses ConfigStart/End
      + mod_perl build type: OBJ
      + setting up mod_perl build environment
      + adjusting Apache build environment
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/perl
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib /usr/local/lib/perl5
/5.6.0/i586-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.
0/i586-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl
 .) at Makefile.PL line 1136.

The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.   

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

It looks like there's a problem in the distribution above.  I just 
noticed the errors:

modules/perl/mod_perl.config.sh: ./modules/perl/perl_config: No 
such file or directory

??

Scott


On 30 Aug 2001, at 23:38, Stas Bekman wrote:

> On Thu, 30 Aug 2001, Scott Chapman wrote:
> 
> > I'm getting this error when I make mod-perl. I'm running on
> > TurboLinux 5.0.  I'd appreciate any info on why this is failing.
> 
> > I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -
DNO_PERL_FI
> > /bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
> > make[5]: [mod_perl.o] Error 127 (ignored)
> 
> looks like a broken Makefile. How did you configure mod_perl? Did you
> follow the instructions as per
> http://perl.apache.org/guide/installation.html ?
> 
> _____________________________________________________________________
> Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
> mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
> 
> 



Re: Compile problem w/ mod_perl-1.26 & apache_1.3.20

Posted by Stas Bekman <st...@stason.org>.
On Thu, 30 Aug 2001, Scott Chapman wrote:

> I'm getting this error when I make mod-perl. I'm running on
> TurboLinux 5.0.  I'd appreciate any info on why this is failing.

> I/usr/local/lib/perl5/5.6.0/i586-linux/CORE  -DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FI
> /bin/sh: I/usr/local/lib/perl5/5.6.0/i586-linux/CORE: No such file or directory
> make[5]: [mod_perl.o] Error 127 (ignored)

looks like a broken Makefile. How did you configure mod_perl? Did you
follow the instructions as per
http://perl.apache.org/guide/installation.html ?

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/