Re: Install Problem: make test: modules/src.t

2002-12-22 Thread Stas Bekman
Mark Hawkes wrote:

When I 'make test' I'm getting failures relating to modules/src.t

[...]

$ make test TEST_VERBOSE=1
<--snip-->
dir=../src
ok 2
main=
not ok 3
module_magic_number = 0
not ok 4
httpd_version =
not ok 5
-I../src -I../src/modules/perl
ok 6
FAILED tests 3-5
Failed 3/6 tests, 50.00% okay
<--snip-->
Failed Test  Status Wstat Total Fail  Failed  List of failed
--- 

modules/src.t 63  50.00%  3-5
6 tests skipped.
httpd terminated
Failed 1/34 test scripts, 97.06% okay. 3/398 subtests failed, 99.25% okay.
make: *** [run_tests] Error 29

what t/logs/error_log has to say about that?
BTW, you can run just one test:

% make start_httpd
% t/TEST -v modules/src.t
% make stop_httpd

Please remember to follow the guidelines at:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
to get the issues resolved much faster.



--


__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: Install Problem: make test: modules/src.t

2002-12-22 Thread Ged Haywood
Hi there,

On Sun, 22 Dec 2002, Mark Hawkes wrote:

> Thanks Beau, but that didn't solve anything :-( 'make test' needs to run as 
> root or it can't write to the Apache directory.

[snip]

