Perl Module Problems

Ok, trying to get all the dependancies resolved using Mandrake packages
turned out to be too complicated, so I’m doing it the CPAN way
recommended in the docs. I’m having some trouble getting them all to
install. I finally figured out how to fix quite a bit of it by doing
the following manually:

urpmi perl-devl
perl -MCPAN -e ‘install Test::Pod’
perl -MCPAN -e ‘install Test::Pod::Coverage’

but I’m still stuck on the following items:

Apache::Session 1.53…MISSING
t/99dbfile…dubious
Test returned status 2 (wstat 512, 0x200)
t/99dbfilestore…dubious
Test returned status 2 (wstat 512, 0x200)
t/99flex…skipped
all skipped: no reason given
t/99postgres…skipped
all skipped: no reason given

XML::RSS …MISSING
Seems to be complaining about expat.h being missing

HTTP::Server::Simple 0.07…MISSING
t/04cgi…dubious
Test returned status 6 (wstat 1536, 0x600)
DIED. FAILED tests 5, 7, 10-11, 18, 20

HTTP::Server::Simple::Mason 0.03…MISSING
Can’t install without HTTP::Server::Simple

DBD::Pg 1.41…MISSING
Can’t seem to find pg_config

Apache::Test …MISSING
[warning] result:
[ error] You are running the test suite under user ‘root’.
Apache cannot spawn child processes as ‘root’, therefore
we attempt to run the test suite with user ‘nobody’ (65534:65534).
The problem is that the path (including all parent directories):
/root/.cpan/build/Apache-Test-1.25/t
must be ‘rwx’ by user ‘nobody’, so Apache can read and write under
that path.

looks like it’s got the right permissions to me:
drwxr-xr-x 6 nobody nogroup 4096 Jul 11 12:47 t/

Test::WWW::Mechanize …MISSING
Can’t install without HTTP::Server:Simple

A few helpful hints would be nice if someone else has run into these
problems before.

Chris Berry
chris_berry@jm-associates.com
Information Advisory Manager
JM Associates

“There is nothing so useless as doing efficiently that which should not
be done at all.” --Peter Drucker

Chris Berry wrote:

HTTP::Server::Simple 0.07…MISSING
t/04cgi…dubious
Test returned status 6 (wstat 1536, 0x600)
DIED. FAILED tests 5, 7, 10-11, 18, 20

Chris,

Not sure about the others, but I suspect this one might be
answered by my reply to Paul O’Rourke earlier today.

Chris Berry wrote:

Ok, trying to get all the dependancies resolved using Mandrake packages
turned out to be too complicated, so I’m doing it the CPAN way
recommended in the docs. I’m having some trouble getting them all to
install. I finally figured out how to fix quite a bit of it by doing
the following manually:

urpmi perl-devl
perl -MCPAN -e ‘install Test::Pod’
perl -MCPAN -e ‘install Test::Pod::Coverage’

but I’m still stuck on the following items:

Apache::Session 1.53…MISSING
t/99dbfile…dubious
Test returned status 2 (wstat 512, 0x200)
t/99dbfilestore…dubious
Test returned status 2 (wstat 512, 0x200)
t/99flex…skipped
all skipped: no reason given
t/99postgres…skipped
all skipped: no reason given
You can ignore this errors and force installation unless your DB backend
is postgresql.

XML::RSS …MISSING
Seems to be complaining about expat.h being missing
I think this module uses libexpat, even if you have this lib you should
also have devel rpm installed.

HTTP::Server::Simple 0.07…MISSING
t/04cgi…dubious
Test returned status 6 (wstat 1536, 0x600)
DIED. FAILED tests 5, 7, 10-11, 18, 20

HTTP::Server::Simple::Mason 0.03…MISSING
Can’t install without HTTP::Server::Simple

DBD::Pg 1.41…MISSING
Can’t seem to find pg_config
Looks like you are going to use Pg. Install pg-devel(I don’t know
correct name of the package you need), I think pg_config is there.
After you will install DBD::Pg try again Apache::Session to be sure that
tests success.

