Monday, October 19, 2009

slimserver 7.4 install on Solaris

I posted this up on the slimserver forum but thought I'd repeat it here as I had a bit of a tussle to get it working using the build scripts. Once I ditched the auto build scripts and ran through the steps below it all worked fine;

My configuration utilises an already running mysql instance and I have at least one module installed through CPAN (as mentioned below) so YMMV, but hopefully this will be of use.


1. Unzip tarball
gzcat squeezeboxserver-7.4.0-28672.tgz | gtar xvf -

2. Download the contents of http://svn.slimdevices.com/repos/sli...k/vendor/CPAN/ into a separate build directory and uncompress each module

3. Using the following environment - v5.8.8 version of perl (I use the Blastwave package), Sun Studio 12 C Compiler - build each package. eg;
cd AutoXS-Header-1.02
perl Makefile.PL
make

4. Create our new arch directory and then copy each of the compiled .so files into the new squeezeserver install.
cd squeezeboxserver-7.4.0-28672
mkdir -p CPAN/arch/5.8.8/i86pc-solaris-thread-multi/auto
cd
cp -pr */blib/arch/auto/* ../squeezeboxserver-7.4.0-28672/CPAN/arch/5.8.8/i86pc-solaris-thread-multi/auto

5. edit the first line of slimserver.pl so it uses /opt/csw/bin/perl

6. Try and run slimserver.pl. At this point I got an error;
The following CPAN modules were found but cannot work with Squeezebox Server:
Audio::Scan (loaded 0.38, need 0.41)

I already had version 0.41 installed through cpan so I ran through the following to fix;
cd CPAN
mv Audio Audio.old
cd ..
vi modules.conf -> Audio::Scan 0.41

7. Copy over old prefs/server.prefs file

8. Copy old errmsg.sys to MySQL directory
cp /usr/local/slimserver/MySQL/errmsg.* MySQL/

9. chown -R to slimserver user, move into the usual place (on my system it is /usr/local/slimserver) then su to the slimserver user and test.
su - slimserver
./slimserver.pl

No comments:

Post a Comment