Problem with perl(YAML::XS)

Moderator: crythias

Post Reply
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Problem with perl(YAML::XS)

Post by cfreire »

Hi, I have a problem in my OTRS 4.11 on a Centos 6.7, when I check the perl modules /opt/otrs/bin/otrs.CheckModules.pl I receive:

------
-------
o Crypt::Eksblowfish::Bcrypt.......Not installed! Use: 'yum install "perl(Crypt::Eksblowfish::Bcrypt)"' (optional - For strong password hashing.)
o YAML::XS.........................Not installed! Use: 'yum install "perl(YAML::XS)"' (required - Very important)
etc
and other modules are not instaled. I tried to install them with:
yum install "perl(YAML::XS)"

or with

yum install "perl(Crypt::Eksblowfish::Bcrypt)" "perl(DBD::ODBC)" "perl(DBD::Oracle)" "perl(DBD::Pg)" "perl(Encode::HanExtra)" "perl(GD)" "perl(GD::Text)" "perl(GD::Graph)" "perl(JSON::XS)" "perl(Mail::IMAPClient)" "perl(PDF::API2)" "perl(Text::CSV_XS)" "perl(YAML::XS)"

but I receive the error "There is no package available" "Nothing to do" Whyyyy?? Can you help me with this??? Thanks.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with perl(YAML::XS)

Post by reneeb »

YAML::XS seems to be missing in many repositories. You could install it via the cpan client:

Code: Select all

cpan YAML::XS
If you're useing the cpan client for the first time, you have to configure it (just run the client, it will ask to some questions)...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

I did cpan YAML::XS but I received:

-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/CORE" -DHAVE_CONFIG_H api.c
/bin/sh: gcc: no se encontró la orden
make[1]: *** [api.o] Error 127
make[1]: se sale del directorio `/root/.cpan/build/YAML-LibYAML-0.59-Me1KoK/LibYAML'
make: *** [subdirs] Error 2
INGY/YAML-LibYAML-0.59.tar.gz
/usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

What else can I do?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Problem with perl(YAML::XS)

Post by RStraub »

You don't have the compiler "make".
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

mmmmm,.... it is propable, but what can I do to solved it? =/
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Problem with perl(YAML::XS)

Post by RStraub »

From another thread (viewtopic.php?t=19013), did you try:
yum install perl-YAML-LibYAML
?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

I did yum install perl-YAML-LibYAML and received:

* base: mirror.espoch.edu.ec
* extras: mirror.espoch.edu.ec
* updates: mirror.espoch.edu.ec
No existe disponible ningún paquete perl-YAML-LibYAML.

Where I replace mirror.espoch.edu.ec by a mirror that contains the module perl-YAML-LibYAML.?
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: Problem with perl(YAML::XS)

Post by eandrex »

Try these:

Instal epel

Code: Select all

yum install -y epel-release
After that, try

Code: Select all

yum install -y "perl(YAML::XS)"
or the one you just tried

Code: Select all

yum install -y perl-YAML-XS
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

Excelent eandres, it was usefull to me. :) :)
Please May you explain to me what was the problem? :D
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

eandrex wrote:Try these:

Instal epel

Code: Select all

yum install -y epel-release
After that, try

Code: Select all

yum install -y "perl(YAML::XS)"
or the one you just tried

Code: Select all

yum install -y perl-YAML-XS


Excelent eandres, it was usefull to me. :) :)
Please May you explain to me what was the problem? :D
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: Problem with perl(YAML::XS)

Post by eandrex »

Well, the problem could be that perl-YAML-XS was not available in standard Centos 6 packages repositories, so by installing EPEL (https://fedoraproject.org/wiki/EPEL) you expand the repositories of your system, so whenever you want to install a desired package, your system will look up in the installed repositories too.. in this case, perl-YAML-XS was found in the EPEL repository.
cfreire
Znuny newbie
Posts: 59
Joined: 24 Aug 2015, 16:40
Znuny Version: 3.3.x
Real Name: Carlos Freire
Company: Palosanto

Re: Problem with perl(YAML::XS)

Post by cfreire »

eandrex wrote:Well, the problem could be that perl-YAML-XS was not available in standard Centos 6 packages repositories, so by installing EPEL (https://fedoraproject.org/wiki/EPEL) you expand the repositories of your system, so whenever you want to install a desired package, your system will look up in the installed repositories too.. in this case, perl-YAML-XS was found in the EPEL repository.

Excellent.. Thank you very much for your help and thanks to all people. =) =)
Post Reply