Redhat Enterprise 5.5 install errors

Hi all,

I am trying to install RT 3.8.8 on a RedHat Enterprise 5.5 server. I’ve been able to get most of the dependencies installed except I am running into an XML::RSS dependencies error and an XML::Parser error. Has anyone else run into this issue installing RT on RHEL5 servers? Does anyone have any suggestions?

Thanks,

Jeff

Enter into Perl:
perl -MCPAN -e shell

Have perl recomend updateds:
r

Update the XML::RSS and XML::Parser modules and any others that RT is
using.

Kevin W. Gagel

Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagelOn Friday 09/07/2010 at 12:37 pm, “Lee, Jeffrey” wrote:

Hi all,

I am trying to install RT 3.8.8 on a RedHat Enterprise 5.5 server.
I’ve been able to get most of the dependencies installed except I am
running into an XML::RSS dependencies error and an XML::Parser error.
Has anyone else run into this issue installing RT on RHEL5 servers?
Does anyone have any suggestions?

Thanks,

Jeff

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email.
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

It states that all modules are up to date for XML::RSS and XML::Parser. But I am still running into a dependencies fail when I run make fixdeps.

-JeffFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Gagel
Sent: Friday, July 09, 2010 3:46 PM
To: RT Users
Subject: Re: [rt-users] Redhat Enterprise 5.5 install errors

Enter into Perl:
perl -MCPAN -e shell

Have perl recomend updateds:
r

Update the XML::RSS and XML::Parser modules and any others that RT is using.

Kevin W. Gagel
Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

You’ll have to tackle them one at a time then…

Kevin W. Gagel
Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

— Original message —
Subject: RE: [rt-users] Redhat Enterprise 5.5 install errors
From: “Lee, Jeffrey” jeffrey_lee@harvard.edu
To: Kevin Gagel gagel@cnc.bc.ca, RT Users
RT-Users@lists.bestpractical.com
Date: Friday, 09/07/2010 12:53 PM

It states that all modules are up to date for XML::RSS and
XML::Parser. But I am still running into a dependencies fail when I
run make fixdeps.

-Jeff

From:rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Gagel
Sent: Friday, July 09, 2010 3:46 PM
To: RT Users
Subject: Re: [rt-users] Redhat Enterprise 5.5 install errors

Enter into Perl:
perl -MCPAN -e shell

Have perl recomend updateds:
r

Update the XML::RSS and XML::Parser modules and any others that RT is
using.

Kevin W. Gagel

Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

Hi all,

I am trying to install RT 3.8.8 on a RedHat Enterprise 5.5 server.
I’ve been able to get most of the dependencies installed except I am
running into an XML::RSS dependencies error and an XML::Parser error.
Has anyone else run into this issue installing RT on RHEL5 servers?
Does anyone have any suggestions?

Thanks,

Jeff

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email.
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

This is the error I’m getting from testdependencies:

XML::RSS …MISSING
Can’t locate XML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/rt3.8.8) at /usr/lib/perl5/site_perl/5.8.8/XML/RSS.pm line 7.

And here is s snippet of the error I get from CPAN when I try to install XML::Parser

Expat.c:2917: warning: ISO C90 forbids mixed declarations and code
Expat.xs:2194: error: ‘parser’ undeclared (first use in this function)
Expat.xs:2205: warning: unused variable ‘pret’
Expat.xs:2194: warning: unused variable ‘cbv’
Expat.xs:2192: warning: unused variable ‘type’
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.36-ak0ybX/Expat’
make: *** [subdirs] Error 2
MSERGEANT/XML-Parser-2.36.tar.gz
/usr/bin/make – NOT OK
Running make test
Can’t test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
MSERGEANT/XML-Parser-2.36.tar.gz : make NO

I’m not sure what more I can do.

-JeffFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Gagel
Sent: Friday, July 09, 2010 4:02 PM
Cc: RT Users
Subject: Re: [rt-users] Redhat Enterprise 5.5 install errors

You’ll have to tackle them one at a time then…

Kevin W. Gagel
Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

cd into:
/root/.cpan/build/XML-Parser-2.36-ak0ybX

I’ve found that I can trace problem’s a little better by trying to do
it manually.
Try running make from there and see if you get anything more meaning
full in terms of error messages.
If make works then try “make test”. That may or may not work. If does
and says something to the effect that is was successful then run “make
install”.

Beyond that I don’t think I help you much more. At least not unless
there are more meaning full error messages at that level.

Kevin W. Gagel
Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

— Original message —
Subject: RE: [rt-users] Redhat Enterprise 5.5 install errors
From: “Lee, Jeffrey” jeffrey_lee@harvard.edu
To: Kevin Gagel gagel@cnc.bc.ca
Cc: RT Users RT-Users@lists.bestpractical.com
Date: Friday, 09/07/2010 1:14 PM

This is the error I’m getting from testdependencies:

XML::RSS …MISSING
Can’t locate XML/Parser.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8
/usr/local/rt3.8.8) at /usr/lib/perl5/site_perl/5.8.8/XML/RSS.pm line
7.

And here is s snippet of the error I get from CPAN when I try to
install XML::Parser

