Re: errors installing libapreq [RESOLVED]

2003-07-14 Thread Stas Bekman
Chris Devers wrote:
Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
hit the same error, the fix -- which I've saved as a script for future
reference :) -- is as follows:
* Install Apache/mod_perl:

#!/bin/sh
# chd.build.apachemodperl.sh
perl=/sw/bin/perl
modperldir=/usr/src/mod_perl-1.27
apachedir=/usr/src/apache_1.3.27
builddir=/usr/local/apache
pushd $modperldir

$perl Makefile.PL \
APACHE_SRC=../apache_1.3.xx/src \
APACHE_PREFIX=${builddir} \
APACHE_USER=www \
APACHE_GROUP=www \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS='--sbindir=${builddir}/sbin, \
--sysconfdir=${builddir}/etc, \
--localstatedir=${builddir}/var, \
--runtimedir=${builddir}/var/run, \
--logfiledir=${builddir}/var/logs, \
--proxycachedir=${builddir}/var/proxy, \
--enable-module=so'
make
make test
sudo make install
pushd $apachedir
sudo make install
echo "Verifying that the build worked:"
${builddir}/sbin/apachectl configtest && \
  echo "congratulations, you may now reset apache by running" && \
  echo "${builddir}/sbin/apachectl start"
* Installation may disrupt Perl modules. I had to rebuild Apache::Test

% sudo /sw/bin/perl -MCPAN -e shell
cpan> install Apache::Test
* Install libapreq:

% perl Makefile.PL \
> -httpd /usr/local/apache/sbin/httpd \
> -apxs  /usr/local/apache/sbin/apxs
% make
% make test
% make install
Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
got this error:
skipping test setup...Undefined subroutine &Apache::Test::config called at 
/sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.
And, as I say, rebuilding Apache::Test in the CPAN shell took care of
that. Others may hit different problems that could be fixed similarly.
All better now :)
That's all because of the issue case-insensitive issues with Apache/test.pm 
vs. Apache/Test.pm, which are no longer a problem, since mod_perl 2.0, no 
longer carries Apache/test.pm (it has been renamed to Apache/testold.pm).

__
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: errors installing libapreq [RESOLVED]

2003-06-26 Thread Chris Devers
Well, I rebuilt Apache/mod_perl, and it seemed to work. For those that
hit the same error, the fix -- which I've saved as a script for future
reference :) -- is as follows:

* Install Apache/mod_perl:

#!/bin/sh
# chd.build.apachemodperl.sh

perl=/sw/bin/perl
modperldir=/usr/src/mod_perl-1.27
apachedir=/usr/src/apache_1.3.27
builddir=/usr/local/apache

pushd $modperldir

$perl Makefile.PL \
APACHE_SRC=../apache_1.3.xx/src \
APACHE_PREFIX=${builddir} \
APACHE_USER=www \
APACHE_GROUP=www \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS='--sbindir=${builddir}/sbin, \
--sysconfdir=${builddir}/etc, \
--localstatedir=${builddir}/var, \
--runtimedir=${builddir}/var/run, \
--logfiledir=${builddir}/var/logs, \
--proxycachedir=${builddir}/var/proxy, \
--enable-module=so'
make
make test
sudo make install

pushd $apachedir
sudo make install

echo "Verifying that the build worked:"
${builddir}/sbin/apachectl configtest && \
  echo "congratulations, you may now reset apache by running" && \
  echo "${builddir}/sbin/apachectl start"


* Installation may disrupt Perl modules. I had to rebuild Apache::Test

% sudo /sw/bin/perl -MCPAN -e shell
cpan> install Apache::Test


* Install libapreq:

% perl Makefile.PL \
> -httpd /usr/local/apache/sbin/httpd \
> -apxs  /usr/local/apache/sbin/apxs
% make
% make test
% make install


Everything went smoothly up to the `perl Makefile.PL [...]` step, where I
got this error:

skipping test setup...Undefined subroutine &Apache::Test::config called at 
/sw/lib/perl5/site_perl/5.8.0/darwin/Apache/TestMM.pm line 90.
Warning: prerequisite Apache::Test 1.03 not found. We have unknown version.

And, as I say, rebuilding Apache::Test in the CPAN shell took care of
that. Others may hit different problems that could be fixed similarly.

All better now :)



-- 
Chris Devers[EMAIL PROTECTED]

channeler, n.
Also SPIRIT GUIDE. Politically correct terms for DAEMON.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995


errors installing libapreq

2003-06-25 Thread Chris Devers
Apologies for the cross-posting, but I feel like I'm pulling the loose
thread out of a sweater here, and it's getting annoying to see just far
things can unravel. To avoid unnecessary cross-posting, feel free to reply
to me directly &/or delete one or more of the lists I've cc'ed this to if
you think that my stab in the dark was a bit too blind.


