geoffleach has asked for the wisdom of the Perl Monks concerning the following question:

Except that this is standing in the way of installing Encode, I wouldn't ask -:) Linux, Fedora 22, new install. There is only one source for libperl, namely the package perl-libs.i686. Note the "i686" I need the library built for x86_64. Or am I missing something. Does anyone know if the 64-bit libraries are buried in some other package? (FWIW, its not in perl-5.22.0-349.fc23.x86_64)

I know, O Monks, that is an inappropriate question in this fourm, but where else can I turn?

Replies are listed 'Best First'.
Re: where is libperl.so (in Fedora 22)
by hippo (Archbishop) on Nov 18, 2015 at 23:19 UTC

    I have an x86_64 install of Fedora 22, as luck would have it. The libs are not entirely straightforward:

    $ ls -l `locate libperl.so` lrwxrwxrwx. 1 root root 17 Jun 5 11:36 /usr/lib64/libperl.so -> +libperl.so.5.20.2 lrwxrwxrwx. 1 root root 17 Sep 14 08:39 /usr/lib64/libperl.so.5.2 +0 -> libperl.so.5.20.3 -rwxr-xr-x. 1 root root 1830704 Sep 14 08:39 /usr/lib64/libperl.so.5.2 +0.3 lrwxrwxrwx. 1 root root 23 Sep 14 08:39 /usr/lib64/perl5/CORE/lib +perl.so -> ../../libperl.so.5.20.3

    So the only non-symlink in there is /usr/lib64/libperl.so.5.20.3 and this is provided by:

    $ dnf provides /usr/lib64/libperl.so.5.20.3 Last metadata expiration check performed 4 days, 2:01:54 ago on Sat No +v 14 21:14:18 2015. perl-libs-4:5.20.3-327.fc22.x86_64 : The libraries for the perl runtim +e Repo : @System perl-libs-4:5.20.3-328.fc22.x86_64 : The libraries for the perl runtim +e Repo : updates

    I don't know why you were looking in an fc23 package for this, but it's there in the fc22 version. HTH.

    Update (Jan 2016): The eagle-eyed reader will notice that the directory listing above includes a broken symlink to an earlier version of the library. The datestamps suggest that this was caused by an upgrade to perl-libs at some point, so it might be prudent to watch out for that.

      Hmmm ... verrry interesting. Here's what perl -V says:
      @INC: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

      libperl.so is installed in /usr/lib64, and linking it to perl5 resolves the issue.

      Many thanks.

Re: whereis libperl.so
by dave_the_m (Monsignor) on Nov 18, 2015 at 20:05 UTC
    On my 64-bit Fedora 20 system, I have:
    $ ldd /usr/bin/perl | grep libperl libperl.so.5.18 => /lib64/libperl.so.5.18 (0x0000003f8e600000) $ rpm -qf /lib64/libperl.so.5.18 perl-libs-5.18.4-293.fc20.x86_64 $ rpm -qf /usr/lib64/perl5/vendor_perl/Encode.pm perl-Encode-2.54-4.fc20.x86_640.x86_64
    Both libperl and Encode should already be installed as part of a normal Fedora install.

    Dave.