RT 3.2.1 installation on Fedora Core 2

Hi,

I would like to try RT. So I installed a Fedora Core 2 (to have perl
at version 5.8.3). Of course, I am lacking some modules but more
worrying is that “fixdeps” crashes.

Anybody had the same problem ?

Here is a complete trace :
[root rt-3.2.1]# make fixdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --install --with-mysql
perl:
5.8.3…found
users:
rt group (rt)…MISSING
bin owner (root)…found
libs owner (root)…found
libs group (bin)…found
web owner (www)…MISSING
web group (www)…MISSING
MASON dependencies:
Params::Validate 0.02…MISSING
Number found where operator expected at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 484, near “<= 60 && -s _ > 0”
(Missing operator before 0?)
syntax error at /usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 484, near
"<= 60 && -s _ > 0"
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 496.
Global symbol “$overwrite_local” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 497.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 498.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 500.
Global symbol “$m” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 500.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 500.
Global symbol “$overwrite_local” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 501.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 502.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 503.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 506.
Global symbol “$m” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 506.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 506.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 507.
Global symbol “$loopcount” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 507.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 508.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 511.
Global symbol “$m” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 511.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 511.
Global symbol “$loopcount” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 512.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 513.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 514.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 517.
Global symbol “$m” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 517.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 517.
Global symbol “$mby” requires explicit package name at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 522.
syntax error at /usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 524, near “}”
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm has too many errors.
Compilation failed in require at /usr/lib/perl5/5.8.3/CPAN.pm line 1239.
make: *** [fixdeps] Error 9

Jean-Michel BARBET

Jean-michel BARBET | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet@subatech.in2p3.fr

Number found where operator expected at
/usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 484, near “<= 60 && -s _ > 0”
(Missing operator before 0?)
syntax error at /usr/lib/perl5/5.8.3/CPAN/FirstTime.pm line 484, near
"<= 60 && -s _ > 0"

You’ve never run CPAN before and it needs to be run once outside of
make fixdeps so it can be configured. Run perl -MCPAN -eshell and
follow the prompts.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

On Fedora you also need to ./configure RT to use apache/apache as web user and web group (if you run the default httpd that comes with the Fedora distro.

Check out http://wiki.bestpractical.com/index.cgi?FedoraInstallGuide for more information.

mvh/yours
Anders Hansen-Øvre

Michael S. Liebman wrote:

You’ve never run CPAN before and it needs to be run once outside of
make fixdeps so it can be configured. Run perl -MCPAN -eshell and
follow the prompts.

Right ! Thank you.

Still I get problems getting DBD::mysql to install :

perl -MCPAN -e 'install DBD::mysql’
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 03 Sep 2004 03:08:05 GMT
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9004.tar.gz
CPAN: Digest::MD5 loaded ok
[…]
CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9004.tar.gz

Can’t exec “mysql_config”: No such file or directory at Makefile.PL line
174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: No such file or directory at Makefile.PL line
174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: No such file or directory at Makefile.PL line
174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: No such file or directory at Makefile.PL line
174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: No such file or directory at Makefile.PL line
174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I

to set this directory. For details see the INSTALL.html file,
section “C Compiler flags” or type

perl Makefile.PL --help
Running make test
Make had some problems, maybe interrupted? Won’t test
Running make install
Make had some problems, maybe interrupted? Won’t install

Jean-Michel BARBET.

Jean-michel BARBET | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet@subatech.in2p3.fr

Still I get problems getting DBD::mysql to install:

I always install this one by hand, so I can set the libs and MySQL
user/password correctly:

wget http://cpan.org/modules/by-module/DBD/DBD-mysql-2.9004.tar.gz
tar zxf DBD-mysql-2.9004.tar.gz
cd DBD-mysql-2.9004

perl Makefile.PL
–libs="-L/opt/mysql/lib/mysql -lmysqlclient -lz"
–cflags=-I/opt/mysql/include/mysql
–testuser=xxx
–testpassword=yyy

make && make test && make install

Check the libs and cflags directories for wherever you are installed MySQL.
testuser is usually “root” and the password is root’s password.

FYI, I’m running RT 3.2.1 on FC2 with no issues whatsoever, so I know it can
be done… :slight_smile:

Download mysql server, devel and client tools from www.mysql.com and do a “rpm -Uvh MySQL*.rpm” to upgrade your MySQL to version 4.X then install the DBD::mysql

Again, check out http://wiki.bestpractical.com/index.cgi?FedoraInstallGuide for a complete install guide for RT v3 on Fedora Core 2.

mvh/yours
Anders Hansen-Øvre, Seniorkonsulent

Bruce Timberlake wrote:

Still I get problems getting DBD::mysql to install:

I always install this one by hand, so I can set the libs and MySQL
user/password correctly:

Hi Bruce,

Thanks to you and to Anders Hansen-Ovre for your answers.
Installing the DBD-mysql by hand solves my problem and all
dependencies are now satisfied. It is great that the “fixdeps"
procedure exists (thanks for that) but I wonder why it failed
on this module. May be it just does’nt know what to use as
"testuser” and “testpassword”.

OK, I can start playing with RT now.

Thanks again.

Jean-Michel.

Jean-michel BARBET | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet@subatech.in2p3.fr