You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Please change this to match your real name <ha...@mh.uk.sbphrd.com> on 2000/02/21 17:45:12 UTC

mod_perl installatin errors

Help..

I am having serious problems getting mod_perl to even configure, trying to run
as DSO as php is already installed.
There is also problems when trying to build MySQL, could there be some link
between the two errors?

***********************************************************************

mod_perl-1.21
apache_1.3.11
php_4.0b3

**********************************************************************

44 haigha00 on hgu080 > perl Makefile.PL \ APACHE_SRC=../apache_1.3.11/src \
DO _HTTPD=1 \ USE_APACI=1 \ PRE_HTTPD=1 \ EVERYTHING=1 
Configure mod_perl with../apache_1.3.11/src ? [y] 
Shall I build httpd in ../apache_1.3.11/src foryou? [y] 
Appending mod_perl to src/Configuration Using config file:
/tmp_mnt/home/haigha00/mod_perl-1.21/src/Configuration
 | Please note that the default httpd root directory has changed
 | from '/usr/local/etc/httpd/' to '/usr/local/apache/.'
 | You may add '-DHTTPD_ROOT=\"/usr/local/etc/httpd\"' to EXTRA_CFLAGS
 | in your Configuration file (and re-run Configure) or start
 | httpd with the option '-d /usr/local/etc/httpd' if you still
 | want to use the old root directory for your server. Creating Makefile You
are running 64-bit Irix. For now, we will compile 32-bit but if you would care
to port to 64-bit, send us the patches.
 + configured for SGI IRIX-64 platform
 + setting C compiler to gcc=
 + setting C pre-processor to /apps/CCMM/local/SGI/bin/cpp
 + 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
      + id: mod_perl/1.21
      + id: Perl/5.00404 (irix) [perl]
      + adjusting Apache build environment
 + checking sizeof various data types
 + doing sanity check on compiler and options ** A test compilation with your
Makefile configuration ** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that ** Apache requires an
ANSI C Compiler, such as gcc. 
======== Error Output for sanity check ========
        cd ..; gcc= -DIRIX -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED -DMOD_PERL -o helpers/dummy helpers/dummy.c
`perl /tmp_mnt/home/haigha00/mod_perl-1.21/src/modules/perl/ldopts `
-L/apps/CCMM/local/SGI/lib -L/usr/lib -L/lib
/apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404/auto/DynaLoader/DynaLoader.a
-L/apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404/CORE -lperl -lsfio -lgdbm
-lm -lc 
sh: -DIRIX:  not found 
*** Error code 127 (bu21) 
============= End ofError Report =============
 Aborting!

**************************************************************************

perl -v 
This is perl, version 5.004_04 built for sgi-irix Copyright 1987-1997,
Larry Wall Perl may be copied only under the terms of either the Artistic
License or the GNU General Public License, which may be found in the Perl 5.0
source kit.

**************************************************************************

perl -V 
Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
Platform:
    osname=irix, osvers=6.2, archname=sgi-irix
    uname='irix64 hgu129 6.2 03131016 ip25 '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=n useperlio=define d_sfio=define
Compiler:
    cc='cc', optimize='-O2', gccversion=
    cppflags='-D_BSD_TYPES -D_BSD_TIME -woff -OPT:Olimit=0
-I/apps/CCMM/local/SGI/include -DLANGUAGE_C'
    ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0
-I/apps/CCMM/local/SGI/include -DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=undef, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=undef
    intsize=4, alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
    ld='ld', ldflags ='-L/apps/CCMM/local/SGI/lib -L/usr/lib -L/lib'
    libpth=/apps/CCMM/local/SGI/lib /lib /usr/lib
    libs=-lsfio -lgdbm -lm -lc
    libc=/usr/lib32/libc.so, so=so
    useshrplib=false, libperl=libperl.a
Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -L/apps/CCMM/local/SGI/lib -L/usr/lib
-L/lib' Characteristics of this binary (from libperl):
  Built under irix
  Compiled at Jul 21 1998 08:29:08
  @INC:
    /apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404
    /apps/CCMM/local/SGI/lib/perl5
    /apps/CCMM/local/SGI/lib/perl5/site_perl/sgi-irix
    /apps/CCMM/local/SGI/lib/perl5/site_perl
    .

************************************************************************

