Perl Modules Problem+ Check if all needed modules are installed

Moderator: crythias

Post Reply
skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 22 May 2018, 14:12

Hello All,

i am trying to install otrs 3.3.6 on ubuntu 18.4, but i had problem in the following step in the guide:

Step 5: Check if all needed modules are installed
shell> perl -cw /opt/otrs/bin/cgi-bin/index.pl
/opt/otrs/bin/cgi-bin/index.pl syntax OK

shell> perl -cw /opt/otrs/bin/cgi-bin/customer.pl
/opt/otrs/bin/cgi-bin/customer.pl syntax OK

shell> perl -cw /opt/otrs/bin/otrs.PostMaster.pl
/opt/otrs/bin/otrs.PostMaster.pl syntax OK
i got always this error :
perl otrs.PostMasterMailbox.pl
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/
(&{ <-- HERE .+?})
/ at /opt/otrs/Kernel/System/HTMLUtils.pm line 1042.
Compilation failed in require at /opt/otrs/Kernel/System/EmailParser.pm line 15.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/EmailParser.pm line 15.
Compilation failed in require at /opt/otrs/Kernel/System/PostMaster.pm line 15.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/PostMaster.pm line 15.
Compilation failed in require at otrs.PostMasterMailbox.pl line 40.
BEGIN failed--compilation aborted at otrs.PostMasterMailbox.pl line 40.
And i checked the Perl Modules :
otrs@otrsserver:/opt/otrs/bin$ perl otrs.CheckModules.pl
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Crypt::SSLeay....................ok (v0.73_04)
o Date::Format.....................ok (v2.24)
o DBI..............................ok (v1.640)
o DBD::mysql.......................ok (v4.046)
o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.)
o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o DBD::Pg..........................Not installed! (optional - Required to connect to a PostgreSQL database.)

o Encode::HanExtra.................ok (v0.23)
o GD...............................ok (v2.66)
o GD::Text.......................ok (v0.86)
o GD::Graph......................ok (v1.48)
o IO::Socket::SSL..................ok (v2.056)
o JSON::XS.........................ok (v3.04)
o List::Util::XS...................ok (v1.46_02)
o LWP::UserAgent...................FAILED! Not all prerequisites for this module correctly installed.
o Mail::IMAPClient.................ok (v3.39)
o IO::Socket::SSL................ok (v2.056)
o ModPerl::Util....................ok (v2.000010)
o Net::DNS.........................ok (v1.10)
o Net::LDAP........................ok (v0.65)
o Net::SSL.........................ok (v2.88)
o PDF::API2........................ok (v2.033)
o Compress::Zlib.................ok (v2.074)
o Text::CSV_XS.....................ok (v1.34)
o Time::HiRes......................ok (v1.9741)
o XML::Parser......................ok (v2.44)
o YAML::XS.........................ok (v0.69)

I am not sure if o LWP::UserAgent is the reason for my problem, but when i am trying to install LWP::UserAgent using cpan, it is saying it is up to date v6.33 and if i am trying to install it using sudo apt-get install. it is saying : E: unable to locate Package LWP::UserAgent
I used also apt-cache search LWP::UserAgent to find all libs then i installed all of them with apt-get install
Could anyone help me please?
Thanks in advance

fcasal
OTRS wizard
Posts: 142
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.7

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by fcasal » 22 May 2018, 14:27

The problem is to install an old version of otrs into a very new os. Installa ubuntu 16.4 instead and try again.

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 22 May 2018, 14:40

fcasal wrote:The problem is to install an old version of otrs into a very new os. Installa ubuntu 16.4 instead and try again.
Actually i will install later OTRS 6 but for now i must install otrs 3.3.6 first because we should doing the update step by step . (we have already otrs3.3.6)
Is there any another solution? because i set up a lot of settings on this Ubuntu.

fcasal
OTRS wizard
Posts: 142
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.7

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by fcasal » 22 May 2018, 16:15

