PDA

View Full Version : AlienBBC and Mac



Daniel Cohen
2004-11-24, 00:18
As noted in another post, I can get the AlienBBC plugin to appear,
with all its submenus. But as yet it doesn't actually play anything.

Running SlimServer from the command line using --d_plugins gives the
response, which includes my attempts to play,

Subroutine HTML::Entities::decode_entities redefined at
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/DynaLoader.pm
line 249.
Use of uninitialized value in pattern match (m//) at
/Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Alien/Plugin.pm
line 580.
Can't ignore signal CHLD, forcing to default.
Can't locate HTTP/Daemon.pm in @INC (@INC contains:
/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN
/sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1
/sw/lib/perl5 /sw/lib/perl5/darwin
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
/Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
/Network/Library/Perl/5.8.1 /Network/Library/Perl .
/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN) at
/Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/transcoder_proxy.pl
line 4.
BEGIN failed--compilation aborted at
/Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/transcoder_proxy.pl
line 4.
cannot connect to http daemon to get playlist at
/Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Scan.pm
line 364.
cannot connect to http daemon to get playlist at
/Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Scan.pm
line 364.


I can see the issue with Daemon.pm, but need to know how to modify
things to deal with it.

The log says "@INC contains /Library/PreferencePanes ..."

This would work if SlimServer had been installed for all users. But I
installed it just for one user, so the relevant file is in
~/Library/PreferencePanes ..., not in /Library/PreferencePanes ...

--
Daniel Cohen

Jules Taplin
2004-11-25, 11:25
Aha! That one I know how to deal with.

;)

Basically... you're missing a perl module that's required. You need to
install HTTP::Daemon, otherwise the transcoder won't work.

I'm not sure about perl installations on OS/X, so I don't know if
there's a preferred method of getting packages on. HTTP::Daemon is
available from CPAN (along with about a million other modules) -
http://www.cpan.org.

Take a peek... and if that makes no sense... give me a yell, and we'll
try to work something out.


-- Jules

PS. Troubleshooting transcoder_proxy.pl is pretty easy - the secret is
to run it on it's own (get a shell, and go to the directory it's in, and
just type './transcoder_proxy.pl'. Then... anything it does will get
echoed to that shell. ;)


-- Jules

Daniel Cohen wrote:

> As noted in another post, I can get the AlienBBC plugin to appear,
> with all its submenus. But as yet it doesn't actually play anything.
>
> Running SlimServer from the command line using --d_plugins gives the
> response, which includes my attempts to play,
>
> Subroutine HTML::Entities::decode_entities redefined at
> /System/Library/Perl/5.8.1/darwin-thread-multi-2level/DynaLoader.pm
> line 249.
> Use of uninitialized value in pattern match (m//) at
> /Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Plugins/Alien/Plugin.pm
> line 580.
> Can't ignore signal CHLD, forcing to default.
> Can't locate HTTP/Daemon.pm in @INC (@INC contains:
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN
> /sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1
> /sw/lib/perl5 /sw/lib/perl5/darwin
> /System/Library/Perl/5.8.1/darwin-thread-multi-2level
> /System/Library/Perl/5.8.1
> /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
> /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
> /Network/Library/Perl/5.8.1 /Network/Library/Perl .
> /Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN) at
> /Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/transcoder_proxy.pl
> line 4.
> BEGIN failed--compilation aborted at
> /Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/transcoder_proxy.pl
> line 4.
> cannot connect to http daemon to get playlist at
> /Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Scan.pm
> line 364.
> cannot connect to http daemon to get playlist at
> /Users/danco/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Scan.pm
> line 364.
>
>
> I can see the issue with Daemon.pm, but need to know how to modify
> things to deal with it.
>
> The log says "@INC contains /Library/PreferencePanes ..."
>
> This would work if SlimServer had been installed for all users. But I
> installed it just for one user, so the relevant file is in
> ~/Library/PreferencePanes ..., not in /Library/PreferencePanes ...
>

Daniel Cohen
2004-11-26, 09:04
On 25/11/04 at 6:25 pm +0000, Jules Taplin wrote
>Aha! That one I know how to deal with.
>
>;)
>
>Basically... you're missing a perl module that's required. You need
>to install HTTP::Daemon, otherwise the transcoder won't work.

(part of my original snipped)

>>
>>The log says "@INC contains /Library/PreferencePanes ..."
>>
>>This would work if SlimServer had been installed for all users. But
>>I installed it just for one user, so the relevant file is in
>>~/Library/PreferencePanes ..., not in /Library/PreferencePanes ...
>>
>_


As noted in my original post, I do have the relevant perl module, so
I don't need to install it. But it isn't in the places where it is
currently being looked for.

Somehwere along the line, and I don't know where, I need to add a reference to

~/Library/PreferencePanes ...

where currently whatever it is does not look there but (in various
general directories and)only in /Library/PreferencePanes ...

Actually, a look at your trasncoder_proxy.pl file suggests that the
issue may be on its first line. Your instructions say that this
should be modified (from its original) to

#!/usr/bin/perl -w
-I/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN

That is an obvious place where the directory is not as it should be
if installed for a single user.

I guess it need to be

#!/usr/bin/perl -w
-I~/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN

Is that right?
--
Daniel Cohen