Installing RT on FreeBSD

Everytime I attempt to install RT on FreeBSD 4.10 I get the following
error after running apachectl configtest:

Syntax error on line 358 of /usr/local/etc/apache/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/ /usr/local/lib/perl) at (eval 3)
line 3.

Line 358 is:
PerlModule Apache::DBI

What is @INC? Do I simply need to add
“/usr/local/lib/perl5/site_perl/5.8.2/Apache” to it? Also, it may be
worth noting that before I did a make install for rt3 I installed
apache+mod_perl-1.3.31 and mysql-server-4.0.20. Thanks in advance for
any replies.

+Andy Baran … abaran1@depaul.edu
+DePaul Computer Security Response Team.http://security.depaul.edu

INC is array of pathes where perl looks for modules.
You didn’t install Apache::DBI modeule.
Did you run rt-test-dependencies?

Andy Baran wrote:

It actually looks like Andy is using a mod_perl build against perl
5.005, not the 5.8 he’s trying to run RT with.On Mon, Aug 02, 2004 at 08:58:24PM +0400, Ruslan U. Zakirov wrote:

INC is array of pathes where perl looks for modules.
You didn’t install Apache::DBI modeule.
Did you run rt-test-dependencies?

Andy Baran wrote:

Everytime I attempt to install RT on FreeBSD 4.10 I get the following
error after running apachectl configtest:

Syntax error on line 358 of /usr/local/etc/apache/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/ /usr/local/lib/perl) at (eval 3)
line 3.

Line 358 is:
PerlModule Apache::DBI

What is @INC? Do I simply need to add
“/usr/local/lib/perl5/site_perl/5.8.2/Apache” to it? Also, it may be
worth noting that before I did a make install for rt3 I installed
apache+mod_perl-1.3.31 and mysql-server-4.0.20. Thanks in advance for
any replies.


+Andy Baran … abaran1@depaul.edu
+DePaul Computer Security Response Team.http://security.depaul.edu


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

You have to force add it. In CPAN, just type force install Apache::DBIOn Mon, 2 Aug 2004, Andy Baran wrote:

}Everytime I attempt to install RT on FreeBSD 4.10 I get the following
}error after running apachectl configtest:
}
}Syntax error on line 358 of /usr/local/etc/apache/httpd.conf:
}Can’t locate Apache/DBI.pm in @INC (@INC contains:
}/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
}/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
}/usr/libdata/perl/5.00503 /usr/local/ /usr/local/lib/perl) at (eval 3)
}line 3.
}
}
}Line 358 is:
} PerlModule Apache::DBI
}
}What is @INC? Do I simply need to add
}“/usr/local/lib/perl5/site_perl/5.8.2/Apache” to it? Also, it may be
}worth noting that before I did a make install for rt3 I installed
}apache+mod_perl-1.3.31 and mysql-server-4.0.20. Thanks in advance for
}any replies.
}
}-----------------------------
}+Andy Baran … abaran1@depaul.edu
}+DePaul Computer Security Response Team.http://security.depaul.edu
}---------------------------
}_______________________________________________
}The rt-users Archives
}
}Be sure to check out the RT wiki at http://wiki.bestpractical.com
}

Matthew Joseff, Director Technical Operations
(p) 703.519.1066 (f) 703.548.9151 (m) 202.415.6261
YellowBrix - Transforming Content Into Action.

It actually looks like Andy is using a mod_perl build against perl
5.005, not the 5.8 he’s trying to run RT with.

Perhaps mod_perl was installed as a package, built against the system’s
PERL (which is 5.00x in 4.X and 5.6.1 in 5.X).

The best advice, as always with FreeBSD, is to re-install all
perl-related things (that’s unfortunately more than p5-*) after one has
upgraded to a new perl - and because this can be tedious, it’s best to
install perl5.8 as one of the first things after the initial install.
Learning how to use portupgrade is also recommended.

Perl 5.8 is rapidly becoming a “must-have” for more and more
applications anyway.

For Apache:DBI, there’s a port in /usr/ports/www/p5-Apache-DBI

Rainer

Perhaps mod_perl was installed as a package, built against the system’s
PERL (which is 5.00x in 4.X and 5.6.1 in 5.X).

FreeBSD 5.x doesn’t come with perl in the base system; the current ports
system has lang/perl5 (5.6.1) and lang/perl5.8 (5.8.5). So the
suggestion would be to install the latter and work from there.

Setting PERL_VER ^ PERL_VERSION in /etc/make.conf may be necessary too.

-- Niels.