To be better prepared for the coming update to opensuse 12.3 I tried to
install LMS7.8 on opensuse 12.3RC2. And thanks to all the work that has
been done in this thread I got it working! Many thanks to all of you,
especially vaved for the good summary (post #54).

Here is what I did starting from a clean install (a few details are
different from vaved's description, some things are copy and paste):
1) Add packages: gcc, make, patch, zlib-devel, freetype2-devel

2) Install LMS7.8

3) Get the LMS7.8 CPAN packages: svn co
http://svn.slimdevices.com/repos/slim/7.8/trunk/vendor/CPAN/

4) Get Class-XSAccessor-1.16.tar.gz and YAML-LibYAML-0.38.tar.gz from
www.cpan.org

5) Put these two files in the directory of the LMS7.8 CPAN packages

6) Get the modified buildme.sh from cajus (see post #29)

7) Since opensuse 12.3RC2 uses Perl 5.16.2 and the version of
Class-XSAccessor has changed, the modified buildme.sh has to be modified
further. The path to the perl bin has to be /usr/bin/perl5.16.2, the
version of Class-XSAccessor has to be 1.16

8) Run the modified buildme.sh

9) Copy newly build CPAN modules: cp -a build/arch/5.16
/usr/share/squeezeboxserver/CPAN/arch

10) Fix the Class::XSAccessor issue. Edit
/usr/share/squeezeboxserver/CPAN/Class/XSAccessor.pm and change the
version line to 1.16
our $VERSION = '1.16';

11) Patch /usr/lib/perl5/vendor_perl/Slim/Control/Request.pm. Attention!
The last line contains two consecutive single quotes, not a double
quote!

# get a parameter by name
sub getParam {
- return $_[0]->{'_params'}->{ $_[1] };
+ my $r = $_[0]->{'_params'}->{ $_[1] };
+ return ($r ne '') ? $r : undef;
}

12) As always with opensuse set the following link:
ln -s /usr/lib/perl5/vendor_perl/Slim/
/usr/lib/perl5/vendor_perl/5.16/Slim

13) Open ports as necessary, i.e. TCP 9000, UDP/TCP 3483

14) Stop and restart LMS service:

systemctl stop logitechmediaserver.service
systemctl start logitechmediaserver.service



Making LMS run with Perl5.16 was really not complicated. Even Logitech
should be capable of doing this ;-)

Cheers
Frank


------------------------------------------------------------------------
frank_from_hh's Profile: http://forums.slimdevices.com/member.php?userid=25866
View this thread: http://forums.slimdevices.com/showthread.php?t=96492

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to