> >-Original Message-
> >From: Mark Hawkes [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, December 21, 2002 12:00 PM
> >To: [EMAIL PROTECTED]
> >Subject: Install Problem: make test: modules/src.t
> >
> >
> >When I 'make test' I'm getting failures relating to modules/src.t
> >Can anyone help?
> >
> >-- PLATFORM --
> >
> >OS: Slackware Linux 2.2.16
> >Perl:   5.6.0
> >mod_perl:   1.27
> >Apache: Apache/1.3.12 (Unix) PHP/4.2.3
> >
> >Apache root:/var/lib/apache
> >mod_perl build dir: /var/lib/apache/mod_perl-1.27


Firstly I think you should upgrade your Apache to the latest.  You'll
probably then need to sort out (in your head:) the changes in the
default installation directory structure, as Apache uses /usr/local
nowadays instead of /var/lib.  Sigh.

If I were you I'd upgrade that kernel too, but I'm not sure it would be
very helpful at this stage unless you're very familiar with kernels as
you'd need to upgrade a bunch of tools as well for the upgrade to work.

You say that 'make test' won't run unless you're root.  That's bad.
You should really be building Apache and mod_perl (and just about
everything else) as a normal user in a directory to which you have
write access, for example I tend to use

/home/ged/src/apache_1.3.xx
/home/ged/src/mod_perl-1.xx

and if I'm going to need SSL, a database, whatever...

/home/ged/src/openssl-0.9.6g
/home/ged/src/mod_ssl-2.8.11-1.3.27
/home/ged/src/mysql-3.23.46

and so on.  The only time you need to be root is when you "make
install".  The instructions are usually fairly clear in the INSTALL
doc's but I'll grant you it can be a tad confusing at first because
there's such a lot of it.

I think you need to clean out those source directories (with care:) and
start again.  It's all in the Guide.

73,
Ged.




RE: Install Problem: make test: modules/src.t

2002-12-21 Thread Beau E. Cox
Hi Mark -

Gee, Stas told me I _had_ to be a normal user for 'make test' -
and it worked...???

Wait ... I'm talking mod_perl 2 - are you installing 1? Yea,
I see that in your orig. msg. Sorry - I haven't played with
mod_perl 1.

But - is there a testing error_log? Can you run the failed tests
alone in -v mode? For mod_perl 2 you can say: t/TEST -v testname.

Sorry I'm not much help...

Aloha => Beau.

-Original Message-
From: Mark Hawkes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 2:19 PM
To: [EMAIL PROTECTED]
Subject: RE: Install Problem: make test: modules/src.t


Thanks Beau, but that didn't solve anything :-( 'make test' needs to run as
root or it can't write to the Apache directory.

At 12:10 2002-12-21 -1000, you wrote:
>Hi -
>
>I had testing problems a few weeks ago...
>be sure you test as a 'normal' user, not 'root'.
>If you did the make under root, be sure to change
>user:group ownership of the entire mod_perl tree
>before logging in and testing.
>
>I'm _not_ an expert, but that's what happened to
>me :)
>
>Aloha => Beau.
>
>-Original Message-
>From: Mark Hawkes [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, December 21, 2002 12:00 PM
>To: [EMAIL PROTECTED]
>Subject: Install Problem: make test: modules/src.t
>
>
>When I 'make test' I'm getting failures relating to modules/src.t
>Can anyone help?
>
>-- PLATFORM --
>
>OS: Slackware Linux 2.2.16
>Perl:   5.6.0
>mod_perl:   1.27
>Apache: Apache/1.3.12 (Unix) PHP/4.2.3
>
>Apache root:/var/lib/apache
>mod_perl build dir: /var/lib/apache/mod_perl-1.27
>
>
>-- PROBLEM OCCURRENCE --
>
>$ perl Makefile.PL \
>  >   EVERYTHING=1 APACHE_PREFIX=/var/lib/apache USE_APACI=1
>Configure mod_perl with ../src ? [y] y
>Shall I build httpd in ../src for you? [y] y
>
>$ make
>
>Everything is good until I run the tests :-/
>
>$ make test TEST_VERBOSE=1
><--snip-->
>dir=../src
>ok 2
>main=
>not ok 3
>module_magic_number = 0
>not ok 4
>httpd_version =
>not ok 5
>-I../src -I../src/modules/perl
>ok 6
>FAILED tests 3-5
>  Failed 3/6 tests, 50.00% okay
><--snip-->
>Failed Test  Status Wstat Total Fail  Failed  List of failed
>---
-
>---
>modules/src.t 63  50.00%  3-5
>6 tests skipped.
>httpd terminated
>Failed 1/34 test scripts, 97.06% okay. 3/398 subtests failed, 99.25% okay.
>make: *** [run_tests] Error 29






RE: Install Problem: make test: modules/src.t

2002-12-21 Thread Mark Hawkes
Thanks Beau, but that didn't solve anything :-( 'make test' needs to run as 
root or it can't write to the Apache directory.

At 12:10 2002-12-21 -1000, you wrote:
Hi -

I had testing problems a few weeks ago...
be sure you test as a 'normal' user, not 'root'.
If you did the make under root, be sure to change
user:group ownership of the entire mod_perl tree
before logging in and testing.

I'm _not_ an expert, but that's what happened to
me :)

Aloha => Beau.

-Original Message-
From: Mark Hawkes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Install Problem: make test: modules/src.t


When I 'make test' I'm getting failures relating to modules/src.t
Can anyone help?

-- PLATFORM --

OS: Slackware Linux 2.2.16
Perl:   5.6.0
mod_perl:   1.27
Apache: Apache/1.3.12 (Unix) PHP/4.2.3

Apache root:/var/lib/apache
mod_perl build dir: /var/lib/apache/mod_perl-1.27


-- PROBLEM OCCURRENCE --

$ perl Makefile.PL \
 >   EVERYTHING=1 APACHE_PREFIX=/var/lib/apache USE_APACI=1
Configure mod_perl with ../src ? [y] y
Shall I build httpd in ../src for you? [y] y

$ make

Everything is good until I run the tests :-/

$ make test TEST_VERBOSE=1
<--snip-->
dir=../src
ok 2
main=
not ok 3
module_magic_number = 0
not ok 4
httpd_version =
not ok 5
-I../src -I../src/modules/perl
ok 6
FAILED tests 3-5
 Failed 3/6 tests, 50.00% okay
<--snip-->
Failed Test  Status Wstat Total Fail  Failed  List of failed

