EPrints Technical Mailing List Archive

Message: #08215


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Missing Perl Library Date::Calc


Hi Ilina Syazwani Musa,

These are additional libraries needed for IRStats2, Geo::IP to work out the country based on the IP address and Date::Calc to process dates, e.g. work out what the date was one month ago, one year ago, etc.  To install these Perl modules use one of the following commands:

yum install perl-Date-Calc perl-Geo-IP

apt install libdate-calc-perl libgeo-ip-perl

Once installed, you reload your webserver (e.g. apachectl graceful) to make sure it has loaded these new Perl modules.  There is a note on the wiki page for IRStats2 [1] that both of these are additional (to EPrints) dependencies but the page could do with a bit of an update, as there is quite a bit of out of date information and there is only instructions on how to install these dependencies on Debian based systems but not RedHat based ones.

Regards

David Newman

[1] https://wiki.eprints.org/w/IRStats2

On 20/06/2020 08:41, ILINA SYAZWANI BINTI MUSA via Eprints-tech wrote:
Hi everyone,

I've installed the perl modules, Geo::IP and Date::Calc through cpan. Then, by using Eprints Bazaar, I installed IRStats2 for my eprints-3.4.1. Initially, there is an error saying that "missing Perl library, Date::Calc, Geo::IP."

So I copied the folder Geo and Date from /root/perl5/lib/perl5 into /opt/eprints3/perl_lib, then, I restarted the httpd service. Unfortunately, the Eprints still cannot detect Date::Calc only even though it is in the same folder as Geo.  

Any ideas?
Thank you.

--
Ilina Syazwani Musa (ISM)
Pustakawan/ Librarian,
Bahagian Sistem Maklumat/ Information System Division,
Perpustakaan Utama/ Central Library,
University of Malaya,
50603 Lembah Pantai,
Kuala Lumpur.
Tel : +603-7967 3296
E-mail: ilina@um.edu.my

" PENAFIAN: E-mel ini dan apa-apa fail yang dikepilkan bersamanya ("Mesej") adalah ditujukan hanya untuk kegunaan penerima(-penerima) yang termaklum di atas dan mungkin mengandungi maklumat sulit. Anda dengan ini dimaklumkan bahawa mengambil apa jua tindakan bersandarkan kepada, membuat penilaian, mengulang hantar, menghebah, mengedar, mencetak, atau menyalin Mesej ini atau sebahagian daripadanya oleh sesiapa selain daripada penerima(-penerima) yang termaklum di atas adalah dilarang. Jika anda telah menerima Mesej ini kerana kesilapan, anda mesti menghapuskan Mesej ini dengan segera dan memaklumkan kepada penghantar Mesej ini menerusi balasan e-mel. Pendapat-pendapat, rumusan-rumusan, dan sebarang maklumat lain di dalam Mesej ini yang tidak berkait dengan urusan rasmi Universiti Malaya adalah difahami sebagai bukan dikeluar atau diperakui oleh mana-mana pihak yang disebut.


DISCLAIMER: This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain confidential information. You are hereby notified that the taking of any action in reliance upon, or any review, retransmission, dissemination, distribution, printing or copying of this Message or any part thereof by anyone other than the intended recipient(s) is strictly prohibited. If you have received this Message in error, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of University of Malaya shall be understood as neither given nor endorsed by any of the forementioned. "

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Virus-free. www.avg.com