PDA

View Full Version : Perl 5.8 on SME6



Richard Elen
2005-04-05, 03:16
> From: Michael Herger <slim (AT) herger (DOT) net>

> The missing XML::Parser seems to be a common problem (though not for me
> :-/). I got quite a few mails about it. So I dig through the slimserver
> code and found the following comment:
>
> # Force XML::Simple to use XML::Parser for speed. This is done
> # here so other packages don't have to worry about it. If we
> # don't have XML::Parser installed, we fall back to PurePerl.

So... how do we get it to work, if it would improve performance? It
evidently isn't a matter of simply building it.

>> Well, in fact I still get the error message on machine startup that I
>> got with 5.4.x, namely:
>> nice: invalid priority '--user'
>> so I have to start it from the command line...
>
> How do you start the script? Do you use a wrapper script which tries to
> improve performance by renicing it?

I'll have to look deeper than I've managed so far. Your solution on the
Perl front was useful - thanks for making it available! - because I run
a NetMax 4.x system, (with two versions of Perl*). As a result I'll need
to look at what it thinks it's doing on startup. SS has evidently
updated the appropriate scripts /it/ thinks need to be updated but there
is probably more to it than that.

So I am currently starting the server with
../slimserver --user slimserver
which appears to work.

Meanwhile, interestingly enough, more aspects of the server are working
than I had previously under 5.4.1/Linux (though not as many as
5.4.x/Windows). The BBC News RSS feed now works and so does the RSS
screensaver; I can still access Shoutcast stations; music appears to be
listed reasonably correctly (deeper look needed) and plays out, though
it hiccups while getting a list of internet radio stations. I also now
get audio from Live365 which I didn't get before: but though I can list
stations, when I try to play them I get a recorded message saying I need
to be logged in. However, I still get "login problem" when I try logging
into live365, which is a pain as I can't access my favorites either.

[*NetMax 4.x runs on RH7.2 and has two versions of Perl, one for the
world at large (5.6.1 as standard) and one for its own scripts (a rather
earlier version). I didn't want to accidentally overwrite the calls to
latter as it would basically stop the server UI from working.]

--Richard E

mherger
2005-04-05, 03:31
[..]
>> The missing XML::Parser seems to be a common problem (though not for
>> me :-/). I got quite a few mails about it. So I dig through the
>> slimserver code and found the following comment:
>> # Force XML::Simple to use XML::Parser for speed. This is done
>> # here so other packages don't have to worry about it. If we
>> # don't have XML::Parser installed, we fall back to PurePerl.
>
> So... how do we get it to work, if it would improve performance? It
> evidently isn't a matter of simply building it.

Where would you expect speed improvements?

>>> Well, in fact I still get the error message on machine startup that I
>>> got with 5.4.x, namely:
>>> nice: invalid priority '--user'
>>> so I have to start it from the command line...
>> How do you start the script? Do you use a wrapper script which tries
>> to improve performance by renicing it?
[..]
> to look at what it thinks it's doing on startup. SS has evidently
> updated the appropriate scripts /it/ thinks need to be updated but there
> is probably more to it than that.

Could you give us the content of /etc/sysconfig/slimserver (if this
exists)? And /etc/initi.d/slimserver?

> So I am currently starting the server with
> ./slimserver --user slimserver
> which appears to work.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)