8 Perl Modules are Not Detected by koha_perl_deps.pl on VDS (was Re: Installing Koha on CentOS+cPanel Hosting Server)
Hi all, On Mon, Jun 4, 2012 at 7:07 PM, Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> wrote:
Hi,
cPanel only provides Perl 5.8, but Perl module Modern::Perl can only be installed on Perl 5.10 environment[1].
Koha (last versions) can only be installed on Perl >= 5.10
What do you think?
In a situation like yours, I have downloaded and compiled Perl (on /usr/local, 5.14), then I installed all the required modules from CPAN (a long long work) Then Koha. It works.
Get rid of cPanel and start providing Perl modules based on CentOS environment will simplify the installing process of Koha?
My advice would be not to touch anything in the system. Only install what is needed by Koha in /usr/local
I'm running Perl 5.16 now, installed manually in /usr/local directory: # perl -v | grep version This is perl 5, version 16, subversion 0 (v5.16.0) built for x86_64-linux Then trying to see whether all required Perl modules are already installed or not. But unfortunately something happened: There are 8 left, not detected by 'koha_perl_deps.pl' script [0], though these modules are already in place: cpan[1]> install CGI Reading '/root/.cpan/Metadata' Database was generated on Sat, 23 Jun 2012 16:47:04 GMT CGI is up to date (3.59). cpan[2]> install CGI::Carp CGI::Carp is up to date (3.51). cpan[3]> install Digest::SHA Digest::SHA is up to date (5.71). cpan[4]> install HTTP::OAI HTTP::OAI is up to date (3.28). cpan[5]> install Net::Z3950::ZOOM Net::Z3950::ZOOM is up to date (1.28). cpan[6]> install Template::Plugin::HtmlToText Template::Plugin::HtmlToText is up to date (0.03). cpan[7]> install Test::Harness Test::Harness is up to date (3.25). cpan[8]> install Test::More Test::More is up to date (0.98). [0] http://paste.opensuse.org/view/simple/94354226 Does it mean that the Perl environment is not configured properly? How to solve this issue? Any help will be very much appreciated. Thanks in advance. Best regards, -- Andi Sugandi.
Andi, how are you executing koha_perl_deps.pl? koha_perl_deps.pl has as first line "#!/usr/bin/perl", then if you execute it like "./koha_perl_deps.pl" then the "old" interpreter could not find your modules. Try "/usr/local/bin/perl koha_perl_deps.pl" -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Mon, Jun 25, 2012 at 5:12 AM, Andi Sugandi <andisugandi@gmail.com> wrote:
Hi all,
On Mon, Jun 4, 2012 at 7:07 PM, Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> wrote:
Hi,
cPanel only provides Perl 5.8, but Perl module Modern::Perl can only be installed on Perl 5.10 environment[1].
Koha (last versions) can only be installed on Perl >= 5.10
What do you think?
In a situation like yours, I have downloaded and compiled Perl (on /usr/local, 5.14), then I installed all the required modules from CPAN (a long long work) Then Koha. It works.
Get rid of cPanel and start providing Perl modules based on CentOS environment will simplify the installing process of Koha?
My advice would be not to touch anything in the system. Only install what is needed by Koha in /usr/local
I'm running Perl 5.16 now, installed manually in /usr/local directory:
# perl -v | grep version This is perl 5, version 16, subversion 0 (v5.16.0) built for x86_64-linux
Then trying to see whether all required Perl modules are already installed or not. But unfortunately something happened: There are 8 left, not detected by 'koha_perl_deps.pl' script [0], though these modules are already in place:
cpan[1]> install CGI Reading '/root/.cpan/Metadata' Database was generated on Sat, 23 Jun 2012 16:47:04 GMT CGI is up to date (3.59).
cpan[2]> install CGI::Carp CGI::Carp is up to date (3.51).
cpan[3]> install Digest::SHA Digest::SHA is up to date (5.71).
cpan[4]> install HTTP::OAI HTTP::OAI is up to date (3.28).
cpan[5]> install Net::Z3950::ZOOM Net::Z3950::ZOOM is up to date (1.28).
cpan[6]> install Template::Plugin::HtmlToText Template::Plugin::HtmlToText is up to date (0.03).
cpan[7]> install Test::Harness Test::Harness is up to date (3.25).
cpan[8]> install Test::More Test::More is up to date (0.98).
[0] http://paste.opensuse.org/view/simple/94354226
Does it mean that the Perl environment is not configured properly? How to solve this issue?
Any help will be very much appreciated.
Thanks in advance.
Best regards, -- Andi Sugandi.
Hi Bernardo, Thanks again to clear my mind and help my problems. On Mon, Jun 25, 2012 at 8:28 PM, Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> wrote:
how are you executing koha_perl_deps.pl?
koha_perl_deps.pl has as first line "#!/usr/bin/perl", then if you execute it like "./koha_perl_deps.pl" then the "old" interpreter could not find your modules.
Yes, I was running: "./koha_perl_deps.pl -m"
Try "/usr/local/bin/perl koha_perl_deps.pl"
Then I've got a lot additional messages there: http://paste.opensuse.org/view/simple/70367177 These 2 modules now are true not yet installed on my system (see link above) : DateTime::Format::DateParse Graphics::Magick So, I install this 'DateTime::Format::DateParse' Perl module vi cpan: http://paste.opensuse.org/view/simple/6342828 But cpan failed to install the other one, 'Graphics::Magick' : -------------------begin-of-script-------------------------- cpan[2]> install Graphics::Magick Warning: Cannot install Graphics::Magick, don't know what it is. Try the command i /Graphics::Magick/ to find objects with matching identifiers. -------------------end-of-script-------------------------- Then, how now to install 'Graphics::Magick' perl Module via cpan? Thanks in advance. Best regards, -- Andi Sugandi.
Then I've got a lot additional messages there: http://paste.opensuse.org/view/simple/70367177
Many of the messages are harmless, you only need to do something about
Andi, On Mon, Jun 25, 2012 at 12:13 PM, Andi Sugandi <andisugandi@gmail.com>wrote: them if they begin to fill you Koha logs. They are pehaps due to using a bleeding edge Perl interpreter.
Then, how now to install 'Graphics::Magick' perl Module via cpan?
You can't. Download the source from (http://www.graphicsmagick.org/), inside the source tree is a PerlMagick directory. Compile from that.
Bernardo
Bernardo, On Mon, Jun 25, 2012 at 11:11 PM, Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> wrote:
On Mon, Jun 25, 2012 at 12:13 PM, Andi Sugandi <andisugandi@gmail.com> wrote:
Then I've got a lot additional messages there: http://paste.opensuse.org/view/simple/70367177
Many of the messages are harmless, you only need to do something about them if they begin to fill you Koha logs. They are pehaps due to using a bleeding edge Perl interpreter.
Thanks for pointing me out about it.
Then, how now to install 'Graphics::Magick' perl Module via cpan?
You can't. Download the source from (http://www.graphicsmagick.org/), inside the source tree is a PerlMagick directory. Compile from that.
Is it necessary to remove these (installed RPM) package: # rpm -qa *\Graphics\* GraphicsMagick-1.3.14-1.el6.x86_64 GraphicsMagick-perl-1.3.14-1.el6.x86_64 Or it's safe to leave them untouched, then compile-install GraphicsMagick from: http://nchc.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.16/... ? Thanks. Best regards, -- Andi Sugandi.
Andi,
Is it necessary to remove these (installed RPM) package:
# rpm -qa *\Graphics\* GraphicsMagick-1.3.14-1.el6.x86_64 GraphicsMagick-perl-1.3.14-1.el6.x86_64
Or it's safe to leave them untouched, then compile-install GraphicsMagick from:
http://nchc.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.16/...
?
I think it's safe to leave them, if you install the new version on /usr/local/*.
One more thing: when you do the installation of Koha there are some files that may have the wrong "shebang" line (#!/usr/bin/perl instead of #!/usr/local/bin/perl). Run (on /usr/share/koha) something like this # for i in $( egrep -Rl "/usr/bin/perl" * ); do perl -i -pne 's|\#\!\s*/usr/bin/perl|\#\!/usr/local/bin/perl|;' $i; done to fix them (there are a few files that are missed by fix-perl-path.PL) Bernardo
Hi Bernardo, On Tue, Jun 26, 2012 at 1:07 AM, Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> wrote: [...]
One more thing: when you do the installation of Koha there are some files that may have the wrong "shebang" line (#!/usr/bin/perl instead of #!/usr/local/bin/perl).
Run (on /usr/share/koha) something like this
What if I install Koha on /home/library/public_html/cgi-bin directory (single installation)? Running the same command?
# for i in $( egrep -Rl "/usr/bin/perl" * ); do perl -i -pne 's|\#\!\s*/usr/bin/perl|\#\!/usr/local/bin/perl|;' $i; done
Thanks in advance. Best regards, -- Andi Sugandi.
On Mon, Jun 25, 2012 at 10:13:35PM +0700, Andi Sugandi wrote:
koha_perl_deps.pl has as first line "#!/usr/bin/perl", then if you execute it like "./koha_perl_deps.pl" then the "old" interpreter could not find your modules.
Yes, I was running: "./koha_perl_deps.pl -m"
Try "/usr/local/bin/perl koha_perl_deps.pl"
It might be ab idea to change that script's shebang line to #!/usr/bin/env perl which is a bit more portable
But cpan failed to install the other one, 'Graphics::Magick' :
-------------------begin-of-script--------------------------
cpan[2]> install Graphics::Magick Warning: Cannot install Graphics::Magick, don't know what it is. Try the command
i /Graphics::Magick/
to find objects with matching identifiers.
-------------------end-of-script--------------------------
Then, how now to install 'Graphics::Magick' perl Module via cpan?
You can't install Graphics::Magick from cpan as its not been uploaded there. To get the perl library you have to compile it as part of a graphics magick install. But it is only used in a specific subsystem in koha so not having it should not be a problem. Cheers Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
participants (3)
-
Andi Sugandi -
Bernardo Gonzalez Kriegel -
Colin Campbell