PDA

View Full Version : Beginner questions about ActiveState Perl



cliveb
2006-11-25, 04:02
I'm running Slimserver 6.5.0 on a Windows 2000 machine. I just installed the official Windows release of Slimserver as it came out of the box. It's working fine.

I've seen references to ActiveState Perl, and am interested in whether it could be of any benefit on my setup. I've searched the forums and wiki, but basic info about what it does and how to configure it is sketchy. So here are my questions:

1. Presumably the stock Windows Slimserver installation includes some kind of Perl interpreter sufficient for the task. I am pretty sure that my Windows 2000 system didn't have a Perl system installed beforehand. So what are the benefits of using ActiveState Perl instead? Are we talking about performance improvements, reliability, or both?

2. Is there a step-by-step guide to setting up Slimserver to use ActiveState Perl?

3. Should I even be bothering, given that Slimserver is working fine as it is? Is ActiveState Perl only needed in order to run certain plugins that rely on its additional features?

EDIT: sorry, forgot to mention that I have LazySearch and SongScanner plugins installed, in case this is relevant.

Thanks.

oreillymj
2006-11-25, 07:45
Unless you plan to start developing in perl, there is no reason to install Activestate perl. You will not notice any difference/improvement by installing it. Activestate also supply the perl binaries and modules for free on their site which is enough to begin developing using Notepad as an editor. It's do-able but not very user friendly. The "professional" development tools are more expensive.

Slimserver for Windows is developed in perl and compiled using Activestate development tools into a Windows .exe file.
Everything needed to run the app is delivered within the Slimserver installer. You do not need to install anything else.

cliveb
2006-11-25, 09:11
Unless you plan to start developing in perl, there is no reason to install Activestate perl.
...
Slimserver for Windows is developed in perl and compiled using Activestate development tools into a Windows .exe file.
Everything needed to run the app is delivered within the Slimserver installer. You do not need to install anything else.
OK, I understand. I did not realise that the Slimserver Perl code was already compiled. Thanks for clarifying this.

stinkingpig
2006-11-25, 09:44
On 11/25/06, oreillymj
<oreillymj.2hu29b1164466201 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Unless you plan to start developing in perl, there is no reason to
> install Activestate perl. You will not notice any
> difference/improvement by installing it. Activestate also supply the
> perl binaries and modules for free on their site which is enough to
> begin developing using Notepad as an editor. It's do-able but not very
> user friendly. The "professional" development tools are more
> expensive.
>

There is only one editor and its name is http://www.vim.org :) Vi and
the taglist plugin are all I use to write Perl, though the Active
State Perl Developer's Kit is quite handy (provides tools to compile
your scripts into .exe apps and services). I did try Komodo for a
couple of days a few years ago, but it was terribly slow at the time.
--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

peter
2006-11-25, 10:19
On Sat, 25 Nov 2006 08:11:55 -0800, "cliveb"
<cliveb.2hu66z1164471301 (AT) no-mx (DOT) forums.slimdevices.com> said:
>
> oreillymj;157388 Wrote:
> > Unless you plan to start developing in perl, there is no reason to
> > install Activestate perl.
> > ...
> > Slimserver for Windows is developed in perl and compiled using
> > Activestate development tools into a Windows .exe file.
> > Everything needed to run the app is delivered within the Slimserver
> > installer. You do not need to install anything else.
> OK, I understand. I did not realise that the Slimserver Perl code was
> already compiled. Thanks for clarifying this.

Well, it's not exactly compiled. That explains why the Plugins are
installed as Perl source code. In fact the activestate 'compiler' just
takes a copy of the interpreter and all the source files and libraries
that you need and bundles them together in one exe file. When the exe
file is executed the compiler is extracted and starts processing the
bundled source code. It's quite an interesting system.

Regards,
Peter

JJZolx
2006-11-25, 12:15
I'm running Slimserver 6.5.0 on a Windows 2000 machine. I just installed the official Windows release of Slimserver as it came out of the box. It's working fine.

I've seen references to ActiveState Perl, and am interested in whether it could be of any benefit on my setup.
Reasons to run Perl code instead of the 'compiled' package on Windows:

