Leont / extutils-hascompiler

Check for the presence of a compiler
5 stars 3 forks source link

HPUX with perl < 5.10 #5

Closed Leont closed 9 years ago

Leont commented 9 years ago

On perl < 5.10, it gives an error like:

Can't locate auto/DynaLoader/dl_unload_f.al in @INC (@INC contains: …) at /perl/usr/leont/.cpan/build/ExtUtils-HasCompiler-0.006-4ZklJl/blib/lib/ExtUtils/HasCompiler.pm line 116 Can't unlink file /tmp/GMRcTwHXhb/tLmgfhk5P1.sl: Text file busy at /perl/usr/leont/perl5/lib/perl5/File/Temp.pm line 902 Can't remove directory /tmp/GMRcTwHXhb: File exists at /perl/usr/leont/perl5/lib/perl5/File/Temp.pm line 902

This is because until 4b1aa53e75 it didn't implement the dl_unload_file method. Possible solutions are:

Leont commented 9 years ago

I solved this using the second method. It's complaining loudly but otherwise seems to be working fine.