PDA

View Full Version : Help! Perl (or something) is broken!



leonyu13
2005-09-07, 18:53
I'll try to make a rather long story short:

My problems started because Live Search was crashing SlimServer (for details see this thread http://forums.slimdevices.com/showthread.php?t=16051). I e-mailed Slim Devices tech support and they told me to upgrade to the most recent version of Perl (I was running 5.8.0).

I tried installing 5.8.7 from a source tar.gz (bad idea). The "make test" failed one test but I went ahead and ran "make install" anyway. After that I had trouble booting because many things failed (SlimServer, X, vncserver, apache, maybe others). The system would boot, but I had to startx manually. I tried to install the RPM for ActivePerl 5.8.7.813 but it would not install because it said that 5.8.7 was already installed. But I could not uninstall using "rpm -e", "perl -v" showed that 5.8.7 was still installed. So I tried forcing the RPM install, which appeared to run, but did not help.

I want to uninstall Perl totally then reinstall but I don't know how to remove all traces of previous versions. Then again, maybe Perl isn't my problem at all?

Here's some output from a system log file that might shed some light:
Sep 7 01:49:47 leonlinux su(pam_unix)[1766]: session opened for user slimserver by (uid=0)
Sep 7 01:49:48 leonlinux su: -bash: /usr/local/slimserver/slimserver.pl: /usr/bin/perl: bad interpreter: No such file or directory
Sep 7 01:49:48 leonlinux su(pam_unix)[1766]: session closed for user slimserver
Sep 7 01:49:48 leonlinux slimserver: slimserver.pl startup failed

I'm running Redhat 9.0 on a PIII 550 with 192MB Ram.
Slimserver 6.2b1 9/5 nightly.

Any help would be much appreciated.

Dan Sully
2005-09-07, 20:39
* leonyu13 shaped the electrons to say...

>Here's some output from a system log file that might shed some light:
>Sep 7 01:49:47 leonlinux su(pam_unix)[1766]: session opened for user
>slimserver by (uid=0)
>Sep 7 01:49:48 leonlinux su: -bash:
>/usr/local/slimserver/slimserver.pl: /usr/bin/perl: bad interpreter: No
>such file or directory
>Sep 7 01:49:48 leonlinux su(pam_unix)[1766]: session closed for user
>slimserver
>Sep 7 01:49:48 leonlinux slimserver: slimserver.pl startup failed

Do an 'ls -l /usr/bin/perl' - it's probably a symlink to a non-existant binary.

You can rm /usr/bin/perl and then re-symlink to the correct perl.

ls -l /usr/bin/perl* should give you a list of real perl binaries - something
like: /usr/bin/perl5.8.0

To symlink that back, do:

ln -sf /usr/bin/perl5.8.0 /usr/bin/perl

-D
--
I'm really looking forward to this hangover.

leonyu13
2005-09-11, 06:56
*
leonyu13 shaped the electrons to say...

>Here's some output from a system log file that might shed some light:
>Sep 7 01:49:47 leonlinux su(pam_unix)[1766]: session opened for user
>slimserver by (uid=0)
>Sep 7 01:49:48 leonlinux su: -bash:
>/usr/local/slimserver/slimserver.pl: /usr/bin/perl: bad interpreter: No
>such file or directory
>Sep 7 01:49:48 leonlinux su(pam_unix)[1766]: session closed for user
>slimserver
>Sep 7 01:49:48 leonlinux slimserver: slimserver.pl startup failed

Do an 'ls -l /usr/bin/perl' - it's probably a symlink to a non-existant binary.

You can rm /usr/bin/perl and then re-symlink to the correct perl.

ls -l /usr/bin/perl* should give you a list of real perl binaries - something
like: /usr/bin/perl5.8.0

To symlink that back, do:

ln -sf /usr/bin/perl5.8.0 /usr/bin/perl

-D
--
I'm really looking forward to this hangover.

Thanks for the suggestions. This got me pointed back in the right direction, but I'm still having some difficulties.

Everything except SlimServer started functioning properly, so I reinstalled SlimServer from an RPM. It said that I needed to install perl modules, which downloaded and installed more or less automatically. After that, perl -v tells me that I'm now running 5.8.0 again.

Is there a way to point everything in my system, including SlimServer to the newer binary? Do I just need to delete the old binary and see what errors out on the next boot?