Strange perl problem


#1

I’ve looked through the archives (well, some of them anyway), and can’t
find a clue about what’s wrong here …

I’ve got RT running on a test machine, no problem. I went to install it
on the real machine, and it doesn’t work. The CGI scripts fail with the
error message below. The same error appears in apache’s errors log.
Here’s the strange part: as root or as myself, I can run the cgi script
from the command line and it dutifully spits out the HTML. It seems to
be the rt account that is having a problem with perl. The file ctime.pl
is sitting where it belongs in /usr/local/lib/perl5/5.6.0 which appears
in @INC!

I’ve also attached some info about the environment; it’s the same on
both machines, other than the fact that the test machine is an Sun Ultra
5. Both are running Solaris 8; the production machine is about a year
newer, though, so it may have a slightly newer rev of Solaris 8. (The
production machine is a Sun 220R, but uname reports it as an Ultra 60.
Hmmm. Maybe the 220R is just a sideways Ultra 60 :slight_smile: I’m running
apache_1.3.19 on both machines. I ditched Sun’s apache and perl both,
and compiled them from source with the gcc package from
sunfreeware.com.

Any ideas? I’d love to get RT working for real. Thanks. – Brian

su - rt

Sun Microsystems Inc. SunOS 5.8 Generic February 2000
$ /opt/rt/bin/cgi/webrt.cgi
Can’t locate ctime.pl in @INC (@INC contains:
/usr/local/lib/perl5/5.6.0/sun4-solaris /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl) at
/opt/rt/bin/rtmux.pl line 6.

$ env
HOME=/opt/rt
HZ=100
LOGNAME=rt
PATH=/usr/bin:
SHELL=/bin/sh
TERM=vt100
TZ=US/Pacific
$ uname -a
SunOS PCServer2 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-60
$ perl -v

This is perl, v5.6.0 built for sun4-solaris

$ gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)

Brian J. Doherty, Ph.D.
Information Technology, CSPCC; VA Health Care System, Palo Alto
bdoherty@mailsvr.icon.palo-alto.med.va.gov; 650-493-5000 x22530