PDA

View Full Version : 5.1 error under linux



Matt McKinnon
2004-02-11, 10:11
hi all,

i'm having trouble starting my slimserver since upgrading to v5.1 :

# ./slimserver.pl
Can't locate object method "offset" via package "Audio::Wav::Read" at
Slim/Formats/Wav.pm line 54.

any tips on how to fix this bit up?

Caleb Epstein
2004-02-11, 11:18
On Wed, Feb 11, 2004 at 12:11:49PM -0500, Matt McKinnon wrote:

> hi all, i'm having trouble starting my slimserver since upgrading to
> v5.1 : # ./slimserver.pl Can't locate object method "offset" via
> package "Audio::Wav::Read" at Slim/Formats/Wav.pm line 54. any tips
> on how to fix this bit up?

Either:

1. Remove your system-supplied Audio::Wav perl module (not a
great option if something besides SlimServer is using it)
2. Modify the "use lib" line in slimserver.pl and REMOVE @INC
so it looks like:

use lib ($Bin, catdir($Bin,'CPAN'), catdir($Bin,'CPAN','arch',$Config::Config{archname }));

--
Caleb Epstein | bklyn . org |All I ask of life is a constant and exaggerated
cae at | Brooklyn Dust |sense of my own importance.
bklyn dot org | Bunny Mfg. |

kdf
2004-02-11, 14:12
Quoting Caleb Epstein <cae (AT) bklyn (DOT) org>:

> On Wed, Feb 11, 2004 at 12:11:49PM -0500, Matt McKinnon wrote:
>
> > hi all, i'm having trouble starting my slimserver since upgrading to
> > v5.1 : # ./slimserver.pl Can't locate object method "offset" via
> > package "Audio::Wav::Read" at Slim/Formats/Wav.pm line 54. any tips
> > on how to fix this bit up?
>
> Either:
>
> 1. Remove your system-supplied Audio::Wav perl module (not a
> great option if something besides SlimServer is using it)
> 2. Modify the "use lib" line in slimserver.pl and REMOVE @INC
> so it looks like:
>
> use lib ($Bin, catdir($Bin,'CPAN'),
> catdir($Bin,'CPAN','arch',$Config::Config{archname }));

ah, the pain of divergence. On the plus side, new linux distros will catch up
rather quickly. Downside, this really isn't the best solution. I believe @INC
should still be included in there somewhere, for starters, but it also needs to
eveolve into a solution that works without modifying a line of code for each
system that might not have the latest cvs of Perl and CPAN :)

Unfortunately, placing @INC at the end can be a problem if the included arch
files dont match the install for the system (ie activePerl 5.8.2 in windows),
leaving it in the middle might be ok so long as there are no modified arch
libraries that cause a conflict with installed Perl packages. Certainly @INC at
the start cause conflict with patched CPAN modules that occur. I should be easy
to create custom 'use lib' lines based on OS, if that's required, but I would
not be able to say for sure if that's the only dependancy. Of course, the other
option is to not patch CPAN modules, thus suffering the delay of waiting for the
latest Perl version to work its way through to communities.

-kdf