If you want to keep up with latest beta releases of SlimServer you can use SVN (TortoiseSVN on Windows is easy to use) and check out a copy of the Perl code from the Slim Devices SVN repository. Then when you want to update, you'll only need to download a handful of files (whichever files have been added or changed since the last time you updated) and it takes only a moment instead of having to download the entire program and unzip or install the whole thing.

If you want to do development, you can't do it with the compiled version. You need the Perl files that you can edit and test immediately.

Keeping up with the latest changes to the 'stable' branch can have its advantages in reliability. Supposedly tested bug fixes have been checked in to this branch, fixing issues with the last official release.

It's no faster. In and of itself, running the Perl version is no more stable or reliable. You can get the same benefits by running nightlies of the compiled exe.

lampis
2006-11-30, 11:07
I was asking me, if is possible to use plugins with the compiled SlimServer. The doubt comes to my mind because, if the exe file is a bunch of perl files besides a perl engine, what happens if i want to add more features. I need to compile again the whole thing?

ceejay
2006-11-30, 11:27
I was asking me, if is possible to use plugins with the compiled SlimServer. The doubt comes to my mind because, if the exe file is a bunch of perl files besides a perl engine, what happens if i want to add more features. I need to compile again the whole thing?

Yes, it is. That's how all the plugins work - they are supplied as .pm files which you pop into the right place, slimserver picks them up and uses them... Try it!

Ceejay

lampis
2006-11-30, 15:53
I'm trying to compile SlimServer 6.2, with ActiveState Perl Dev Kit but I have several problems with a lot of includes ("use some::thing"), the errors messages indicate that I probably can fix that adding directories into the Module Search Path, but I already added a lot of directories and I can't fix the problem.

stinkingpig
2006-11-30, 15:59
On 11/30/06, lampis
<lampis.2i3y1n1164927301 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I'm trying to compile SlimServer 6.2, with ActiveState Perl Dev Kit but
> I have several problems with a lot of includes ("use some::thing"), the
> errors messages indicate that I probably can fix that adding directories
> into the Module Search Path, but I already added a lot of directories
> and I can't fix the problem.
>

why?

you don't have the modules. Try perl package manager and see if it can
do it, and try build-modules.pl.

--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

lampis
2006-11-30, 16:37
On 11/30/06, lampis
<lampis.2i3y1n1164927301 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I'm trying to compile SlimServer 6.2, with ActiveState Perl Dev Kit but
> I have several problems with a lot of includes ("use some::thing"), the
> errors messages indicate that I probably can fix that adding directories
> into the Module Search Path, but I already added a lot of directories
> and I can't fix the problem.
>

why?

you don't have the modules. Try perl package manager and see if it can
do it, and try build-modules.pl.

--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional


Ok, thanks, I will try it, and I will let you know if that works.

lampis
2006-12-01, 15:58
On 11/30/06, lampis
<lampis.2i3y1n1164927301 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I'm trying to compile SlimServer 6.2, with ActiveState Perl Dev Kit but
> I have several problems with a lot of includes ("use some::thing"), the
> errors messages indicate that I probably can fix that adding directories
> into the Module Search Path, but I already added a lot of directories
> and I can't fix the problem.
>

why?

you don't have the modules. Try perl package manager and see if it can
do it, and try build-modules.pl.

--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

I already installed all the packages that I think this thing needs to compile, but the compiler is still bothering me for these six modules.

Devel\Size\Report.pm
Date\Parse.pm
Template\Stash\XS.pm
GD.pm
Template.pm -- in this case, the compiler found a mismatch between the file and module names (Template and template)
Path\Class.pm
File\BOM.pm

lampis
2006-12-01, 16:02
On 11/30/06, lampis
<lampis.2i3y1n1164927301 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> I'm trying to compile SlimServer 6.2, with ActiveState Perl Dev Kit but
> I have several problems with a lot of includes ("use some::thing"), the
> errors messages indicate that I probably can fix that adding directories
> into the Module Search Path, but I already added a lot of directories
> and I can't fix the problem.
>

why?

you don't have the modules. Try perl package manager and see if it can
do it, and try build-modules.pl.

--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

I already installed all the packages that I think this thing needs to compile, but the compiler is still bothering me for these six modules.

Devel\Size\Report.pm
Date\Parse.pm
Template\Stash\XS.pm
GD.pm
Template.pm -- in this case, the compiler found a mismatch between the file and module names (Template and template)
Path\Class.pm
File\BOM.pm
______________