Okay, so -- I'm trying to install RT3 on my Mac (OSX 10.2.6, build 6L60):

http://bestpractical.com/rt/index.html

RT3 depends on Perl 5.8, so I've installed that from Fink

sudo fink install perl580

RT3 also requires about half of CPAN, so I got that too.

More importantly, it requires mod_perl, but since I've upgraded to Perl
5.8, I can no longer depend on the 5.6 mod_perl as supplied by Apple, so
I've had to build & install Apache 1.3.27 & mod_perl 1.27.

So far so good. Or so it seems.

The last CPAN thing RT wants is libapreq, and here's where it all falls
apart. I'm following the installation instructions in the INSTALL.MacOSX
file that came with libapreq, namely:

$ cd ~/.cpan/build/libapreq-1.2
$ sh BUILD.sh
$ ./configure --with-apache-includes=/usr/local/apache/include
$ make
$ make test
$ sudo make install

This all seems to work fine.

The second half of the libapreq install asks me to do the following:

$ /sw/bin/perl Makefile.PL -apxs /usr/local/apache/sbin/apxs
$ make
$ make test

And that's where everything explodes:

$ make test
/sw/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
APACHE_USER=www APACHE_GROUP=www APACHE_PORT= APACHE= APXS= \
/sw/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -verbose=0
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
APXS (/usr/local/apache/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/sbin/apxs) query for LIBEXECDIR failed
/usr/local/apache/sbin/httpd -X -d /Users/cdevers/.cpan/build/libapreq-1.2/t -f 
/Users/cdevers/.cpan/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
using Apache/1.3.27

waiting for server to start: .
waiting for server to start: ok (waited 0 secs)
server localhost:8529 started
apreq/big_input# Failed test 1 in apreq/big_input.t at line 40
apreq/big_inputNOK 1# Failed test 2 in apreq/big_input.t at line 40 fail #2
apreq/big_inputNOK 2# Failed test 3 in apreq/big_input.t at line 40 fail #3
apreq/big_inputNOK 3# Failed test 4 in apreq/big_input.t at line 40 fail #4
apreq/big_inputNOK 4# Failed test 5 in apreq/big_input.t at line 40 fail #5
apreq/big_inputNOK 5# Failed test 6 in apreq/big_input.t at line 40 fail #6
apreq/big_inputNOK 6# Failed test 7 in apreq/big_input.t at line 40 fail #7
apreq/big_inputNOK 7# Failed test 8 in apreq/big_input.t at line 40 fail #8
apreq/big_inputNOK 8# Failed test 9 in apreq/big_input.t at line 40 fail #9
apreq/big_inputNOK 9# Failed test 10 in apreq/big_input.t at line 63
apreq/big_inputNOK 10# Failed test 11 in apreq/big_input.t at line 63 fail #2
apreq/big_inputNOK 11# Failed test 12 in apreq/big_input.t at line 63 fail #3
apreq/big_inputNOK 12# Failed test 13 in apreq/big_input.t at line 63 fail #4
apreq/big_inputNOK 13# Failed test 14 in apreq/big_input.t at line 63 fail #5
apreq/big_inputNOK 14# Failed test 15 in apreq/big_input.t at line 63 fail #6
apreq/big_inputNOK 15# Failed test 16 in apreq/big_input.t at line 63 fail #7
apreq/big_inputNOK 17# Failed test 17 in apreq/big_input.t at line 63 fail #8
# Failed test 18 in apreq/big_input.t at line 63 fail #9
apreq/big_inputNOK 18# Failed test 19 in apreq/big_input.t at line 63 fail #10
apreq/big_inputNOK 19# Failed test 20 in apreq/big_input.t at line 63 fail #11
apreq/big_inputNOK 21# Failed test 21 in apreq/big_input.t at line 63 fail #12
apreq/big_inputFAILED tests 1-21
Failed 21/21 tests, 0.00% okay
apreq/cookie...# Failed test 1 in apreq/cookie.t at line 20
apreq/cookie...FAILED test 1
Failed 1/1 tests, 0.00% okay
apreq/inherit..NOK 1# Failed test 1 in apreq/inherit.t at line 11
apreq/inherit..FAILED test 1
Failed 1/1 tests, 0.00% okay
apreq/request..NOK 1# Failed test 1 in apreq/request.t at line 18
apreq/request..NOK 2# Failed test 2 in apreq/request.t at line 26
apreq/request..FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
apreq/big_input.t   21   21 100.00%  1-21
apreq/cookie.t   11 100.00%  1
apreq/inherit.t  11 100.00%  1
ap

