Subject: | Makefile.PL won't recognize $ENV{KRB5_LIB} |
libkrb5.so can't be found anywhere but /usr/local/lib, so an install in,
say, /usr/kerberos/lib fails, even though KRB5_LIB is properly set.
$ KRB5_LIB=/usr/kerberos/lib perl Makefile.PL
Can't build and link to 'krb5'
Since Devel::CheckLib was added, the call to check_lib_or_exit uses an
empty libpath param, because of a typo in the variable name. See the
attached patch.
Tested with Authen-Krb5-Simple-0.42 on Linux furiousd 2.6.33.4-smp #2
SMP Wed May 12 22:47:36 CDT 2010 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
GenuineIntel GNU/Linux
This is perl, v5.10.1 (*) built for i486-linux-thread-multi
Subject: | Makefile.PL.diff |
--- Makefile.PL.org 2009-08-05 22:48:30.000000000 -0400
+++ Makefile.PL 2011-12-27 10:47:02.000000000 -0500
@@ -56,7 +56,7 @@
#
check_lib_or_exit(
lib => [qw( krb5 )],
- libpath => \@kr_lib_dirs
+ libpath => \@krb_lib_dirs
) unless($ENV{skip_lib_check});
# Write out the Makefile