Hi Everyone
I am migrating OTRS form redhat 5 to redhat 7, I followed this guide to get file to new server.
https://www.claudiokuenzler.com/blog/40 ... I618rZ94W8
My database is installed on seperate server, so when I run /opt/otrs/bin/otrs.CheckDB.pl it give me follow error message
Can't locate Data/Dumper.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/otrs/Kernel/System/Main.pm line 18.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/Main.pm line 18.
Compilation failed in require at /opt/otrs/bin/otrs.CheckDB.pl line 40.
BEGIN failed--compilation aborted at /opt/otrs/bin/otrs.CheckDB.pl line 40.
I assume that is because I didnt have enough perl module installed, so I did following commend to install missing modules
yum install `/opt/otrs/bin/otrs.CheckModules.pl | grep 'Not installed' | sed 's/^ *o //;s/\.\.\..*//;s/\(.*\)/"perl\(\1\)"/' | tr '\n' ' '`
but I got following error
defined(@array) is deprecated at /opt/otrs/Kernel/cpan-lib/CGI.pm line 528.
(Maybe you should just omit the defined()?)
Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
No package "perl(Date::Format)" available.
No package "perl(DBI)" available.
No package "perl(DBD::mysql)" available.
No package "perl(Encode::HanExtra)" available.
No package "perl(GD)" available.
No package "perl(GD::Text)" available.
No package "perl(GD::Graph)" available.
No package "perl(GD::Graph::lines)" available.
No package "perl(GD::Text::Align)" available.
No package "perl(JSON::XS)" available.
No package "perl(LWP::UserAgent)" available.
No package "perl(IO::Socket::SSL)" available.
No package "perl(ModPerl::Util)" available.
No package "perl(Apache::DBI)" available.
No package "perl(Apache2::Reload)" available.
No package "perl(Net::DNS)" available.
No package "perl(Net::IMAP::Simple::SSL)" available.
No package "perl(Net::SMTP::SSL)" available.
No package "perl(Net::SMTP::TLS::ButMaintainedNot available.
No package installed! available.
No package (Optional available.
No package Required available.
No package for available.
No package TLS/SMTP available.
No package connections.))" available.
No package "perl(Net::LDAP)" available.
No package "perl(PDF::API2)" available.
No package "perl(Compress::Zlib)" available.
No package "perl(SOAP::Lite)" available.
No package "perl(Text::CSV_XS)" available.
No package "perl(XML::Parser)" available.
Nothing to do
anyone know why is that happened? and how to fix it?
Thanks in advance
Regards
Sam
Migrate OTRS from RH5 to RH7
Moderator: crythias
-
- Znuny newbie
- Posts: 5
- Joined: 25 Jan 2017, 06:09
- Znuny Version: 5.0.0
- Real Name: Sam Guo
- Company: Australian National University
Re: Migrate OTRS from RH5 to RH7
Find the work around solution
if you run yum install "perl (xxxxxxx)" one by one manually, system can find the required packet.
seems stupid but it work. anyone know why?
if you run yum install "perl (xxxxxxx)" one by one manually, system can find the required packet.
seems stupid but it work. anyone know why?
-
- Administrator
- Posts: 4253
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Migrate OTRS from RH5 to RH7
I've no idea why. And I would never follow the instruction you did because for RHEL/CentOS there are well maintained RPMs available. With the latest OTRS 5 will be installed with the most dependencies - including adding the user. After this, only the configuration filles needs to be copied, the database imported and packages reinstalled and you're almost done.
Code: Select all
yum install http://ftp.otrs.org/pub/otrs/RPMS/rhel/7/otrs-5.0.16-01.noarch.rpm
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?