Hiya all,
Okay, i'm attempting to get this working.
But i'm still coming up with a problem :(
The following works fully apart from the
"install AxKit" line brings up testing errors from
02language - test7
After a bit of looking I found this command
will give the failure reason:
PERL_DL_NONLAZY=1 /home/alex/install/perl/bin/perl \
-Iblib/arch -Iblib/lib \
-I/home/alex/install/perl/lib/5.6.1/i686-linux \
-I/home/alex/install/perl/lib/5.6.1 \
-e 'use Test::Harness qw(&runtests $verbose); $verbose=0; \
use Test; BEGIN { plan tests => 9 }; require "t/test_module.pl"; \
test_module("Apache::AxKit::Language::XSP", "XML::LibXML");'
So. Here's the error:
1..9
not ok 1
# Test 1 got: '0' (t/test_module.pl at line 11)
# Expected: '1' (Bareword "XML_COMMENT_NODE" not allowed while
"strict subs" in use at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_TEXT_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_CDATA_SECTION_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_ELEMENT_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_ENTITY_REF_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_DOCUMENT_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 968.
Bareword "XML_ELEMENT_NODE" not allowed while "strict subs" in use
at blib/lib/Apache/AxKit/Language/XSP.pm line 989.
Compilation failed in require at t/test_module.pl line 18.
)
Anyone got idea why i'm getting this?
thanks,
Alex
AxKit installation as user account
----------------------------------
libxml2:
ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.4/libxml2-2.4.27.tar.bz2
./configure --prefix=/home/alex/install/libxml2
make install
export LD_LIBRARY_PATH=/home/alex/install/libxml2/lib:$LD_LIBRARY_PATH
now you can just add /home/alex/install/libxml2/bin to your $PATH
and perl will automatically use it. yay for *-config!
expat:
http://belnet.dl.sourceforge.net/sourceforge/expat/expat-1.95.5.tar.gz
./configure --prefix=/home/alex/install/expat
make install
export LD_LIBRARY_PATH=/home/alex/install/expat/lib:$LD_LIBRARY_PATH
sablot:
http://download-2.gingerall.cz/download/sablot/Sablot-0.90.tar.gz
(version of Sablot works only with expat 1.95.4)
blackmagic needed here :)
CPLUS_INCLUDE_PATH=/home/alex/install/expat/include \
LIBRARY_PATH=/home/alex/install/expat/lib \
./configure --prefix=/home/alex/install/sablot
make install
export LD_LIBRARY_PATH=/home/alex/install/sablot/lib:$LD_LIBRARY_PATH
perl: (5.6.1)
sh Configure -d -Dprefix=/home/alex/install/perl
(you'll need to press return once for this)
make
make test (optional)
make install
[ now add /home/alex/install/perl/bin to your PATH]
apache: (latest 1.3.x)
./configure --prefix=/home/alex/install/apache
cpan:
perl -MCPAN -e shell
Here's some good options (for all options other than the below ones simple
press return)
Are you ready for manual configuration? [yes]
<enter>
Policy on building prerequisites (follow, ask or ignore)? [ask]
follow
Where is your lynx program? [/usr/bin/lynx]
<space>
Where is your wget program? [/usr/bin/wget]
<space>
Where is your ftp program? [/bin/ftp]
<space>
Mirror:
Europe/Netherlands
ftp://ftp.nluug.nl/pub/languages/perl/CPAN/
and ftp://download.xs4all.nl/pub/mirror/CPAN/
are pretty darn fast :)
Okay, CPAN's ready for our usage now.
Now lets install some little things to make it easier for us.
install MD5 - gets rid of some annoying messages :)
install Bundle::libnet - ftp stuff
install Bundle::CPAN - readline support, like doskey :)
mod_perl:
First some mod_perl dependancies:
install LWP - libwww-perl
[return a few times here also]
Now mod_perl itself:
o conf makepl_arg 'DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
APACHE_PREFIX=/home/alex/install/apache'
install mod_perl
apache (install):
make install
cpan:
perl -MCPAN -e shell
Some strange dependancies:
o conf makepl_arg 'EXPATLIBPATH=/home/alex/install/expat/lib \
EXPATINCPATH=/home/alex/install/expat/include \
SABLOTLIBPATH=/home/alex/install/sablot/lib \
SABLOTINCPATH=/home/alex/install/sablot/include \'
install XML::LibXML
install XML::Parser
install XML::Sablotron
quit
Finally, AxKit:
install AxKit
[and hit the return key plenty :)]
final stuff:
add your new $LD_LIBRARY_PATH to your shell profile!!!
references
http://www.perl.com/pub/a/2002/04/10/mod_perl.html
NOTES
tips and tricks for cpan installations:
if you ever see this sort of message:
"""
Running make for P/PA/PAVELH/XML-Sablotron-0.90.tar.gz
Is already unwrapped into directory
/home/alex/.cpan/build/XML-Sablotron-0.90
Makefile.PL returned status 512
"""
then do
clean XML::Sablotron
install XML::Sablotron
and you'll probably see that you miss some system libraries :)
a single liner for testing stuff:
PERL_DL_NONLAZY=1 /home/alex/install/perl/bin/perl -Iblib/arch -Iblib/lib
-I/home/alex/install/perl/lib/5.6.1/i686-linux -I/home/alex/install/perl/lib/5.6.1 -e
'use Test::Harness qw(&runtests $verbose); $verbose=0; use Test; BEGIN { plan tests =>
9 }; require "t/test_module.pl"; test_module("Apache::AxKit::Language::XSP",
"XML::LibXML");'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]