You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Hodge, Jeff F (ECIII)" <Je...@yuma.army.mil> on 2003/08/04 23:43:30 UTC

mod perl issues/ cpan won't make properly

I'm having a lot of problems with installing mod_perl/apache/ properly.
Also installing through CPAN is an issue with certian modules as well.

Suse 8.0/ linux 2.4/perl5.8.0/mod_perl1.28Apache1.3.28/


Here's how I installed mod_perl/apache:

cd apache_1.3.28
./configure --enable-module=so  
cd mod_perl_1.28
perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl
make && make test && make install




After mod_perl is installed with Apache,  I went to start the apachetl.  It
won't start saying that it is missing some modules.
Why won't it start after the installation? I tried to install the apache
bundle to see if that would help.
So using Cpan I tried to install the Bundle::Apache...which bombs out saying
:
   Why won't CPAN install this bundle
...tail

Running make test
make[1]: Entering directory
`/root/.cpan/build/libapreq-1.2/c'
make[1]: Leaving directory
`/root/.cpan/build/libapreq-1.2/c'
make[1]: Entering directory
`/root/.cpan/build/libapreq-1.2/Request'
make[1]: Leaving directory
`/root/.cpan/build/libapreq-1.2/Request'
make[1]: Entering directory
`/root/.cpan/build/libapreq-1.2/Cookie'
make[1]: Leaving directory
`/root/.cpan/build/libapreq-1.2/Cookie'
PERL_DL_NONLAZY=1 /usr/local/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/*....t/*.t does not exist
FAILED--1 test script could be run, alas--no output
ever seen
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install
without force









ALSO here is perl -V 

Summary of my perl5 (revision 5.0 version 8 subversion
0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-64gb-smp,
archname=i686-linux
    uname='linux lamp 2.4.18-64gb-smp #1 smp wed mar
27 13:58:12 utc 2002 i686 unknown '
    config_args='-Accflags=-DPERL_Y2KWARN
-DPERL_POLLUTE_MALLOC -Dmksymlinks'
    hint=recommended, useposix=true,
d_sigaction=define
    usethreads=undef use5005threads=undef
useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
    use64bitint=undef use64bitall=undef
uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DPERL_Y2KWARN
-DPERL_POLLUTE_MALLOC -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-DPERL_Y2KWARN -DPERL_POLLUTE_MALLOC
-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (SuSE)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=1234
    d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt
-lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared
-L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Aug  2 2003 13:09:23
  @INC:
    /usr/local/lib/perl5/5.8.0/i686-linux
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    .



Re: mod perl issues/ cpan won't make properly

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hello there,

On Mon, 4 Aug 2003, Hodge, Jeff F (ECIII) wrote:

> Here's how I installed mod_perl/apache:
> 
> cd apache_1.3.28
> ./configure --enable-module=so  
> cd mod_perl_1.28

I don't like the look of that.  Please send *exactly* what you did.
Have you got the mod_perl directory inside the apache directory?
Your directories should be somethign like this:

/dloads/apache_mod_perl/apache_1.3.28/
/dloads/apache_mod_perl/mod_perl-1.28/

> perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl
> make && make test && make install

What is the user that's running this?  Don't do the first three steps
as root, only do the 'make install' as root:

% perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src \
 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl
% make
% make test
% su
Password:
# make install
# exit
%

That backslash on the first line is important.  If you've done
everything as root and if you have the mod_perl directory inside the
apache one, then it's best to remove the directories and start again.

> So using Cpan I tried to install the Bundle::Apache...which bombs out

Don't worry about it for now, you don't need it for your mod_perl Apache.

> ALSO here is perl -V 
> 
> Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
> [snip]
>     ccversion='', gccversion='2.95.3 20010315 (SuSE)',
> [snip]
>     gnulibc_version='2.2.5'
> [snip]
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under linux
>   Compiled at Aug  2 2003 13:09:23
> [snip]

Looks like you compiled this Perl yourself using gcc 2.95.3 a couple
of days ago, is that right?  Did the Perl tests all pass OK?

73,
Ged.