odw199 wrote: 
> Hi,
> 
> It does indeed look like you have 2 versions of perl installed.
> 
> The "which perl" command you ran from a terminal shows an install in
> /Users/kim/perl5/perlbrew/perls/perl-5.16.0/
> 
> Yet the slim server.pl application uses perl in /usr/bin:
> 
> > 
Code:
--------------------
  >   > $ head slimserver.pl 
  > #!/usr/bin/perl
  > 
  > # Logitech Media Server Copyright 2001-2009 Logitech.
  > # This program is free software; you can redistribute it and/or
  > # modify it under the terms of the GNU General Public License,
  > # version 2.
  > 
--------------------
> > 
> 
> So when you manually installed the additional modules through CPAN, it
> would have added them to the perl install in
> /Users/kim/perl5/perlbrew/perls/perl-5.16.0/, but this isn;t used by
> squeezebox, it uses the install that comes shipped with Mac OS.
> 
> You need to add the additional modules to the default perl
> installation. And to do that you need run CPAN from the default
> installation, not the alternate installation under
> /Users/kim/perl5/perlbrew/perls/perl-5.16.0/. The easiest way to do
> this is to take /Users/kim/perl5/perlbrew/perls/perl-5.16.0/bin off
> the PATH environment variable. So if you run:
> 
> > 
Code:
--------------------
  >   > export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
--------------------
> > 
> 
> This sets the PATH to just be the default areas, which means when you
> run "which perl" again it should point /usr/bin/perl, then install the
> CPAN modules again and they will be installed to the installation of
> perl that squeezebox is using.
> 
> The short version of all this is:
> 
> > 
Code:
--------------------
  >   > $ export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  > $ sudo perl -MCPAN -e ‘install Crypt::OpenSSL::RSA’ 
  > $ sudo perl -MCPAN -e ‘install IO::Socket::INET6’
  > $ sudo perl -MCPAN -e ‘install Net::SDP’
  > $ /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/slimserver.pl
--------------------
> > 
> 
> When ever you log back in to a terminal it will put your PATH back to
> what it was, which is fine, the export is only temporary so you can
> install the CPAN modules to the right perl installation.

Thanks - that did almost solve my problem. Now I get the same error as
you did - when starting LMS from terminal with
/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/slimserver.pl

15-02-22 16:37:20.4352] Slim::Networking::IO::Select::__ANON__ (147)
Error: Select task failed calling
Plugins::ShairTunes::Plugin::handleSocketRead: Expected port number from
decoder; got  at
/Users/kim/Library/Caches/Squeezebox/InstalledPlugins/Plugins/ShairTunes/Plugin.pm
line 342.
; fh=IO::Socket::INET6=GLOB(0x7fc1c8ce0c20)



MacMini running LMS 7.7.3. 
Duet + 4 Squeezebox Radio's
------------------------------------------------------------------------
Kim.T's Profile: http://forums.slimdevices.com/member.php?userid=15059
View this thread: http://forums.slimdevices.com/showthread.php?t=100379

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to