PDA

View Full Version : 0.78 perl error


07-19-2005, 10:39 AM
After doing a fresh install of 0.78, when i run perl, i get ...

PCBSD# perl
/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "perl"

any help would be greatly apprecaited.

07-19-2005, 11:13 AM
i cant imagine this is a "me only" problem since it was a fresh install of 0.7.8.

I'm going to try and reinstall perl using ports in the meantime.

07-19-2005, 11:45 AM
a reinstall of perl from ports did the trick :)

Rop
07-23-2005, 02:15 PM
I've got the same problem
but how dit you 'reinstall' exactly ??

( I'm a bsd newbie :oops: )

I've tried 'make reinstall'
also 'make deinstall' and 'make reinstall'
did not work :(

( wanted postnuke, apache & mysql are working )

Thanx

Rop
07-23-2005, 02:17 PM
sorry, pcbsd 0.7.8
tried perl5

scottro
07-23-2005, 04:59 PM
If you put in perl from ports, it might be necessary to run the perl-after-upgrae script. Run it once with no flags--in other words, just type, as root

perl-after-upgrade

It should show you what might have to be fixed, the run it again with the -f option

perl-after-upgrade -f

(This is if you're using perl-5.7.8)

Rop
07-25-2005, 08:29 AM
Thanx a lot !!
I think a lot of script-running is good for my health :D

found also nice pc-bsd artikel on http://michael-and-mary.net/intro/?q=node/23

antik
07-25-2005, 09:41 AM
I've got the same problem
but how dit you 'reinstall' exactly ??

( I'm a bsd newbie :oops: )

I've tried 'make reinstall'
also 'make deinstall' and 'make reinstall'
did not work :(

( wanted postnuke, apache & mysql are working )

Thanx

pkg_add -r portupgrade
pkg_deinstall perl
portinstall perl
remove all versions of perl and install newer one.

Solarin
07-25-2005, 10:12 AM
I had this same problem, this is how I fixed it without reinstalling perl:

What '/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "perl" ' is telling you is that it can't find the file 'libperl.so' in your path.

If you ldd /usr/bin/perl it this will confirm.

Apparently something went wrong with the perl installation. However if you:
find / -name "libperl.so"
you'll find that the file does exist at /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so so all you have to do is copy it to a lib directory where perl will find it. I copied it to /lib/libperl.so

As root:
cp /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so /lib/libperl.so

Checking the perl executable again with ldd will confirm that libperl.so has now been found:
ldd /usr/bin/perl

You'll get a line that says libperl.so => /lib/libperl.so

Everything should now work :D

Rop
07-26-2005, 05:36 PM
GREAT !!
it's working !
many thanx u guru's :)

lurch
07-30-2005, 10:08 PM
Hi
I have been having a problem installing my printer and was getting error messages when trying to install ports and upgrade with cvsup. It was saying libperl.so could not be found
The information gvien here cured the problem.
Thanks