libperl-dev

Issues related to software problems.
Post Reply
urgido
Posts: 1
Joined: 2008/11/23 00:01:51

libperl-dev

Post by urgido » 2008/11/23 00:03:27

where i can download libperl-dev ?? rEgards

jowa
Posts: 75
Joined: 2005/07/10 14:42:39

libperl-dev

Post by jowa » 2008/11/23 13:16:43

That's a Debian/Ubuntu package and it doesn't exist in CentOS. Perl in CentOS is packaged differently than in Debian/Ubuntu.

The "libperl.so" file that the Debian package "libperl-dev" provides comes with the base perl package in CentOS.
The .so file is placed in the architecture-specific perl library path somewhere below [font=Courier]/usr/lib{,64}/perl5[/font].

You can print out the exact path using
[code]perl -MConfig -e 'print "$Config{archlib}\n"'[/code]For example, on a 64-bit CentOS 5.2:
[code]$ perl -MConfig -e 'print "$Config{archlib}\n"'
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi[/code]

In order to get the right compiler and linker flags, refer to this article: [url=http://search.cpan.org/dist/perl/pod/perlembed.pod]embedded perl[/url] and use
something like
[code]gcc -o myprogram myprogram.c `perl -MExtUtils::Embed -e ccopts -e ldopts`[/code]

Post Reply

Return to “CentOS 5 - Software Support”