---
modules/src.t 63  50.00%  3-5
6 tests skipped.
httpd terminated
Failed 1/34 test scripts, 97.06% okay. 3/398 subtests failed, 99.25% okay.
make: *** [run_tests] Error 29





RE: Install Problem: make test: modules/src.t

2002-12-21 Thread Beau E. Cox
Hi -

I had testing problems a few weeks ago...
be sure you test as a 'normal' user, not 'root'.
If you did the make under root, be sure to change
user:group ownership of the entire mod_perl tree
before logging in and testing.

I'm _not_ an expert, but that's what happened to
me :)

Aloha => Beau.

-Original Message-
From: Mark Hawkes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Install Problem: make test: modules/src.t


When I 'make test' I'm getting failures relating to modules/src.t
Can anyone help?

-- PLATFORM --

OS: Slackware Linux 2.2.16
Perl:   5.6.0
mod_perl:   1.27
Apache: Apache/1.3.12 (Unix) PHP/4.2.3

Apache root:/var/lib/apache
mod_perl build dir: /var/lib/apache/mod_perl-1.27


-- PROBLEM OCCURRENCE --

$ perl Makefile.PL \
 >   EVERYTHING=1 APACHE_PREFIX=/var/lib/apache USE_APACI=1
Configure mod_perl with ../src ? [y] y
Shall I build httpd in ../src for you? [y] y

$ make

Everything is good until I run the tests :-/

$ make test TEST_VERBOSE=1
<--snip-->
dir=../src
ok 2
main=
not ok 3
module_magic_number = 0
not ok 4
httpd_version =
not ok 5
-I../src -I../src/modules/perl
ok 6
FAILED tests 3-5
 Failed 3/6 tests, 50.00% okay
<--snip-->
Failed Test  Status Wstat Total Fail  Failed  List of failed

---
modules/src.t 63  50.00%  3-5
6 tests skipped.
httpd terminated
Failed 1/34 test scripts, 97.06% okay. 3/398 subtests failed, 99.25% okay.
make: *** [run_tests] Error 29






RE: Install problem...

2002-12-02 Thread Beau E. Cox
Thanks Stas -

Please give me about an hour...I am in the middle of
putting everthing back together again :)

Will report back to you (following the standards) then.

Aloha => Beau.

PS: This is sort of fun!

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:10 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: Install problem...


Beau E. Cox wrote:
> Hi -
>
> I am trying to upgrade my test server (SuSE 8.1) to Apache/
> mod_perl 2. I installed and tested Apache 2 - all OK.

Beau, when reporting problems, please follow the guidelines linked from
the perl.apache.org's shortcuts menu:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

> I have perl 5.8.0 (pre-build by SuSE); It passed the tests
> in the mpd_perl 2 prequsites section.
>
> I get this problem on make test (both with Apache mpm
> configured as prefork AND worker):
>
> apache/subprocess1..4
> # testing : passing ARGV
> # expected: [
> #   'foo',
> #   'bar'
> # ]
> # received: []
> not ok 1
> # testing : passing env via subprocess_env
> # expected: 'my cool proc'
> # received: ''
> not ok 2
> # testing : testing subproc's stdin -> stdout + list context
> # expected: 'my cool proc
> # '
> # received: ''
> not ok 3
> # testing : testing subproc's stdin -> stderr + list context
> # expected: 'my stderr
> # '
> # received: ''
> not ok 4
> FAILED tests 1-4
>   Failed 4/4 tests, 0.00% okay
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
> --
--
> ---
> apache/subprocess.t44 100.00%  1-4
>
> I haven't got a clue. This is my sixth reRTFM/reinstall/retest.
> Could someone give me a push as to what to try next?

I forgot to add to the guidelines to check t/logs/error_log, will add it
now.

So what does your error_log say? Most likely some perms problems with
t/htdocs/util, right?

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






Re: Install problem...

2002-12-02 Thread Stas Bekman
Beau E. Cox wrote:

Hi -

