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.


------------------------------------------------------------------------
odw199's Profile: http://forums.slimdevices.com/member.php?userid=15387
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