Re: errors installing libapreq

2002-06-26 Thread Dave Rolsky

On Tue, 25 Jun 2002, Tim Bolin wrote:

> ok, im at the end of my proverbial rope on this one and dont know how to
> proceed... i am trying to install libapreq for Apache::Request, and when i
> try to run "make" the thing just pukes up a huge long string of errors like:

You forgot to mention (though you did in your message to the Mason list)
that you're using mod_perl 1.99_something, with which Apache::Request will
not compile.


-dave

/*==
www.urth.org
we await the New Sun
==*/





Re: errors installing libapreq

2002-06-26 Thread Joe Schaefer


[cross-posted to apreq-dev]

Tim Bolin <[EMAIL PROTECTED]> writes:

> ok, im at the end of my proverbial rope on this one and dont know how
> to proceed... i am trying to install libapreq for Apache::Request, and
> when i try to run "make" the thing just pukes up a huge long string of
> errors like :
> 
> -=-=-=-=-=-=-
> make[1]: Entering directory `/root/.cpan/build/libapreq-0.33/c'
> gcc -c -I/usr/local/httpd//include -I/usr/local/httpd//include 
> -fno-strict-aliasing -I/usr/local/include -O2 -march
> =i386 -mcpu=i686   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC 
> -I/usr/lib/perl5/5.6.1/i386-linux/CORE  apache_re
> quest.c
> In file included from apache_request.c:58:
> apache_request.h:38: parse error before `table'
   ^^

Your include files aren't defining the table struct.  gcc can't find 
your apache header files (maybe they're in /usr/local/apache/include ?).
Also, the typical compile lines should have a whole lot more "-I" flags.
In your case, modperl may not be properly installed- otherwise your
compile lines would look more like this (wrapped):

  make[1]: Entering directory `/home/joe/src/apache/cvs/httpd-apreq/c'
  cc -c -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include 
  -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/modules/perl
  -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/include 
  -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/regex 
  -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/os/unix
  -I/usr/local/apache/include -Dbool=char -DHAS_BOOL
  -I/usr/local/include -O2-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" 
  -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE  apache_request.c

You probably need to reinstall modperl (preferably from source) to get
libapreq to build correctly on your OS.

-- 
Joe Schaefer



Re: errors installing libapreq

2002-06-26 Thread [EMAIL PROTECTED]

Try an older version.
 --- Tim Bolin <[EMAIL PROTECTED]> wrote: > ok, im at
the end of my proverbial rope on this one
> and dont know how to 
> proceed... i am trying to install libapreq for
> Apache::Request, and when i 
> try to run "make" the thing just pukes up a huge
> long string of errors like:
> 
> -=-=-=-=-=-=-
> make[1]: Entering directory
> `/root/.cpan/build/libapreq-0.33/c'
> gcc -c -I/usr/local/httpd//include
> -I/usr/local/httpd//include 
> -fno-strict-aliasing -I/usr/local/include -O2 -march
> =i386 -mcpu=i686   -DVERSION=\"0.10\"
> -DXS_VERSION=\"0.10\" -fPIC 
> -I/usr/lib/perl5/5.6.1/i386-linux/CORE  apache_re
> quest.c
> In file included from apache_request.c:58:
> apache_request.h:38: parse error before `table'
> apache_request.h:38: warning: no semicolon at end of
> struct or union
> apache_request.h:48: parse error before `}'
> apache_request.h:48: warning: data definition has no
> type or storage class
> apache_request.h:55: parse error before `table'
> apache_request.h:55: warning: no semicolon at end of
> struct or union
> apache_request.h:58: parse error before `*'
> apache_request.h:58: warning: data definition has no
> type or storage class
> apache_request.h:59: parse error before `}'
> apache_request.h:89: parse error before `*'
> apache_request.h:89: warning: data definition has no
> type or storage class
> apache_request.h:90: parse error before `*'
> apache_request.h:91: parse error before `*'
> apache_request.h:92: parse error before `*'
> apache_request.h:93: parse error before `*'
> .
> .
> .
> -=-=-=-=-=-=-
> 
> it goes on for 200 more lines or so with many
> different seemingly 
> syntactical errors...
> 
> i decided for grins to try v0.33 and see what
> happened, and curiously 
> enough, i get exactly the same errors... well, for
> the first 50 lines or 
> so, i was just eyeballing the first screen or two...
> 
> anyone have any idea at all what would cause this?
> it occurs if i try to do 
> it with the CPAN module or when i do it manually...
> i even tried it with 
> both the Makefile.PL and using configure... same
> results...
> 
> id definitely appreciate any insight any of you
> might have on how to 
> resolve this...
> 
> thanks!
> 
> -Tim
>  

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!