Can't locate RT/Mason.pm

Hi,

I got this error message while trying to access the index.html file of RT2:

[Thu Jan 24 06:45:33 2002] [error] Can’t locate RT/Mason.pm in @INC (@INC
contains: /usr/local/lib/site_perl/5.00503/i386-freebsd
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at
(eval 4) line 3.

I couldn’t find RT/Mason.pm anywhere :frowning:

francis a. vidal [bitstop network services] | http://www.dagupan.com
streaming media + web hosting | http://www.keystone.ph
v(02)330-2871,(02)330-2872; f(02)330-2873 | http://www.kuro.ph

|+ [Thu Jan 24 06:45:33 2002] [error] Can’t locate RT/Mason.pm in @INC (@INC
|+ contains: /usr/local/lib/site_perl/5.00503/i386-freebsd
|+ /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
|+ /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
|+ /usr/local/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at
|+ (eval 4) line 3.
|+
|+ I couldn’t find RT/Mason.pm anywhere :frowning:

Can you please send your apache config file, more importantly, the
section that pertains to RT?

I found the culprit. I forgot to include the line:

PerlRequire /usr/local/rt2/bin/webmux.pl

Now it’s okay but I’m having problems with the base location. I’ve changed
the value of $WebPath to:

$WebPath = "/rt";

but the base is still the web’s root directory. :(-----Original Message-----
From: Darrin Walton [mailto:darrinw@nixc.net]
Sent: Thursday, January 24, 2002 9:18 PM
To: francisv@dagupan.com
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate RT/Mason.pm

|+ [Thu Jan 24 06:45:33 2002] [error] Can’t locate RT/Mason.pm in @INC
(@INC
|+ contains: /usr/local/lib/site_perl/5.00503/i386-freebsd
|+ /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
|+ /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
|+ /usr/local/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl)
at
|+ (eval 4) line 3.
|+
|+ I couldn’t find RT/Mason.pm anywhere :frowning:

Can you please send your apache config file, more importantly, the
section that pertains to RT?

Francis,
You should find that it is easiest to create a virtual host on your apache
webserver for rt.
In your httpd.conf file, you should add something which looks like this:

DocumentRoot /usr/local/rt2/WebRT/html ServerName rtserver.dagupan.com PerlModule Apache::DBI PerlFreshRestart On PerlRequire /usr/local/rt2/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

That done, it will pretty much work unless you have done something else
horribly wrong :slight_smile:

Alternatively, if you dont set it up as a virtualhost, just make sure your
httpd.conf has the
DocumentRoot variable set to /usr/local/rt2/WebRT/html or wherever you have it.

Hope this helps
Dane

Dane Rapaport
Systems Administrator and All Round Nice Guy
Animal LOGIC, Fox Studios Australia
www.animallogic.com
p: +61 2 9383 4964
m: 0414 735 922

Hi Dane,

I finally figured it out. I just missed the line:

PerlRequire /usr/local/rt2/bin/webmux.pl

in my httpd.conf. Everything’s working fine now. I’m trying to figure out
how to replace our current customer support e-mail on MS Exchange to RT on
FreeBSD.-----Original Message-----
From: Dane Rapaport [mailto:dane@al.com.au]
Sent: Friday, January 25, 2002 6:28 AM
To: francisv@dagupan.com
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate RT/Mason.pm

Francis,
You should find that it is easiest to create a virtual host on your apache
webserver for rt.
In your httpd.conf file, you should add something which looks like this:

DocumentRoot /usr/local/rt2/WebRT/html ServerName rtserver.dagupan.com PerlModule Apache::DBI PerlFreshRestart On PerlRequire /usr/local/rt2/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

That done, it will pretty much work unless you have done something else
horribly wrong :slight_smile:

Alternatively, if you dont set it up as a virtualhost, just make sure your
httpd.conf has the
DocumentRoot variable set to /usr/local/rt2/WebRT/html or wherever you have
it.

Hope this helps
Dane

Dane Rapaport
Systems Administrator and All Round Nice Guy
Animal LOGIC, Fox Studios Australia
www.animallogic.com
p: +61 2 9383 4964
m: 0414 735 922

I got this error message while trying to access the index.html file of RT2:

[Thu Jan 24 06:45:33 2002] [error] Can’t locate RT/Mason.pm in @INC (@INC
contains: /usr/local/lib/site_perl/5.00503/i386-freebsd
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at
(eval 4) line 3.

I couldn’t find RT/Mason.pm anywhere :frowning:

It’s defined in bin/webmux.pl which you should be including in your
Apache configuration using PerlRequire (assuming you’re running under
mod_perl).

See “Configuring the web interface” in the “Installation” section of
the RT docs on the Web site.

Tom