aMule Forum
English => Compilation problems => Topic started by: Ramiro 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
-
Should be trivial to implement. A possible snippet can look like this:
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
-
Done!
Thank you, Gerd78, for the code.