Apache::Test …MISSING
[warning] result:
[ error] You are running the test suite under user ‘root’.
Apache cannot spawn child processes as ‘root’, therefore
we attempt to run the test suite with user ‘nobody’ (65534:65534).
The problem is that the path (including all parent directories):
/root/.cpan/build/Apache-Test-1.25/t
must be ‘rwx’ by user ‘nobody’, so Apache can read and write under
that path.
Download tarball from CPAN, run ‘perl Makefiel.PL && make && make test’
as non root user, ‘make install’ as root. You may be need to specify
APXS utility path, see README shipped with tarball.

Ok, thanks to to Phil Homewood and Ruslan Zakirov I was able to fix all
the perl module problems except one. I’m still having difficulty with
Apache::Session

So far I tried installing libdb4.2-devel, flex, and Apache::DB based on
various posts that I read concerning the problem, but that doesn’t seem
to have helped much. Here’s what looks like the relevant portions:

t/99dbfile…Can’t locate DB_File.pm in @INC
t/99dbfilestore…Can’t locate DB_File.pm in @INC

This started after I installed Apache::DB, though it was being skipped
before so I guess I’m making some kind of progress.

[root@hermes /usr/local/src/rt-3.4.2]$ slocate DB_File.pm
/root/.cpan/build/Apache-Session-1.6/Session/Store/DB_File.pm
/root/.cpan/build/Apache-Session-1.6/Session/DB_File.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DB_File.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/DB_File.pm

not sure why it can’t find what it needs, and I wasn’t sure which one
it’s looking for.

t/99flex…skipped
all skipped: no reason given

Not sure why this is happening since I have flex installed now.

t/99postgres…skipped
all skipped: no reason given

I have postgresql installed so this shouldn’t be skipped.

Can I buy a vowel?

Chris Berry
chris_berry@jm-associates.com
Information Advisory Manager
JM Associates

“There is nothing so useless as doing efficiently that which should not
be done at all.” --Peter Drucker

Chris Berry wrote:

Ok, thanks to to Phil Homewood and Ruslan Zakirov I was able to fix all
the perl module problems except one. I’m still having difficulty with
Apache::Session

So far I tried installing libdb4.2-devel, flex, and Apache::DB based on
various posts that I read concerning the problem, but that doesn’t seem
to have helped much. Here’s what looks like the relevant portions:

t/99dbfile…Can’t locate DB_File.pm in @INC
t/99dbfilestore…Can’t locate DB_File.pm in @INC

This started after I installed Apache::DB, though it was being skipped
before so I guess I’m making some kind of progress.

[root@hermes /usr/local/src/rt-3.4.2]$ slocate DB_File.pm
/root/.cpan/build/Apache-Session-1.6/Session/Store/DB_File.pm
/root/.cpan/build/Apache-Session-1.6/Session/DB_File.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DB_File.pm

/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/DB_File.pm

not sure why it can’t find what it needs, and I wasn’t sure which one
it’s looking for.
Module is looking for DB_File.pm in the @INC. I don’t know why
Apache::Session tries to run this tests if module is not installed. I
think it’s looking for DB_File-1.811 - Perl5 access to Berkeley DB version 1.x - metacpan.org so
you can install it if you want, but AFAIK RT doesn’t use this module.

t/99flex…skipped
all skipped: no reason given

Not sure why this is happening since I have flex installed now.
RT doesn’t use Flex.

t/99postgres…skipped
all skipped: no reason given

I have postgresql installed so this shouldn’t be skipped.
May be it’s not running or you need to specify some options to enable
this tests.

Ok, that seems to have done it, thanks. Now on to the build process.

Chris Berry
chris_berry@jm-associates.com
Information Advisory Manager
JM Associates

“There is nothing so useless as doing efficiently that which should not
be done at all.” --Peter Drucker

Ruslan U. Zakirov wrote: