I installed squeezecenter-7.3.2.tgz on Mandriva 2008.0. slimserver.pl
complained about several Perl modules. After building them with
build-perl-modules.pl, I was left with this error message:
Code:
--------------------
The following CPAN modules were found but cannot work with SqueezeCenter:
GD (loaded 2.35, need 2.35)
To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan
Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of SqueezeCenter which includes all required CPAN
modules.
--------------------
Noen of the three options worked.
The "loaded 2.35, need 2.35" message is obviously meaningless. Google
finds many references, but the fix is different in each case. This
message seems to be a kind of catch-all. None of the fixes I found on
the web helped me.
Logitech support suggested to try v. 7.2.1 instead. It seemed to work,
but failed with the same message when trying to update the music
collection in the browser. After that, support gave up with "We do not
supporth this Mandriva thing".
Trying to solve the problem myself, I found two bugs.
I managed to get the correct error message by adding a print statement
to bootstrap.pm like this:
Code:
--------------------
eval "use $mod ()";
if ( !$@ ) {
eval { $mod->VERSION( $ver || 0 ); 1; };
}
if ( $@ ) {
print $@ . "\n"; # !!!
--------------------
The result was:
Code:
--------------------
GD object version 2.41 does not match $GD::VERSION 2.35 at
/usr/lib/perl5/5.8.8/i386-linux/DynaLoader.pm line 253.
--------------------
So there is really a version mismatch. bootstrap.pm hides this
information from the user and replaces it with the silly "loaded 2.35,
need 2.35".
Hiding the error message was the first bug. I am no Perl programmer, so
I am not able to make a fix.
Then I modified build-perl-modules.pm to see if I could use it to build
a working GD. Success! Not supporting GD in build-perl-modules.pm was
the second bug. A patch fixing this bug is attached.
+-------------------------------------------------------------------+
|Filename: build-gd.patch |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=7067|
+-------------------------------------------------------------------+
--
Sirius-CC
------------------------------------------------------------------------
Sirius-CC's Profile: http://forums.slimdevices.com/member.php?userid=25933
View this thread: http://forums.slimdevices.com/showthread.php?t=60738
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix