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

2003-08-14 Thread Ged Haywood
Hello again,

On Tue, 5 Aug 2003, Hodge, Jeff F (ECIII) wrote:

> My directories look exactly like that.

:)

>  First I went to the apache directory and ran the configure to enable DSO.

Do you have any particular reason for using DSO?  IMHO it's usually
more trouble than it's worth.  I always build static if I can.  Also I
like a file 'makepl_arg.mod_perl' in the mod_perl source directory to
supply the configuration.  Sample attached.  Then you just have to say

perl Makefile.PL

in the mod_perl directory and everything is set up for you.  Then you
can repeat it whenever you like: just remove the source directories,
extract the sources fresh, copy the makepl_args.mod_perl file, and
issue the perl Makefile.PL command again.

> How does root user affect things?

People have had problems with permissions getting a little screwy,
and it's safest to do builds as non-root in case there's an accident.

> I need Apache::request and DBD::mysql  rsn

Get Apache and mod_perl running first.  There shouldn't be any
problemn with the rest.

> I repeated my build/install steps  interesting.  its failing a
> test; output: (I'm fairly sure this wasn't the result the other day):
> Failed 1 test script out of 667, 99.85% okay.

It could be worth following the instructions to try to pin that down.

> btw - what is 73?

Morse code shorthand.  Long time ago.  It means "best wishes."

73,
Ged.



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

2003-08-05 Thread Hodge, Jeff F (ECIII)
Title: RE: mod perl issues/ cpan won't make properly





First off...thanks for addressing my issues



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


My directories look exactly like that.  First I went to the apache directory and ran the configure to enable DSO.  Then I went to the modperl directory and compiled mod perl with the apache with options outlined above

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


Ok. I'll recompile them as another user.  How does root user affect things? (appears to be a perl issue still see below)


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


I need Apache::request and DBD::mysql  rsn, but I guess that is another issue all together...allthough I though it might be a sign that something else is fowl if they won't make.


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


yes...seeing as I wasn't sure whether it passed everything...and the make all test wouldn't run again; then I repeated my build/install steps

interesting.  its failing a test; output:   (I'm fairly sure this wasn't the result the other day): 



Failed 1 test script out of 667, 99.85% okay.
### Since not all tests were successful, you may want
to run some of
### them individually and examine any diagnostic
messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by
running
###   ./perl harness
### in the 't' directory since most (>=80%) of the
tests succeeded.
### You may have to set your dynamic library search
path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl
harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH;
cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl
harness
### for csh-style shells, like tcsh; or for
traditional/modern
### Bourne-style shells, like bash, ksh, and zsh,
respectively.
u=2.73  s=0.72  cu=193.21  cs=19.29  scripts=667 
tests=68585
make[2]: *** [_test_tty] Error 1
make[2]: Leaving directory `/dloads/perl/perl-5.8.0'
make[1]: *** [_test] Error 2
make[1]: Leaving directory `/dloads/perl/perl-5.8.0'
make: *** [test] Error 2





>73,
>Ged.


btw - what is 73?




Thank you,


Jeff





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

2003-08-05 Thread Ged Haywood
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.




mod perl issues/ cpan won't make properly

2003-08-04 Thread Hodge, Jeff F (ECIII)
Title: 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
    .