Apache Server Information 
Server Settings,
mod_php4.c, mod_setenvif.c,mod_so.c, mod_usertrack.c, mod_auth.c,
mod_access.c, mod_alias.c, mod_userdir.c, mod_actions.c, mod_imap.c, 
mod_asis.c, mod_cgi.c, mod_dir.c, mod_autoindex.c, mod_include.c, mod_info.c,
mod_status.c, mod_negotiation.c, mod_mime.c, mod_log_config.c, mod_env.c,
http_core.c 
Server Version: Apache/1.3.11 (Unix) PHP/4.0b3 
Server Built: Feb 15 2000 09:35:01 
API Version: 19990320:6 
Run Mode: standalone 
User/Group: nobody(60001)/60001
Hostname/port: hgu080.ha.uk.sbphrd.com:8080 
Daemons: start: 5 min idle: 5 maxidle: 10 max:150 
Max Requests: per child: 0 keep alive: on max per connection: 100 
Threads:per child: 0 
Excess requests: per child: 0 
Timeouts: connection: 300
keep-alive: 15 Server Root: /home/haigha00/apache_1.3.11 
Config File: conf/httpd.conf 
PID File: /home/haigha00/apache_1.3.11/logs/httpd.pid
Scoreboard File: /home/haigha00/apache_1.3.11/logs/httpd.scoreboard

***************************************************************************


Re: mod_perl installatin errors

Posted by "G.W. Haywood" <ge...@jubileegroup.co.uk>.
Hi there,

On Mon, 21 Feb 2000, Please change this to match your real name wrote:

> I am having serious problems getting mod_perl to even configure,
> trying to run as DSO as php is already installed.  There is also
> problems when trying to build MySQL, could there be some link
> between the two errors?

Yup.  It looks like your compiler.  Have you got one?  What is it?

> ======== Error Output for sanity check ========
>         cd ..; gcc= -DIRIX -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
> [snip]
> sh: -DIRIX:  not found 

This bit looks very odd.  The shell seems to be picking up "-DIRIX" as
the name of the compiler...

Use gcc.  It's free.  It's good.  No, it's excellent.  Perl, Apache,
mod_perl all need to be compiled with the same compiler.  It's all in
the Guide.  MySQL can be fussy about libraries and dynamic linking,
too.  That's in the docs.  You don't need to worry about the compiler
for MySQL being the same as the others, but why use a different one?
I've compiled it static with gcc no trouble.

> Apache Server Information 
> Server Settings,
> mod_php4.c, mod_setenvif.c,mod_so.c, mod_usertrack.c, mod_auth.c,
> mod_access.c, mod_alias.c, mod_userdir.c, mod_actions.c, mod_imap.c, 
> mod_asis.c, mod_cgi.c, mod_dir.c, mod_autoindex.c, mod_include.c, mod_info.c,
> mod_status.c, mod_negotiation.c, mod_mime.c, mod_log_config.c, mod_env.c,
> http_core.c 
> Server Version: Apache/1.3.11 (Unix) PHP/4.0b3 
> Server Built: Feb 15 2000 09:35:01 

This says there's no mod_perl compiled into Apache.  Did you build it?
Have you asked for mod_perl to be loaded as a DSO in httpd.conf?

  LoadModule perl_module modules/libperl.so
  AddModule mod_perl.c

That's in the Guide too.

But I'd recommend not using DSO on your platform until you're sure
you've got everything else put to bed.  Then try it out and see what
problems you get.

73,
Ged.
PS: What was your name again?

