Cmake 2.8.7 does not find Perl libraries

Bug #1236871 reported by Darryl Pierce
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

For any Cmake project that depends on Perl Cmake is not finding the Perl libraries even when they are installed.

The FindPerlLibs.cmake module asks Perl for the name of the library file using:

perl -V:libperl

which returns the name "libperl.so.5.14.2" as the name. And this file exists in in /usr/lib. However, the FindPerlLibs.cmake module tries to find it in:

    /usr/lib/perl5/${PERL_VERSION}/${PERL_ARCHNAME}/CORE
    /usr/lib/perl/${PERL_VERSION}/${PERL_ARCHNAME}/CORE
    /usr/lib/perl5/${PERL_VERSION}/CORE
    /usr/lib/perl/${PERL_VERSION}/CORE

instead. However, if the file libperl.so were to exist (I tested with a symlink) in one of the above mentioned directories (I used /usr/lib/perl/${PERL_VERSION}/CORE) then Cmake would find it just fine.

PROPOSED SOLUTION:

Symlink the provided libraries into the /usr/lib/perl/${PERL_VERSION}/CORE directory so that Cmake can find them.

Tags: cmake
Darryl Pierce (mcpierce)
affects: boost1.53 (Ubuntu) → perl (Ubuntu)
Darryl Pierce (mcpierce)
tags: added: cmake
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.