Hi all,
I’m installing RT 3.8.1 on a brand new RHEL 5.2 x86_64 installation.
All Perl modules have installed successfully, except for
HTTP::Server::Simple::Mason which fails on the 01live test and some
subsequent tests (see attached file for full history):
t/01live…ok 1/5Use of uninitialized value in pattern match
(m//) at t/01live.t line 18, line 16.
Failed test ‘Returns a page containing only 2’
at t/01live.t line 18.
undef
doesn’t match ‘(?-xism:2$)’
Looks like you failed 1 test of 5.
I know very little about CPAN modules
I originally installed this machine a month ago and didn’t experience
this problem. I just wiped the machine and am attempting a complete
re-install.
As I believe HTTP::Server::Simple::Mason is only used for development,
I’ll try forcing an installation so I can proceed.
I just came across the same problem and stumbled on the answer…
I happened to be checking the log files for the proxy server (which runs
on another server)
and noticed that it contained entries for GET http://localhost:13432
which is the URL used
by the Mason test scripts in t/*.t.
In other words, the test scripts are using the HTTP proxy defined in the
environment variable
http_proxy which it is not required when accessing a ‘localhost’ server.
So I used the commands to successfully test and install
HTTP-Server-Simple-Mason:
cd /root/.cpan/build/HTTP-Server-Simple-Mason-0.09/
unset http_proxy
make test
make install
Hi Angus,
Well spotted! Thanks so much for replying!
I would have had the http_proxy env var defined.
In the end I found and installed an RPM for HTTP::Server::Simple::Mason
from EPEL.
I’m sure your post will help someone else, or us when we re-install
I just came across the same problem and stumbled on the answer…
I happened to be checking the log files for the proxy server (which runs
on another server)
and noticed that it contained entries for GET [1]http://localhost:13432
which is the URL used
by the Mason test scripts in t/*.t.
In other words, the test scripts are using the HTTP proxy defined in the
environment variable
http_proxy which it is not required when accessing a ‘localhost’ server.
I see code in those files to remove the http_proxy environment
variable. Does 0.10 just work for you?