Expat.c:2917: warning: ISO C90 forbids mixed declarations and code
Expat.xs:2194: error: ‘parser’ undeclared (first use in this
function)
Expat.xs:2205: warning: unused variable ‘pret’
Expat.xs:2194: warning: unused variable ‘cbv’
Expat.xs:2192: warning: unused variable ‘type’
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory
`/root/.cpan/build/XML-Parser-2.36-ak0ybX/Expat’
make: *** [subdirs] Error 2
MSERGEANT/XML-Parser-2.36.tar.gz
/usr/bin/make – NOT OK
Running make test
Can’t test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
MSERGEANT/XML-Parser-2.36.tar.gz : make NO

I’m not sure what more I can do.

-Jeff

From:rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Gagel
Sent: Friday, July 09, 2010 4:02 PM
Cc: RT Users
Subject: Re: [rt-users] Redhat Enterprise 5.5 install errors

You’ll have to tackle them one at a time then…

Kevin W. Gagel
Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

— Original message —
Subject: RE: [rt-users] Redhat Enterprise 5.5 install errors
From: “Lee, Jeffrey” jeffrey_lee@harvard.edu
To: Kevin Gagel gagel@cnc.bc.ca, RT Users
RT-Users@lists.bestpractical.com
Date: Friday, 09/07/2010 12:53 PM

It states that all modules are up to date for XML::RSS and
XML::Parser. But I am still running into a dependencies fail when I
run make fixdeps.

-Jeff

From:rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Gagel
Sent: Friday, July 09, 2010 3:46 PM
To: RT Users
Subject: Re: [rt-users] Redhat Enterprise 5.5 install errors

Enter into Perl:
perl -MCPAN -e shell

Have perl recomend updateds:
r

Update the XML::RSS and XML::Parser modules and any others that RT is
using.

Kevin W. Gagel

Network Administrator
College of New Caledonia
My Blog:
http://mail.cnc.bc.ca/blogs/gagel
My Shared Files:
http://mail.cnc.bc.ca/users/gagel

Hi all,

I am trying to install RT 3.8.8 on a RedHat Enterprise 5.5 server.
I’ve been able to get most of the dependencies installed except I am
running into an XML::RSS dependencies error and an XML::Parser error.
Has anyone else run into this issue installing RT on RHEL5 servers?
Does anyone have any suggestions?

Thanks,

Jeff

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

The College of New Caledonia
Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email.
Anti-spam information for CNC can be found at http://gateway.cnc.bc.ca

Enter into Perl:
perl -MCPAN -e shell

Have perl recomend updateds:
r

Update the XML::RSS and XML::Parser modules and any others that RT is
using.

Sorry for the delay in replying to this, I have been on medical leave.

IMHO you are much better off using cpanspec instead of CPAN. In
conjunction with a local yum repo it allows you to redeploy, duplicate,
and update your current production system with greater ease. cpanspec is
available in the EPEL repository [1].

The idea is to run cpanspec on your development machine, push the RPMs
in to a local yum repo, then install the RPMs on your server from there.

The downside is that you have to manually build the dependency tree,
which isn’t so big for RT3. Once you have the packages in a local yum
repo updating them is simple.

Couple of gotchas with cpanspec:

1: Sometimes it misses arch specific files, like man1/* or scripts, just
add the files to the %files section in the generated spec file and
rebuild it. rpmbuild will tell you which files are not packaged.

2: To upgrade core modules you need to be a little sneaky, since you
will get file clashes when trying to install the new RPM. This can be
overcome by modifying the spec file.

2A: Modify the build line to use an earlier path.

e.g. ExtUtils::MakeMaker has script, man1, and man3 files that clash, so
lets push those files in to paths used before the core path:

[]$ cpanspec ExtUtils::MakeMaker

perl-ExtUtils-MakeMaker.spec is the spec file generated by cpanspec

perl-ExtUtils-MakeMaker.spec.noclashes is the spec file edited to avoid
file clashes

[]$ diff -u perl-ExtUtils-MakeMaker.spec
perl-ExtUtils-MakeMaker.spec.noclashes

@@ -20,7 +20,7 @@
%setup -q -n ExtUtils-MakeMaker-%{version}

%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor
INSTALLVENDORSCRIPT=/usr/local/bin INSTALLVENDORBIN=/usr/local/bin
INSTALLVENDORMAN1DIR=/usr/local/share/man/man1
INSTALLVENDORMAN3DIR=/usr/local/share/man/man3
make %{?_smp_mflags}

%install
@@ -43,8 +43,10 @@
%defattr(-,root,root,-)
%doc Changes NOTES PATCHING README TODO
%{perl_vendorlib}/*
-%{_mandir}/man3/*
+/usr/local/share/man/man3/*
+/usr/local/share/man/man1/*
+/usr/local/bin/instmodsh

The above changes move the perl files from the default path in to the
vendor path, and moves the scripts and man pages in to /usr/local/. All
of these paths come earlier in the search for files, so this effectively
over rides these files without affecting the files shipped by Red Hat.

2B: There are similar options to INSTALLVENDORSCRIPT et.al for
Module::Build based modules. See the “INSTALL PATHS” section in the
Module::Build man page. If you see Build.PL instead of Makefile.PL then
it’s using Module::Build.

2C: If there are clashes with files in the vendor directories, then use
site, it is searched before vendor.

e.g.:

%{__perl} Makefile.PL INSTALLDIRS=site
INSTALLSITEMAN3DIR=/usr/local/share/man/man3

I’ve found this approach not only makes maintaining RT3 systems on RHEL
much easier, it also makes sys-admins much less grumpy … which is
always a good thing for ones health and well being! [2]

Hope this helps.

Cheers, Jeff.

[1] http://fedoraproject.org/wiki/EPEL/FAQ#Using_EPEL
[2] http://www.theregister.co.uk/odds/bofh/