MantisBT - CMake
View Issue Details
0011027CMakeModulespublic2010-07-22 05:342011-10-27 19:01
George Petasis 
David Cole 
normalblockalways
closedfixed 
CMake-2-8 
CMake 2.8.4 
0011027: FindPerlLibs.cmake fails to locate perl library under OS X 10.6
FindPerlLibs does not work for perl under Snow Leopard.
In order to locate the libperl.dylib, it constructs PERL_POSSIBLE_LIB_PATHS
based on the value of PERL_ARCHLIB, which is filled with "perl -V:installarchlib".

Thus, PERL_ARCHLIB gets the value /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level, while "perl -V:archlib" returns /System/Library/Perl/5.10.0/darwin-thread-multi-2level.

locate libperl:
/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/libperl.dylib
/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE/libperl.dylib
/System/Library/Perl/lib/5.10/libperl.dylib
/System/Library/Perl/lib/5.8/libperl.dylib

So, FindPerlLibs.cmake needs to also add the path returned aby archlib when searching for library & include files.
No tags attached.
related to 0012544closed Kitware Robot FindPerlLibs.cmake still fails to locate perl library under OS X 10.7 
Issue History
2010-07-22 05:34George PetasisNew Issue
2011-01-17 16:36David ColeAssigned To => David Cole
2011-01-17 16:36David ColeStatusnew => assigned
2011-01-17 16:37David ColeNote Added: 0024826
2011-01-19 11:56David ColeNote Added: 0024925
2011-01-19 11:56David ColeStatusassigned => resolved
2011-01-19 11:56David ColeFixed in Version => CMake 2.8.4
2011-01-19 11:56David ColeResolutionopen => fixed
2011-05-02 14:46David ColeNote Added: 0026367
2011-05-02 14:46David ColeStatusresolved => closed
2011-10-28 13:33Brad KingRelationship addedrelated to 0012544

Notes
(0024826)
David Cole   
2011-01-17 16:37   
Can you try CMake 2.8.4-rc1 and see if this issue is resolved?

I suspect this improvement to FindPerlLibs.cmake (specifically for the Mac) may have fixed this issue:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20ceccc4f28474c89af5797640852f966b731be4 [^]

Thanks!
(0024925)
David Cole   
2011-01-19 11:56   
I have tested this on my Mac using CMake 2.8.4-rc1 with the built-in perl and with a MacPorts installed perl in /opt/local, and they both produce what I would consider the expected results. No mention of the "/Updates/" anywhere in any found paths.

Please re-open if there is still any issue with this on your end after updating to CMake 2.8.4-rc1 or later.

Thanks!
(0026367)
David Cole   
2011-05-02 14:46   
Closing resolved issues that have not been updated in more than 3 months.