[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is libperl.so?



On Wed, Apr 14, 2004 at 08:00:48PM +1200, Glenn Ramsey wrote:
Brendan O'Dea wrote:
apt-get install libperl-dev

That gets me a libperl.so, but it puts it in /usr/lib and not $Config{archlibexp}/CORE/, which is where this software looks for it and where the man page says it should be.

Is this a bug in the Debian perl package? I also have an installation of Mandrake 10 and that has libperl.so in the above location.

If it's not a bug then what should I tell the developers if I ask them to fix it?

/usr/lib is in the linker's path so -lperl should work fine.  See the
linker options produced by ExtUtils::Embed:

 $ perl -MExtUtils::Embed -e ldopts

OK I see now, we are talking about different things.

I don't think the program is linked with libperl, at least it's not mentioned in the output of ldd.

I think what it does is to get the OS to exec (probably using system()) something like:

perl -MConfig -e 'print $Config{archlibexp}'

I think it then uses the path returned to dlopen() $Config{archlibexp}/CORE/libperl.so .

g

--
Glenn Ramsey <glenn@componic.co.nz>
http://www.componic.co.nz



Reply to: