Problem with RT and FreeBSD 4.5-STABLE

Hi,

I’ve got some questions regarding the installation of RT on FreeBSD.

I use a FreeBSD 4.5-STABLE and wanted to use the ports-system to install
the various perl-modules (and not to completely mess-up my system).
Do I absolutely have to have the same version numbers of the required
perl-modules ?

Upon running the test-script, I get:

Checking for Digest::MD5…found
Checking for Storable…found
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.48 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 1.02 …found
Checking for CGI::Cookie 1.20 …CGI::Cookie 1.20 not installed.
Checking for Apache::Cookie…found
Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …Getopt::Long 2.24 not installed.
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …File::Spec 0.8 not installed.
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…File::Temp not installed.
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

I have installed the versions of these modules that were in the
ports-collection. Some are a bit older, but e.g. Getopt::Long is already in
the base-system (allthough a bit older version).

No, rt installs (not without complaining about not finding certain modules),
but when I try to change the rt-root password, I get:

“config” is not defined in %Getopt::Long::EXPORT_TAGS at
/usr/libdata/perl/5.00503/Exporter.pm line 67
Exporter::export(‘Getopt::Long’, ‘main’, ‘:config’, ‘pass_through’)
called at /usr/libdata/perl/5.00503/Exporter.pm line 182
Exporter::import(‘Getopt::Long’, ‘:config’, ‘pass_through’) called at
/usr/local/rt2/bin/rtadmin line 8
main::BEGIN() called at /usr/libdata/perl/5.00503/Getopt/Long.pm line
8
eval {…} called at /usr/libdata/perl/5.00503/Getopt/Long.pm line 8
“pass_through” is not exported by the Getopt::Long module at
/usr/local/rt2/bin/rtadmin line 8
Can’t continue after import errors at /usr/local/rt2/bin/rtadmin line 8
BEGIN failed–compilation aborted at /usr/local/rt2/bin/rtadmin line 8.

So, I assume it wants some new functionality - or what is this ?

What’s to do ?

cheers,
Rainer
Rainer Duffner Munich
rainer@ultra-secure.de Germany
http://www.i-duffner.de Freising
When shall we three meet again
In thunder, lightning, or in rain?

Hi,

I’ve got some questions regarding the installation of RT on FreeBSD.

I use a FreeBSD 4.5-STABLE and wanted to use the ports-system to install
the various perl-modules (and not to completely mess-up my system).
Do I absolutely have to have the same version numbers of the required
perl-modules ?

I didn’t have much choice but to manually install some modules. Even
worse, I had to manually (read copy) install the CGI.pm files because the
Makefile.pl wouldn’t work.

On the upside, I wouldn’t worry too much about having to use cpan to
install modules rather than the FreeBSD ports. The end result is the same,
the only thing you don’t get is a pkg entry saying it’s installed. But
there is never going to be a port for every module you need anyway.

- Justin

Justin Hawkins
Internode Professional Access

Justin Hawkins writes:

I didn’t have much choice but to manually install some modules. Even
worse, I had to manually (read copy) install the CGI.pm files because the
Makefile.pl wouldn’t work.

If I install a newer Getopt::Long via CPAN - where does it get installed ?
If it is in /usr/local, does RT pick it up in favour to the one in /usr ?

On the upside, I wouldn’t worry too much about having to use cpan to
install modules rather than the FreeBSD ports. The end result is the
same, the only thing you don’t get is a pkg entry saying it’s installed.
But there is never going to be a port for every module you need anyway.

True, but at least for RT, they are all there.
Theoretically.

cheers,
Rainer
Rainer Duffner Munich
rainer@ultra-secure.de Germany
http://www.i-duffner.de Freising
When shall we three meet again
In thunder, lightning, or in rain?

“RD” == Rainer Duffner rainer@ultra-secure.de writes:
RD> If I install a newer Getopt::Long via CPAN - where does it get installed ?
RD> If it is in /usr/local, does RT pick it up in favour to the one in /usr ?

One of the options in CPAN (recent versions – upgrade CPAN first) is
to pass the UNINST=1 flag to the install phase. That will remove the
older Getopt::Long modules in the @INC path perl uses to find modules.

Anyhow, if you type “perl -V” it will show you the search path it uses
to find modules. The first one found is the one used, so if
/usr/local is before /usr, you’re good to go.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/