I am trying to upgrade my test server (SuSE 8.1) to Apache/
mod_perl 2. I installed and tested Apache 2 - all OK.


Beau, when reporting problems, please follow the guidelines linked from 
the perl.apache.org's shortcuts menu:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

I have perl 5.8.0 (pre-build by SuSE); It passed the tests
in the mpd_perl 2 prequsites section.

I get this problem on make test (both with Apache mpm
configured as prefork AND worker):

apache/subprocess1..4
# testing : passing ARGV
# expected: [
#   'foo',
#   'bar'
# ]
# received: []
not ok 1
# testing : passing env via subprocess_env
# expected: 'my cool proc'
# received: ''
not ok 2
# testing : testing subproc's stdin -> stdout + list context
# expected: 'my cool proc
# '
# received: ''
not ok 3
# testing : testing subproc's stdin -> stderr + list context
# expected: 'my stderr
# '
# received: ''
not ok 4
FAILED tests 1-4
	Failed 4/4 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
apache/subprocess.t44 100.00%  1-4

I haven't got a clue. This is my sixth reRTFM/reinstall/retest.
Could someone give me a push as to what to try next?


I forgot to add to the guidelines to check t/logs/error_log, will add it 
now.

So what does your error_log say? Most likely some perms problems with 
t/htdocs/util, right?

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



RE: Install Problem - Cannot load libperl.so

1999-10-02 Thread McNamara, Ken

Doug -

Thanks very much for the answer - I was missing something obvious.

Along the way I discovered that the Perl Configure file was putting a space
after the -R attribute - which was causing gcc to toss it's cookies on the
Apache test compile (it was trying to treat the CORE directory as a file).
I reported that to Perl Bug - since after I changed that the Apache test
compile ran clean.

I did eventually get to the point you suggest - but got core dumps when I
started Apache.  I read of someone else getting the same thing on 2.6 and
gave up dynamic loading, linked static and now things are running.

But, I do appreciate your answer and I'm filing it in my folder about
compiling on UNIX - it is helpful.

KenMc

-Original Message-
From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 30, 1999 10:49 PM
To: McNamara, Ken
Cc: [EMAIL PROTECTED]
Subject: Re: Install Problem - Cannot load libperl.so


On Thu, 23 Sep 1999, McNamara, Ken wrote:

> I'm compiling and installing Apache with mod_perl on a Solaris 2.6 system.
> Compiler is gcc 2.5.8
> 
> Please look at the install notes below - I feel I'm missing something
> obvious - but what?
 
> $ perl Makefile.PL EVERYTHING=1
> $ make
> # make install

you did not tell mod_perl to build a dso.
 
> Then cd to Apache and everything seemed to work except libperl.so didn't
> exist (note below)
> 
> $ ./configure --prefix=/usr/local/apache \
>   --activate-module=src/modules/perl/libperl.a \
>   --enable-shared=perl
> > > Configuring for Apache, Version 1.3.9
>  + using installation path layout: Apache (config.layout)
>  + activated perl module (modules/perl/libperl.a)

libperl.a links mod_perl static.

if you've already installed Apache, try this from appendixb of the eagle
book.

-Doug

=head2 Building mod_perl as a DSO

Once an Apache server installation is already in place, mod_perl can
be built as DSO without an Apache source tree handy.  Example:

 perl Makefile.PL USE_APXS=1 APACHE_PREFIX=/usr/local/apache EVERYTHING=1
...

The B option tells mod_perl to build itself using the Apache
I tool.  The Makefile.PL will look for I under the
I and I directories relative to B.  If
I happens to be installed elsewhere, simply use the full path
name for the value of the B attribute:

 perl Makefile.PL USE_APXS=/usr/sbin/apxs EVERYTHING=1 ...

Provided an B attribute was passed to the Makefile.PL
script, running I will install and configure the
mod_perl DSO library along with installing the Perl libraries.  If no
B attribute was specified, simply copy the new
I library to anywhere you choose.