Re: [Koha-devel] Koha 3.4.02: Date::ICal and SMS::Send Perl modules issue on openSUSE 11.4
Hi, On Wed, Jul 6, 2011 at 3:21 PM, Andi Sugandi <andisugandi@gmail.com> wrote:
Koha installer *did not see* two Perl modules: the Date::ICal[1] (on koha's web installer) and SMS::Send[2] (after installed) though those were already installed from rpm package[3].
I also install SMS::Send Perl module via cpan but unfortunately Koha still does not see it[5] too. [5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink Koha bugs? *I send (cc) this e-mail to koha-devel too, hopefully can get faster feedback.* Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
Andi Sugandi
On Wed, Jul 6, 2011 at 3:21 PM, Andi Sugandi <andisugandi@gmail.com> wrote:
Koha installer *did not see* two Perl modules: the Date::ICal[1] (on koha's web installer) and SMS::Send[2] (after installed) though those were already installed from rpm package[3].
I also install SMS::Send Perl module via cpan but unfortunately Koha still does not see it[5] too.
[5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink
Koha bugs?
I think it's more probably a system misconfiguration somewhere. Thanks for the question, but to help with that, we need a bit more information. You probably need to tell us how to obtain the error, step-by-step if possible and if that process has worked for you before, with what Koha version. (The above is copy-pasta which you could avoid by reading the list archives before posting. I see many bug reports that are missing vital info like the above and this seems better than you getting no reply.) Where is the module on your system? (locate SMS/Send.pm should find it I think.) Which rpm package did you install and how? Also, is PERL5LIB set in the shell you are running cpan shell from? How did you install Koha? Following the INSTALL.opensuse instructions and updating them yourself for 3.4.2? Did you use zypper install perl-SMS-Send? When you installed SMS::Send Perl module via cpan what was the output? Please use http://paste.koha-community.org or similar if possible. By the way, that screenshot looks like it's from a running Koha, not the installer.
*I send (cc) this e-mail to koha-devel too, hopefully can get faster feedback.*
No, that just gets you flagged as a cross-post spammer and scored down so you're the last email I see that day. Please don't cross-post to the koha users list and koha-devel. Decide whether it's a user question or a development question and pick the right list, please. Many helpers get enough email without getting two copies of yours. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and LMS developer, statistician. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for Koha work http://www.software.coop/products/koha
Hi MJ Ray, On Thu, Jul 7, 2011 at 5:40 AM, MJ Ray <mjr@phonecoop.coop> wrote:
On Wed, Jul 6, 2011 at 3:21 PM, Andi Sugandi <andisugandi@gmail.com> wrote: I also install SMS::Send Perl module via cpan but unfortunately Koha still does not see it[5] too.
[5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink
Koha bugs?
I think it's more probably a system misconfiguration somewhere.
Probably, If so it will be easier to get done.
Thanks for the question, but to help with that, we need a bit more information. You probably need to tell us how to obtain the error, step-by-step if possible and if that process has worked for you before, with what Koha version.
(The above is copy-pasta which you could avoid by reading the list archives before posting. I see many bug reports that are missing vital info like the above and this seems better than you getting no reply.)
Where is the module on your system? (locate SMS/Send.pm should find it I think.)
Which rpm package did you install and how?
Also, is PERL5LIB set in the shell you are running cpan shell from?
How did you install Koha? Following the INSTALL.opensuse instructions and updating them yourself for 3.4.2? Did you use zypper install perl-SMS-Send?
When you installed SMS::Send Perl module via cpan what was the output? Please use http://paste.koha-community.org or similar if possible.
By the way, that screenshot looks like it's from a running Koha, not the installer.
*Yup, I will re-post the original mail.*
*I send (cc) this e-mail to koha-devel too, hopefully can get faster feedback.*
No, that just gets you flagged as a cross-post spammer and scored down so you're the last email I see that day. Please don't cross-post to the koha users list and koha-devel. Decide whether it's a user question or a development question and pick the right list, please. Many helpers get enough email without getting two copies of yours.
Really sorry, I wont do that anymore.
Hope that helps,
Thanks for these helps. Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
Hi Developers, I succeeded[0] installing Koha 3.4.02 on openSUSE 11.4[0] computer, but I found issues: Koha installer *did not see* two Perl modules: the Date::ICal[1] (on koha's web installer) and SMS::Send[2][5] (after installed) though those were already installed from rpm package[3]. UPDATE: KOHA_CONF and PERL5LIB environment variables: # env | grep KOHA KOHA_CONF=/etc/koha/koha-conf.xml # env | grep PERL5LIB PERL5LIB=/usr/share/koha/lib Any ideas how to fix the issues? If these can be solved so openSUSE Packagers can produce Koha (RPM) packgae easier. I ask Lars so we can collaborate to make Koha package (on OBS[4]) get available right after Koha upstream get its new release. Thanks in advance. [0] http://wiki.koha-community.org/wiki/Koha_3.0.0_on_openSUSE_11.3 https://picasaweb.google.com/lh/photo/y3bQwqI6ztDR2fkqxd9sCw?feat=directlink [1] https://picasaweb.google.com/lh/photo/DsNuIeGQOKkYZgyDh3ttPw?feat=directlink [2] https://picasaweb.google.com/lh/photo/QocVK9BwLL2ddv5GYa6O_g?feat=directlink [3]
rpm -qi perl-Date-ICal perl-SMS-Send | grep Distribution Distribution: devel:languages:perl / openSUSE_11.4 Distribution: devel:languages:perl / openSUSE_11.4
rpm -ql perl-Date-ICal /usr/lib/perl5/vendor_perl/5.12.3/Date/ICal /usr/lib/perl5/vendor_perl/5.12.3/Date/ICal.pm /usr/lib/perl5/vendor_perl/5.12.3/Date/ICal/Duration.pm /usr/share/doc/packages/perl-Date-ICal /usr/share/doc/packages/perl-Date-ICal/Changes /usr/share/doc/packages/perl-Date-ICal/README /usr/share/man/man3/Date::ICal.3pm.gz /usr/share/man/man3/Date::ICal::Duration.3pm.gz
rpm -ql perl-SMS-Send /usr/lib/perl5/vendor_perl/5.12.3/SMS /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send/AU /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send/AU/Test.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send/Driver.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send/Test.pm /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi/auto/SMS /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi/auto/SMS/Send /usr/share/doc/packages/perl-SMS-Send /usr/share/doc/packages/perl-SMS-Send/Changes /usr/share/doc/packages/perl-SMS-Send/MANIFEST /usr/share/doc/packages/perl-SMS-Send/README /usr/share/man/man3/SMS::Send.3pm.gz /usr/share/man/man3/SMS::Send::AU::Test.3pm.gz /usr/share/man/man3/SMS::Send::Driver.3pm.gz /usr/share/man/man3/SMS::Send::Test.3pm.gz
[4] http://en.opensuse.org/Build_Service [5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
On Thu, Jul 7, 2011 at 10:18 AM, Andi Sugandi <andisugandi@gmail.com> wrote:
I succeeded[0] installing Koha 3.4.02 on openSUSE 11.4[0] computer, but I found issues:
Koha installer *did not see* two Perl modules: the Date::ICal[1] (on koha's web installer) and SMS::Send[2][5] (after installed) though those were already installed from rpm package[3].
I filled bug for Date::ICal, #6560 [6] and SMS::Send, 6561 [7] issue respectively. [6] http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6560 [7] http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6561 So, please correct me if I'm doing wrong here. Thanks. Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
Andi Sugandi wrote: [...]
rpm -ql perl-SMS-Send /usr/lib/perl5/vendor_perl/5.12.3/SMS /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send.pm
Could you post the output of "perl -V" too, please? I don't have vendor_perl paths in my @INC but I guess openSUSE does different and I don't have access to one just now, as far as I know. In general, follow the INSTALL.opensuse file rather than the wiki, but I don't think it would make a difference in this case. Thanks, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. Webmaster, Debian Developer, Past Koha RM, statistician, former lecturer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for various work through http://www.software.coop/
Hi MJ Ray, On Fri, Jul 8, 2011 at 6:43 AM, MJ Ray <mjr@phonecoop.coop> wrote:
Could you post the output of "perl -V" too, please?
http://paste.koha-community.org/89
I don't have vendor_perl paths in my @INC but I guess openSUSE does different and I don't have access to one just now, as far as I know.
Yes, I can it tell now that Perl modules that come from vendor (I find openSUSE[8], Arch[9], & Gentoo using the same way ) uses /usr/lib/perl5/vendor_perl/5.12.3/ path (ex: it uses Perl 5.12.3) that contains its modules, otherwise that come from CPAN[10] will be placed in /usr/lib/perl5/site_perl/5.12.3/ directory. cmiiw, I think KOHA *only* failed to find Date::ICal and SMS:Send modules, others that installed by "zypper" (as also discribe in "Using zypper to install CPAN modules" section of INSTALL.opensuse file) can successfully be found. imho, This is a little weird as only those modules failed to be found when others can, but I will try on other machine (clean install) whether this issues are reproducible or not. Btw, I also made similar thread[11] on openSUSE-edu list in case the issue can be solved easier (& quicker). Thanks. [8] http://en.opensuse.org/openSUSE:Packaging_Perl#.25perl_vendorlib [9] https://wiki.archlinux.org/index.php/Perl_Package_Guidelines#File_Placement [10] http://en.opensuse.org/openSUSE:Packaging_Perl#.25perl_sitelib [11] http://lists.opensuse.org/opensuse-edu/2011-07/msg00001.html Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
Andi Sugandi wrote:
cmiiw, I think KOHA *only* failed to find Date::ICal and SMS:Send modules, others that installed by "zypper" (as also discribe in "Using zypper to install CPAN modules" section of INSTALL.opensuse file) can successfully be found.
imho, This is a little weird as only those modules failed to be found when others can, but I will try on other machine (clean install) whether this issues are reproducible or not.
Yeah, I don't get this. I'd expect all modules to fail or all packaged modules to fail or all cpan modules to fail, not just two. I feel like I must be missing something. The @INCs look OK to me. What does ./koha_perl_deps.pl -m output when you run it from the unpacked koha download's folder? If that doesn't report Date::ICal and SMS:Send as missing, then there's some environment difference between your webserver and your shell which causes this, but that's a big haystack :-(
Btw, I also made similar thread[11] on openSUSE-edu list in case the issue can be solved easier (& quicker). [11] http://lists.opensuse.org/opensuse-edu/2011-07/msg00001.html
Thanks for letting us know. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and LMS developer, statistician. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for Koha work http://www.software.coop/products/koha
On Fri, Jul 8, 2011 at 8:16 PM, MJ Ray <mjr@phonecoop.coop> wrote:
Yeah, I don't get this. I'd expect all modules to fail or all packaged modules to fail or all cpan modules to fail, not just two. I feel like I must be missing something.
Maybe I'd better make it to two separated threads to make this issues clearer: 1. Date::ICal, that failed[1] to find though it'd been installed from RPM. *But it's solved* by CPAN.[6] [6] http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6560 2. SMS:Send, that failed to find though it'd been installed from RPM *or* by CPAN.[7] [7] http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6561 Separated them now or we are good on just a single thread?
The @INCs look OK to me. What does ./koha_perl_deps.pl -m output when you run it from the unpacked koha download's folder?
http://paste.koha-community.org/90 cmiww. Now, it tells (again) that Koha does not find SMS:Send though it is already installed by: 1. RPM: https://picasaweb.google.com/lh/photo/QocVK9BwLL2ddv5GYa6O_g?feat=directlink # rpm -ql perl-SMS-Send | grep Send.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send.pm OR 2. CPAN: https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink
If that doesn't report Date::ICal and SMS:Send as missing, then there's some environment difference between your webserver and your shell which causes this, but that's a big haystack :-(
UPDATE: Wait a minute, I just already find other clue: If we installed a Perl module both from RPM and CPAN, we SHOULD find identical file (*.pm) on different path, right? Like: 1. ICal.pm: # locate ICal.pm /usr/lib/perl5/site_perl/5.12.3/Date/ICal.pm /usr/lib/perl5/vendor_perl/5.12.3/Data/ICal.pm /usr/lib/perl5/vendor_perl/5.12.3/Date/ICal.pm the 1'st line is installed by CPAN, and the last 2 lines by RPM. *But*, see it for: 2.SMS:Send # locate Send.pm /usr/lib/perl5/vendor_perl/5.12.3/Mail/Send.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send.pm *NO* Send.pm file installed by CPAN (although it was reported "SMS::Send is up to date (0.05)", see image below), those 2 files are just installed by RPM. [5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink So, bug (also) belongs to CPAN? Thanks. Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
On Fri, Jul 8, 2011 at 9:26 PM, Andi Sugandi <andisugandi@gmail.com> wrote:
*But*, see it for:
2.SMS:Send
# locate Send.pm /usr/lib/perl5/vendor_perl/5.12.3/Mail/Send.pm /usr/lib/perl5/vendor_perl/5.12.3/SMS/Send.pm
*NO* Send.pm file installed by CPAN (although it was reported "SMS::Send is up to date (0.05)", see image below), those 2 files are just installed by RPM.
[5] https://picasaweb.google.com/lh/photo/y3_qGSkXtxu4FryOXWWPQA?feat=directlink
So, bug (also) belongs to CPAN?
http://paste.koha-community.org/91 Should I upgrade CPAN.pm through CPAN (not by officially RPM/zypper provides )? Is this related to my issues? Best regards, -- Andi Sugandi. openSUSE-id Team, openSUSE Community Member. https://connect.opensuse.org/pg/profile/andisugandi
participants (2)
-
Andi Sugandi -
MJ Ray