Public bug reported:

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.

** Affects: perl (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: boost1.53 (Ubuntu) => perl (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1236871

Title:
  Cmake 2.8.7 does not find Perl libraries

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1236871/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to