Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all articles
Browse latest Browse all 1518

LMS and perl 5.18 - can it work?

$
0
0
A casual slip a the weekend left me needing to restore my Linux install from a 2 week old backup. It's aptosid 64bit, based on debian unstable. My second error was to do a apt-get dist-upgrade without paying attention to the list of updates. Perl 5.18 was pulled in and it's no surprise LMS refuses to start.

I had been using LMS 7.7.2 – r33893 for the convenience of Triode's BBC iPlayer plugin, and his squeezelite/localpayer app, which makes LMS usable for audio on a bog standard multimedia PC.

I know little about the internals of LMS and nothing about perl. A bit of googling lead me to think it might be possible to re-generate the perl modules found in /usr/share/squeezeboxserver/CPAN using these commands, after first stopping any running LMS:

Code:

mv /usr/share/squeezeboxserver/CPAN /usr/share/squeezeboxserver/CPAN-
Code:

squeezeboxserver –d_startup
The output of the second command lead me to installing a number of perl modules that wouldn't compile using:

Code:

perl -e shell -MCPAN
intall xxxx

A rerun of squeezeboxserver –d_startup lead to a list of modules that wouldn't work with LMS

Code:

The following CPAN modules were found but cannot work with Logitech Media Server:
  Class::Data::Inheritable (loaded <not found>, need 0.04)
  Class::Inspector (loaded <not found>, need 1.16)
  DBIx::Class (loaded <not found>, need 0.08112)
  Data::URIEncode (loaded <not found>, need 0.11)
  File::BOM (loaded <not found>, need 0.13)
  File::Next (loaded <not found>, need 1.06)
  File::Which (loaded <not found>, need 0.05)
  IO::String (loaded <not found>, need 1.07)
  Image::Scale (loaded <not found>, need 0.08)
  JSON::XS::VersionOneAndTwo (loaded <not found>, need 0.31)
  Log::Log4perl (loaded <not found>, need 1.23)
  Path::Class (loaded <not found>, need 0.17)
  Proc::Background (loaded <not found>, need 1.08)
  SQL::Abstract (loaded <not found>, need 1.56)
  Text::Unidecode (loaded <not found>, need 0.04)
  Tie::Cache::LRU (loaded <not found>, need 0.21)
  Tie::RegexpHash (loaded <not found>, need 0.13)

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 Logitech Media Server which includes all required CPAN modules.

I worked through the list using cpan directly, only to find the last modules Tie::RegexpHash refuses to build against perl 5.18. Oh, b****r. The reports are here:

http://www.cpantesters.org/distro/T/...egexpHash-0.15

I think this is case of a little knowledge is a dangerous thing. So are there any advanced linux folk out there with a workaround, or instructions of how to do this properly? Would for instance adopting these instructions work?

http://www.jamesarbrown.com/?p=186

I think this is basically the idea posted here by Roland0: http://forums.slimdevices.com/showth...l=1#post745251

Can anyone flesh this out with more detail please?.


I've probably already messed up the install by mixing modules installed by the OS and via cpan so I'm contemplating another restore and trying hold perl at 5.14 if possible. In the meantime I have a working LMS in a Debian 7.1 virtual machine to at least give access to iPlayer by running squeezelite on the host.

Viewing all articles
Browse latest Browse all 1518

Trending Articles