Alekz.Net    


2008-07-07

SqueezeCenter and Scalar::Util

After upgrading to snv_93 SqueezeCenter (quite predictably) refused to start again. The error was:

# ./slimrun
Weak references are not implemented in the version of perl at /usr/perl5/site_perl/5.8.4/DBIx/Class/Schema.pm line 8
BEGIN failed–compilation aborted at /usr/perl5/site_perl/5.8.4/DBIx/Class/Schema.pm line 8.
Compilation failed in require at (eval 113) line 3.
…propagated at /usr/perl5/5.8.4/lib/base.pm line 85.
BEGIN failed–compilation aborted at /opt/csw/squeezecenter-7.2-21059-noCPAN/Slim/Schema.pm line 29.
Compilation failed in require at /opt/csw/squeezecenter-7.2-21059-noCPAN/Slim/Utils/Progress.pm line 11.
BEGIN failed–compilation aborted at /opt/csw/squeezecenter-7.2-21059-noCPAN/Slim/Utils/Progress.pm line 11.
Compilation failed in require at /opt/csw/squeezecenter-7.2-21059-noCPAN/Slim/Utils/Scanner.pm line 45.
. . .

The issue is related to the same Scalar::Util module. Just force install it like explained here.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-06-25

SqueezeCenter and upsampling

In order to upsample 16/44.1 stream to, for example, 24/96 and play it on the Transporter you need:
[read more...]


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

SqueezeCenter and Compress::Zlib

After upgrading to Nevada b92 SqueezeCenter refused to start with the following error:

The following modules failed to load: Compress::Zlib

# perl -MCPAN -e shell
cpan> install Compress::Zlib
. . .
Module [Compress::Zlib] failed to load: is only available with the XS version
. . .

But the actual problem is Scalar::Util. To solve the problem reinstall Scalar::Util and then Compress::Zlib. Use force install if CPAN says that the latest version is already installed:

# perl -MCPAN -e shell
. . .
cpan[1]> install Scalar::Util
CPAN: Storable loaded ok (v2.12)
Going to read /var/tmp/cpan/Metadata
Database was generated on Tue, 24 Jun 2008 10:02:57 GMT
Scalar::Util is up to date (1.19).
cpan[2]> force install Scalar::Util
. . .
cpan[3]> force install Compress::Zlib
. . .

Sources: whirlpool.net.au and Usenet forums.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

2008-05-06

SqueezeCenter 7.1 under Solaris

The idea was to use “bare” SqueezeCenter without bundled CPAN (the CPAN directory was moved away) modules, Solaris 11 (or Nevada build 88) and supplied with Solaris PERL and MySQL.

Then if you start slimserver.pl the errors will let you know which CPAN modules to install. For example:

The following modules failed to load: version JSON::XS YAML::Syck GD
. . .
Can’t locate JSON::XS.pm in @INC (@INC contains: squeezecenter-7.1-19407-noCPAN/CPAN/arch/5.8/i86pc-solaris-64int

Or For Nevada b95:

The following CPAN modules were found but cannot work with SqueezeCenter:
File::Temp (loaded 0.14, need 0.17)
I18N::LangTags (loaded 0.29, need 0.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.

Usually, the bundled CPAN is not up to date. So, let’s install it first:

# perl -MCPAN -e shell
cpan[1]> install Bundle::CPAN
. . .
cpan[2]> quit

To install (or upgrade) a module run the following:

# perl -MCPAN -e shell
cpan[1]> install JSON::XS

The only exception is Encode/Detect/Detector.pm or Encode::Detect::Detector. It’s has not being touched by the developer for many years and is not recommended for use. The module can be compiled with c++ or g++ (instead of used by default cc or gcc), but with a lot of pain and manual intervention. The easiest way is to get rid of it completely:

  • Remove Encode::Detect::Detector from modules.conf (in the root directory of SqueezeCenter)
  • Remove or comment the following line in Slim/Utils/Unicode.pm:
    use Encode::Detect::Detector;

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...