mherger wrote:
> > File::Spec version v48.44.56 required--this is only version
> v3.620.0 at /usr/share/squeezeboxserver/CPAN/File/Temp.pm line 140.
> > BEGIN failed--compilation aborted at
> /usr/share/squeezeboxserver/CPAN/File/Temp.pm line 140.
>
> That required File::Spec version is wrong. Maybe you can
> figure out where this is coming from.
This issue is linked to your locale settings and maybe to a parser
weakness.
"v48.44.56": note the prepended "v", and let me translate 48, 44 and 46
for you to the ASCII representation of "0", "," and "8". That would be
"0,8" and if you
Code:
--------------------
head -140 /usr/share/squeezeboxserver/CPAN/File/Temp.pm | tail -1
--------------------
you will read
Code:
--------------------
use File::Spec 0.8;
--------------------
Same principle for another post where "v49.44.51" didn't match what was
expected at line 12 of /usr/lib/x86_64-linux-gnu/perl-base/IO/Socket.pm.
That would be "1,3" and on my system, I do not have this file, but I
have a similar one:
Code:
--------------------
head -12 /usr/lib/arm-linux-gnueabihf/perl-base/IO/Socket.pm | tail -1
--------------------
returns
Code:
--------------------
use Socket 1.3;
--------------------
I spent some time tracking how the version is parsed. I found an issue
in _un_vstring from /usr/share/squeezeboxserver/CPAN/version/vpp.pm
where the "0,8" and "1,3" that are in $value end up being replaced by
$tvalue. Guess what, the prepended "v" comes from $tvalue.
But there is one final oddity to explain, it is the comma. The code in
File/Temp.pm and IO/Socket.pm both show a dot, not a comma. This is
actually linked to your locale (typically for a French locale, floats
are comma-separated, not dot-separated). So if BeST and nic3 could
kindly confirm what their locale is, that would be nice.
Here is some code to do that:
Code:
--------------------
$ cat ./test_locale.pm
#!/usr/bin/env perl
use POSIX qw(locale_h);
use locale;
print setlocale(LC_CTYPE), "\n";
--------------------
In my case, as soon as I forced the server to start with the C locale,
the problem was gone: sudo LC_ALL=C /usr/sbin/squeezeboxserver
--d_startup
I'm not saying this is an appropriate solution, in particular to
properly display non-ASCII characters of your filenames, but at least
the problems are explained.
------------------------------------------------------------------------
kag's Profile: http://forums.slimdevices.com/member.php?userid=65602
View this thread: http://forums.slimdevices.com/showthread.php?t=105023
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter