<div dir="ltr">Thaks a lot Bill,<div><br></div><div>This answer helped me to install rt 4.2.12 on Centos 7 solving my perl modules problems because they were installed on /root/perl5/ </div><div><br></div><div>Regards,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 23, 2015 at 4:06 PM, Bill Cole <span dir="ltr"><<a href="mailto:rtusers-20090205@billmail.scconsult.com" target="_blank">rtusers-20090205@billmail.scconsult.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 23 Nov 2015, at 11:02, dwdixon wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not an Apache/httpd configuration<br>
expert especially when modules are involved so I would GREATLY appreciate<br>
any and all help:<br>
<br>
****************************************************************************<br>
Can't locate UNIVERSAL/<a href="http://require.pm" rel="noreferrer" target="_blank">require.pm</a> in @INC (@INC contains:<br>
/opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/local/lib64/perl5<br>
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl<br>
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at<br>
/opt/rt4/sbin/../lib/RT.pm line 60.<br>
BEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT.pm line 60.<br>
Compilation failed in require at /opt/rt4/sbin/rt-server.fcgi line 86.<br>
****************************************************************************<br>
</blockquote>
<br></span>
As others have noted, using CPAN on CentOS 7 can be sketchy. It's very easy to be drawn into installing modules locally under /root/perl5/ where normal Perl programs won't ever see them or clobbering files owned by yum-installed packages. Care is needed...<br>
<br>
For the immediate issue, you can resolve the problem by enabling the EPEL repository for yum (see <a href="https://fedoraproject.org/wiki/EPEL" rel="noreferrer" target="_blank">https://fedoraproject.org/wiki/EPEL</a>) and installing the needed module:<br>
<br>
yum install perl-UNIVERSAL-require<br>
<br>
HOWEVER, since you have had stuff installed (presumably by CPAN and a local::lib configuration) in a private place only for use by root with suitable variables in the environment, you probably want to fix that[1] and install everything possible for RT via yum, filling in whatever is missing with CPAN *NOT* using a private module tree. I recently did this for a RT4.4rc1 install on CentOS 7 by massaging the output of "make testdeps" into a whopping huge yum command[2]:<br>
<br>
make testdeps |fgrep MISSING |egrep -v ' (owner|group) |>=5\.10\.'|awk '{print $1}'|sort -u |sed 's/::/-/g'|sed 's/^/perl-/'| xargs -rt yum list|grep '^perl-' |awk '{print $1}' |xargs -rt yum install -y<br>
<br>
Following that (go get a cup of coffee, it will be a while...) you MAY still have unmet dependencies, since RT demands various modules and versions of modules that the EPEL and "base" repos don't have. Those can be installed from CPAN (or 'make fixdeps') after "yum erase"-ing any too-old versions that were installed with yum.<br>
<br>
<br>
FOOTNOTES:<br>
<br>
[1] Wipe the private tree for root:<br>
<br>
rm -rf /root/perl5/<br>
<br>
Remove any lines from /root/.bashrc or /root/.bash_profile like these<br>
which set up the relevant environment variables for local::lib :<br>
<br>
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";<br>
export PERL_MB_OPT="--install_base /root/perl5";<br>
export PERL_MM_OPT="INSTALL_BASE=/root/perl5";<br>
export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";<br>
export PATH="/root/perl5/bin:$PATH";<br>
<br>
<br>
[2] ARE YOU CRAZY? Don't just run that because I said so! Be sure you understand what it DOES! Test it by breaking the pipeline before that last xargs and see if what it's going to install seems sane FOR YOUR SYSTEM.<br>
</blockquote></div><br></div>