I don´t think so becuase it retuns compilation errors. I am going to tell you how I would do:

1. Install Ubuntu 16.04 (in another machine, for example)
2. Migrate from otrs windows 3.3.6 to this ubuntu to otrs 3.3.6
3. Update until OTRS last version
4. Migrate to the first 18.4 machine

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 23 May 2018, 08:43

fcasal wrote:I don´t think so becuase it retuns compilation errors. I am going to tell you how I would do:

1. Install Ubuntu 16.04 (in another machine, for example)
2. Migrate from otrs windows 3.3.6 to this ubuntu to otrs 3.3.6
3. Update until OTRS last version
4. Migrate to the first 18.4 machine
okay, thanks for help.

zzz
OTRS wizard
Posts: 197
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x - 6.0.x
Real Name: Emin
Company: maxence business consulting GmbH
Contact:

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by zzz » 23 May 2018, 10:01

Hello,

why don't you clone your existing VM and cut off the connection until all mail/cron settings are removed?

Best regards
Emin

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 23 May 2018, 13:11

zzz wrote:Hello,

why don't you clone your existing VM and cut off the connection until all mail/cron settings are removed?

Best regards
Emin
Hello Emin,
i did not set any settings for Emails.

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 23 May 2018, 13:13

fcasal wrote:I don´t think so becuase it retuns compilation errors. I am going to tell you how I would do:

1. Install Ubuntu 16.04 (in another machine, for example)
2. Migrate from otrs windows 3.3.6 to this ubuntu to otrs 3.3.6
3. Update until OTRS last version
4. Migrate to the first 18.4 machine
I have one question.
How could i run the web installer on ubuntu server then i could configure the database .
Thanks in advance

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 23 May 2018, 13:14

skilled wrote:
zzz wrote:Hello,

why don't you clone your existing VM and cut off the connection until all mail/cron settings are removed?

Best regards
Emin
Hello Emin,
i did not set any settings for Emails.
I made new VM with ubuntu 16.4

fcasal
OTRS wizard
Posts: 142
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.7

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by fcasal » 23 May 2018, 18:15

You should use the manual, but you can look at this topic https://amatijasec.wordpress.com/2017/0 ... -1-part-1/ you can find a way of installing otrs 5 in debian, or here https://itiramos.wordpress.com/2014/04/ ... 12-04-lts/

Try it.

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 24 May 2018, 10:10

fcasal wrote:You should use the manual, but you can look at this topic https://amatijasec.wordpress.com/2017/0 ... -1-part-1/ you can find a way of installing otrs 5 in debian, or here https://itiramos.wordpress.com/2014/04/ ... 12-04-lts/

Try it.
Sorry my question was about how to use web installer in GUI on ubuntu server because there is no GUI on Ubuntu, but i found it.
Anyway web installer until now i could not run it because it shows, the request /otrs was not found on this server when i am navigate
to : http://localhost/otrs/installer.pl
and .pl-file is served for download

fcasal
OTRS wizard
Posts: 142
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.7

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by fcasal » 24 May 2018, 16:28

if you are trying to access from another machine, different of the ubuntu server, you have to set the ip of the server instead of localhost.

skilled
OTRS newbie
Posts: 27
Joined: 11 Apr 2018, 13:53
OTRS Version?: 3.3.6

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by skilled » 25 May 2018, 08:47

fcasal wrote:if you are trying to access from another machine, different of the ubuntu server, you have to set the ip of the server instead of localhost.
No, i tried to access from the same machine(server) i installed Ubuntu Desktop on Server Ubuntu until i could test it

fcasal
OTRS wizard
Posts: 142
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.7

Re: Perl Modules Problem+ Check if all needed modules are installed

Post by fcasal » 25 May 2018, 18:08

If it is not working is probably you miss some step, so repeat the proccess could be a good option.

Post Reply