Wow, it really shouldn't be this hard...  I don't use Mandriva as my
regular server, but I've done a bit of testing and have a few
comments:

cfseibert;315864 Wrote: 
> My system uses Mandriva 2007, but this general approach might be helpful
> for others using distributions that don't play nice

- It's important to note that at some point (probably with the
introduction of 2008.0) Mandriva switched from a non-threaded perl to a
threaded perl.  This is important because SC only includes binary perl
modules for threaded perl.  With the older non-threaded perl, you need
to install those modules from CPAN, the Mandriva repos or by running
build-perl-modules.pl.  This is no longer necessary with the latest
Mandriva release.

- It's also worth noting that, at least in older Mandriva releases,
it's a PITA to compile anything because the standard install doesn't
include any of the normal linux build tools.

> I found a forum message that suggested trying the tarball version if the
> RPM version should be frustrating. The situation qualified, so I gave it
> a try.
> 
> The tarball version turns out to have all the Perl modules built and in
> directories in the tarball.

-Can you be more specific?  There should not be any perl modules
included in the tarball that are not also in the RPM.

> The tarball version of the server started right up for me, but when it
> came time to run scanner, scanner complained that Perl module
> ZLIB::Compress was installed but was a version that was not compatible
> with SqueezeCenter. The version it wanted was the same as the one
> installed. Most vexing.

- I have seen similar problems with the SC module version checking on
various versions of Mandriva, but I don't know what the problem is.

> About that user: The user can't be root. If you're upgrading, check your
> users and use the one you already have, probably "slimserver". If you
> don't already have a user, just make a new one. Copy the format of your
> other system users. It doesn't need login privileges, although I gave it
> a login shell just so I could su to it to test starting the server by
> hand. Make its home directory the SqueezeCenter home directory - the
> one slimserver.pl lives in. Call it whatever you want. You don't need
> to remember its password. I should remove its login privilege now that
> I don't need it anymore.

- If you install the RPM, the squeezecenter user is created with:

useradd -r -g squeezecenter -d /usr/share/squeezecenter -s
/sbin/nologin -c "SqueezeCenter Music Server" squeezecenter

> In the init script itself (/etc/rc.d/init.d on Mandriva), the only thing
> I had to do was change the name of the server executable from
> "squeezecenter.pl" to "slimserver.pl". I assume it's "squeezecenter" in
> the RPM version from which I grabbed my init script, but it's
> "slimserver.pl" in the tarball.

- The RPM uses squeezecenter-server and squeezecenter-scanner.

> 1. If the RPM version doesn't work, use the tarball version of the
> server.

- As I mentioned earlier, there should be no files or functionality
present in the tarball but missing in the RPM.  If there is, it's a bug
and I'd prefer to fix the RPM. 

- Also, I recently did a test install of the SC 7.1 RPM on Mandriva
2008 Spring.  It was pretty painless.  You do not need to run
build-perl-modules.pl or install anything from CPAN.  The only issue I
saw was that you need to install perl-CGI from the Mandriva CC (this is
due to the version checking issue mentioned above).  Otherwise you do
not need to do anything other than install the RPM.


-- 
Fletch
------------------------------------------------------------------------
Fletch's Profile: http://forums.slimdevices.com/member.php?userid=529
View this thread: http://forums.slimdevices.com/showthread.php?t=49345

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

Reply via email to