> ***********************************************************************
> 
> mod_perl-1.21
> apache_1.3.11
> php_4.0b3
> 
> **********************************************************************
> 
> 44 haigha00 on hgu080 > perl Makefile.PL \ APACHE_SRC=../apache_1.3.11/src \
> DO _HTTPD=1 \ USE_APACI=1 \ PRE_HTTPD=1 \ EVERYTHING=1 
> Configure mod_perl with../apache_1.3.11/src ? [y] 
> Shall I build httpd in ../apache_1.3.11/src foryou? [y] 
> Appending mod_perl to src/Configuration Using config file:
> /tmp_mnt/home/haigha00/mod_perl-1.21/src/Configuration
>  | Please note that the default httpd root directory has changed
>  | from '/usr/local/etc/httpd/' to '/usr/local/apache/.'
>  | You may add '-DHTTPD_ROOT=\"/usr/local/etc/httpd\"' to EXTRA_CFLAGS
>  | in your Configuration file (and re-run Configure) or start
>  | httpd with the option '-d /usr/local/etc/httpd' if you still
>  | want to use the old root directory for your server. Creating Makefile You
> are running 64-bit Irix. For now, we will compile 32-bit but if you would care
> to port to 64-bit, send us the patches.
>  + configured for SGI IRIX-64 platform
>  + setting C compiler to gcc=
>  + setting C pre-processor to /apps/CCMM/local/SGI/bin/cpp
>  + 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
>       + id: mod_perl/1.21
>       + id: Perl/5.00404 (irix) [perl]
>       + adjusting Apache build environment
>  + checking sizeof various data types
>  + doing sanity check on compiler and options ** A test compilation with your
> Makefile configuration ** failed.  The below error output from the compilation
> ** test will give you an idea what is failing. Note that ** Apache requires an
> ANSI C Compiler, such as gcc. 
> ======== Error Output for sanity check ========
>         cd ..; gcc= -DIRIX -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
> -I./lib/expat-lite -DNO_DL_NEEDED -DMOD_PERL -o helpers/dummy helpers/dummy.c
> `perl /tmp_mnt/home/haigha00/mod_perl-1.21/src/modules/perl/ldopts `
> -L/apps/CCMM/local/SGI/lib -L/usr/lib -L/lib
> /apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404/auto/DynaLoader/DynaLoader.a
> -L/apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404/CORE -lperl -lsfio -lgdbm
> -lm -lc 
> sh: -DIRIX:  not found 
> *** Error code 127 (bu21) 
> ============= End ofError Report =============
>  Aborting!
> 
> **************************************************************************
> 
> perl -v 
> This is perl, version 5.004_04 built for sgi-irix Copyright 1987-1997,
> Larry Wall Perl may be copied only under the terms of either the Artistic
> License or the GNU General Public License, which may be found in the Perl 5.0
> source kit.
> 
> **************************************************************************
> 
> perl -V 
> Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
> Platform:
>     osname=irix, osvers=6.2, archname=sgi-irix
>     uname='irix64 hgu129 6.2 03131016 ip25 '
>     hint=recommended, useposix=true, d_sigaction=define
>     bincompat3=n useperlio=define d_sfio=define
> Compiler:
>     cc='cc', optimize='-O2', gccversion=
>     cppflags='-D_BSD_TYPES -D_BSD_TIME -woff -OPT:Olimit=0
> -I/apps/CCMM/local/SGI/include -DLANGUAGE_C'
>     ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0
> -I/apps/CCMM/local/SGI/include -DLANGUAGE_C'
>     stdchar='unsigned char', d_stdstdio=undef, usevfork=false
>     voidflags=15, castflags=1, d_casti32=define, d_castneg=undef
>     intsize=4, alignbytes=8, usemymalloc=y, prototype=define
> Linker and Libraries:
>     ld='ld', ldflags ='-L/apps/CCMM/local/SGI/lib -L/usr/lib -L/lib'
>     libpth=/apps/CCMM/local/SGI/lib /lib /usr/lib
>     libs=-lsfio -lgdbm -lm -lc
>     libc=/usr/lib32/libc.so, so=so
>     useshrplib=false, libperl=libperl.a
> Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags=' ', lddlflags='-shared -L/apps/CCMM/local/SGI/lib -L/usr/lib
> -L/lib' Characteristics of this binary (from libperl):
>   Built under irix
>   Compiled at Jul 21 1998 08:29:08
>   @INC:
>     /apps/CCMM/local/SGI/lib/perl5/sgi-irix/5.00404
>     /apps/CCMM/local/SGI/lib/perl5
>     /apps/CCMM/local/SGI/lib/perl5/site_perl/sgi-irix
>     /apps/CCMM/local/SGI/lib/perl5/site_perl
>     .
> 
> ************************************************************************
> 
> Apache Server Information 
> Server Settings,
> mod_php4.c, mod_setenvif.c,mod_so.c, mod_usertrack.c, mod_auth.c,
> mod_access.c, mod_alias.c, mod_userdir.c, mod_actions.c, mod_imap.c, 
> mod_asis.c, mod_cgi.c, mod_dir.c, mod_autoindex.c, mod_include.c, mod_info.c,
> mod_status.c, mod_negotiation.c, mod_mime.c, mod_log_config.c, mod_env.c,
> http_core.c 
> Server Version: Apache/1.3.11 (Unix) PHP/4.0b3 
> Server Built: Feb 15 2000 09:35:01 
> API Version: 19990320:6 
> Run Mode: standalone 
> User/Group: nobody(60001)/60001
> Hostname/port: hgu080.ha.uk.sbphrd.com:8080 
> Daemons: start: 5 min idle: 5 maxidle: 10 max:150 
> Max Requests: per child: 0 keep alive: on max per connection: 100 
> Threads:per child: 0 
> Excess requests: per child: 0 
> Timeouts: connection: 300
> keep-alive: 15 Server Root: /home/haigha00/apache_1.3.11 
> Config File: conf/httpd.conf 
> PID File: /home/haigha00/apache_1.3.11/logs/httpd.pid
> Scoreboard File: /home/haigha00/apache_1.3.11/logs/httpd.scoreboard
> 
> ***************************************************************************