PDA

View Full Version : Use of uninitialized value in concatenation (.) or stringat Slim/Player/Source.pm line 787.



Mr. JC
2004-04-17, 09:41
Hi,
I just bought a squeeze box, downloaded the latest software from the web
site and installed it on my debian server. the daemon is up, i have it
configured, the slimdevice is up on on my network.

however, i am not able to get any sound out of it. I move a song to the
Music Player side of the slimserver web UI, click play, i see the song
title appear on the slim device (it says "Stopped"), but the song isn't
playing. It sits at
00:00. and, if i put a whole bunch of songs to play, the slimdevice
cycles through them, never playing any music :-(

So, i checked the log and I see a few errors that could (?) be the
issue. Not being a perl programmer (i'm c/c++), I cannot debug this
myself:

I have a bunch of these, on startup:

Use of uninitialized value in string eq at
/usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.
Use of uninitialized value in string eq at
/usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.

I have a bunch of these:

Use of uninitialized value in concatenation (.) or string at
Slim/Player/Source.pm line 787.
sh: : command not found
Use of uninitialized value in concatenation (.) or string at
Slim/Player/Source.pm line 787.
sh: : command not found
Use of uninitialized value in concatenation (.) or string at
Slim/Player/Source.pm line 787.
sh: : command not found

line 787 is:
$fullCommand =~ s/\$([^\$]+)\$/'"' . Slim::Utils::Misc::findbin($1)
.. '"'/eg;

what am I missing to get this running???

thanks, JC

kdf
2004-04-17, 10:13
What you are seeing below is coming from the transcoding section of the code. I
would guess from this that you are playing files that are NOT mp3. In this
case, you will need to download and install LAME to your debian system, and put
the lame executable somwhere in the path. If you are playing flac, ogg, etc,
you will also need to download the appropriate codec for that type.

running the server like so might clarify this a bit:
/usr/local/slimserver.pl --d_source

the --d_source flag will show you the messages related to the playback when you
try to play a song. When the needed codec/lame is found, you will see the full
command line displayed in teh debug messages.

-kdf

Quoting "Mr. JC" <phish-jc (AT) charter (DOT) net>:

> Hi,
> I just bought a squeeze box, downloaded the latest software from the web
> site and installed it on my debian server. the daemon is up, i have it
> configured, the slimdevice is up on on my network.
>
> however, i am not able to get any sound out of it. I move a song to the
> Music Player side of the slimserver web UI, click play, i see the song
> title appear on the slim device (it says "Stopped"), but the song isn't
> playing. It sits at
> 00:00. and, if i put a whole bunch of songs to play, the slimdevice
> cycles through them, never playing any music :-(
>
> So, i checked the log and I see a few errors that could (?) be the
> issue. Not being a perl programmer (i'm c/c++), I cannot debug this
> myself:
>
> I have a bunch of these, on startup:
>
> Use of uninitialized value in string eq at
> /usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.
> Use of uninitialized value in string eq at
> /usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.
>
> I have a bunch of these:
>
> Use of uninitialized value in concatenation (.) or string at
> Slim/Player/Source.pm line 787.
> sh: : command not found
> Use of uninitialized value in concatenation (.) or string at
> Slim/Player/Source.pm line 787.
> sh: : command not found
> Use of uninitialized value in concatenation (.) or string at
> Slim/Player/Source.pm line 787.
> sh: : command not found
>
> line 787 is:
> $fullCommand =~ s/\$([^\$]+)\$/'"' . Slim::Utils::Misc::findbin($1)
> . '"'/eg;
>
> what am I missing to get this running???
>
> thanks, JC
>
>
>
>

Mr. JC
2004-04-17, 12:56
Yes, I am not playing MP3, I am playing shortened files and will also play .wav,
..flac. I will try with --d_source and see if i can find a LAME package for debain.

thanks!



kdf wrote:

> What you are seeing below is coming from the transcoding section of the code. I
> would guess from this that you are playing files that are NOT mp3. In this
> case, you will need to download and install LAME to your debian system, and put
> the lame executable somwhere in the path. If you are playing flac, ogg, etc,
> you will also need to download the appropriate codec for that type.
>
> running the server like so might clarify this a bit:
> /usr/local/slimserver.pl --d_source
>
> the --d_source flag will show you the messages related to the playback when you
> try to play a song. When the needed codec/lame is found, you will see the full
> command line displayed in teh debug messages.
>
> -kdf
>
> Quoting "Mr. JC" <phish-jc (AT) charter (DOT) net>:
>
> > Hi,
> > I just bought a squeeze box, downloaded the latest software from the web
> > site and installed it on my debian server. the daemon is up, i have it
> > configured, the slimdevice is up on on my network.
> >
> > however, i am not able to get any sound out of it. I move a song to the
> > Music Player side of the slimserver web UI, click play, i see the song
> > title appear on the slim device (it says "Stopped"), but the song isn't
> > playing. It sits at
> > 00:00. and, if i put a whole bunch of songs to play, the slimdevice
> > cycles through them, never playing any music :-(
> >
> > So, i checked the log and I see a few errors that could (?) be the
> > issue. Not being a perl programmer (i'm c/c++), I cannot debug this
> > myself:
> >
> > I have a bunch of these, on startup:
> >
> > Use of uninitialized value in string eq at
> > /usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.
> > Use of uninitialized value in string eq at
> > /usr/share/perl/5.6.1/File/Spec/Unix.pm line 25.
> >
> > I have a bunch of these:
> >
> > Use of uninitialized value in concatenation (.) or string at
> > Slim/Player/Source.pm line 787.
> > sh: : command not found
> > Use of uninitialized value in concatenation (.) or string at
> > Slim/Player/Source.pm line 787.
> > sh: : command not found
> > Use of uninitialized value in concatenation (.) or string at
> > Slim/Player/Source.pm line 787.
> > sh: : command not found
> >
> > line 787 is:
> > $fullCommand =~ s/\$([^\$]+)\$/'"' . Slim::Utils::Misc::findbin($1)
> > . '"'/eg;
> >
> > what am I missing to get this running???
> >
> > thanks, JC
> >
> >
> >
> >