aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: perl related problem  (Read 2365 times)

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
perl related problem
« on: February 21, 2007, 10:27:27 AM »

Hi,
I was trying to build CVS and make failed with:
./file_generator.pl . abstracts/ECTagTypes.abstract abstracts/ECCodes.abstract;
Can't locate File/Copy.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./file_generator.pl line 25.
BEGIN failed--compilation aborted at ./file_generator.pl line 25.

which is the first line after the one saying:
# Gimme a break, it's my second perl app... (Kry)  ;D

It turned out that my system had perl-base installed, but not full perl and perl-modules.
Would a warning at the configure step be easy to implement?

Regards,
Ramiro
« Last Edit: February 21, 2007, 11:49:36 AM by Ramiro »
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: perl related problem
« Reply #1 on: February 21, 2007, 04:09:29 PM »

Should be trivial to implement. A possible snippet can look like this:
Code: [Select]
AC_MSG_CHECKING([for File::Copy])
   if perl -e "require File::Copy" 2>/dev/null; then
       AC_MSG_RESULT([ok])
   else
       AC_MSG_ERROR([File::Copy perl module is required])
   fi
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: perl related problem
« Reply #2 on: February 21, 2007, 06:56:57 PM »

Done!

Thank you, Gerd78, for the code.
Logged