PDA

View Full Version : Slimserver Windows installation



Craig, James (IT)
2005-01-28, 03:31
You can put them in the Plugins directory (in a sub dir else they will
be considered a plugin) then use them like this:

use Plugins::<sub dir name>::<module name>
Eg:
Use Plugins::iTunesUpdatesSupport::Time::Stopwatch

Or by adding the path with "use lib" which I think has the benefit of
allowing the use of a module already installed elsewhere on the user's
system. (I copied this method from the SlimScrobbler plugin)

use File::Spec;
use FindBin qw($Bin);
use lib(File::Spec->catdir($Bin, 'Plugins','iTunesUpdateSupport'));
use Time::Stopwatch;

Magic eh?

James

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
Herger
Sent: 28 January 2005 10:26
To: Slim Devices Discussion
Subject: [slim] Slimserver Windows installation

> On one machine but not another - although the module comes with the
> plugin.
> I would expect most plugins to be bundled with the modules they
require
> (he says, having just written one that isn't)

I never included them... Where would you put them? I did not know perl
compilations could load modules that are not compiled in...

> Did you just mean that with perl installed you get a lot of extra
> modules to play with?

Yes. I expect a lot more modules available with a standard perl
installation than are needed by slimserver.

>
> James
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
> Herger
> Sent: 28 January 2005 10:16
> To: Slim Devices Discussion
> Subject: [slim] Slimserver Windows installation
>
>> I'm fairly sure this is not the case.
>> Compiled SlimServer works fine with for example my iTunesUpdate which
>> uses an additional module.
>
> Hmm... but you do have perl installed on your system?
>
>
>> James
>>
>> -----Original Message-----
>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>> Herger
>> Sent: 28 January 2005 09:34
>> To: Slim Devices Discussion
>> Subject: [slim] Slimserver Windows installation
>>
>>> I am ready to move Slimserver from my test environment to a
> productive
>>> server. So far I used the windows compiled version of Slimserver. I
> am
>>> wondering whether I can install PERL and the Perl modules of
>> Slimserver
>>> on
>>> A Windows 2003 platform. If so any advantages/disadvantages?
>>
>> Go for perl if you don't need the nifty SlimServer icon in your
> taskbar.
>>
>> When you start using third party plugins you'll often need additional
>> perl
>> modules which are not available with the compiled version.
>>
>
>
>



--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

mherger
2005-01-28, 06:24
Craig

[..]
> Or by adding the path with "use lib" which I think has the benefit of
> allowing the use of a module already installed elsewhere on the user's
> system. (I copied this method from the SlimScrobbler plugin)
>
> use File::Spec;
> use FindBin qw($Bin);
> use lib(File::Spec->catdir($Bin, 'Plugins','iTunesUpdateSupport'));
> use Time::Stopwatch;
>
> Magic eh?

It does the magic when I run my script using perl, but not for the Windows
executable. Does it really work for you, even without perl installed on
your disk?

Another strange thing is I can't get any output when using the binary and
starting it with the -d_plugins parameter (or activating the latter in the
web interface)

Michael

>
> James
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
> Herger
> Sent: 28 January 2005 10:26
> To: Slim Devices Discussion
> Subject: [slim] Slimserver Windows installation
>
>> On one machine but not another - although the module comes with the
>> plugin.
>> I would expect most plugins to be bundled with the modules they
> require
>> (he says, having just written one that isn't)
>
> I never included them... Where would you put them? I did not know perl
> compilations could load modules that are not compiled in...
>
>> Did you just mean that with perl installed you get a lot of extra
>> modules to play with?
>
> Yes. I expect a lot more modules available with a standard perl
> installation than are needed by slimserver.
>
>>
>> James
>>
>> -----Original Message-----
>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>> Herger
>> Sent: 28 January 2005 10:16
>> To: Slim Devices Discussion
>> Subject: [slim] Slimserver Windows installation
>>
>>> I'm fairly sure this is not the case.
>>> Compiled SlimServer works fine with for example my iTunesUpdate which
>>> uses an additional module.
>>
>> Hmm... but you do have perl installed on your system?
>>
>>
>>> James
>>>
>>> -----Original Message-----
>>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>>> Herger
>>> Sent: 28 January 2005 09:34
>>> To: Slim Devices Discussion
>>> Subject: [slim] Slimserver Windows installation
>>>
>>>> I am ready to move Slimserver from my test environment to a
>> productive
>>>> server. So far I used the windows compiled version of Slimserver. I
>> am
>>>> wondering whether I can install PERL and the Perl modules of
>>> Slimserver
>>>> on
>>>> A Windows 2003 platform. If so any advantages/disadvantages?
>>>
>>> Go for perl if you don't need the nifty SlimServer icon in your
>> taskbar.
>>>
>>> When you start using third party plugins you'll often need additional
>>> perl
>>> modules which are not available with the compiled version.
>>>
>>
>>
>>
>
>
>



--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

mherger
2005-01-28, 07:00
Sorry, I was using an old (a few weeks) nightly. It's perfectly working
now. Thanks a lot for your hint about including those modules! I'll upload
updated plugins right now...

Michael

> Craig
>
> [..]
>> Or by adding the path with "use lib" which I think has the benefit of
>> allowing the use of a module already installed elsewhere on the user's
>> system. (I copied this method from the SlimScrobbler plugin)
>>
>> use File::Spec;
>> use FindBin qw($Bin);
>> use lib(File::Spec->catdir($Bin, 'Plugins','iTunesUpdateSupport'));
>> use Time::Stopwatch;
>>
>> Magic eh?
>
> It does the magic when I run my script using perl, but not for the
> Windows executable. Does it really work for you, even without perl
> installed on your disk?
>
> Another strange thing is I can't get any output when using the binary
> and starting it with the -d_plugins parameter (or activating the latter
> in the web interface)
>
> Michael
>
>>
>> James
>>
>> -----Original Message-----
>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>> Herger
>> Sent: 28 January 2005 10:26
>> To: Slim Devices Discussion
>> Subject: [slim] Slimserver Windows installation
>>
>>> On one machine but not another - although the module comes with the
>>> plugin.
>>> I would expect most plugins to be bundled with the modules they
>> require
>>> (he says, having just written one that isn't)
>>
>> I never included them... Where would you put them? I did not know perl
>> compilations could load modules that are not compiled in...
>>
>>> Did you just mean that with perl installed you get a lot of extra
>>> modules to play with?
>>
>> Yes. I expect a lot more modules available with a standard perl
>> installation than are needed by slimserver.
>>
>>>
>>> James
>>>
>>> -----Original Message-----
>>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>>> Herger
>>> Sent: 28 January 2005 10:16
>>> To: Slim Devices Discussion
>>> Subject: [slim] Slimserver Windows installation
>>>
>>>> I'm fairly sure this is not the case.
>>>> Compiled SlimServer works fine with for example my iTunesUpdate which
>>>> uses an additional module.
>>>
>>> Hmm... but you do have perl installed on your system?
>>>
>>>
>>>> James
>>>>
>>>> -----Original Message-----
>>>> From: discuss-bounces (AT) lists (DOT) slimdevices.com
>>>> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Michael
>>>> Herger
>>>> Sent: 28 January 2005 09:34
>>>> To: Slim Devices Discussion
>>>> Subject: [slim] Slimserver Windows installation
>>>>
>>>>> I am ready to move Slimserver from my test environment to a
>>> productive
>>>>> server. So far I used the windows compiled version of Slimserver. I
>>> am
>>>>> wondering whether I can install PERL and the Perl modules of
>>>> Slimserver
>>>>> on
>>>>> A Windows 2003 platform. If so any advantages/disadvantages?
>>>>
>>>> Go for perl if you don't need the nifty SlimServer icon in your
>>> taskbar.
>>>>
>>>> When you start using third party plugins you'll often need additional
>>>> perl
>>>> modules which are not available with the compiled version.
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>



--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

kdf
2005-01-28, 10:22
Quoting Michael Herger <slim (AT) herger (DOT) net>:

> Craig
>
> [..]
> > Or by adding the path with "use lib" which I think has the benefit of
> > allowing the use of a module already installed elsewhere on the user's
> > system. (I copied this method from the SlimScrobbler plugin)
> >
> > use File::Spec;
> > use FindBin qw($Bin);
> > use lib(File::Spec->catdir($Bin, 'Plugins','iTunesUpdateSupport'));
> > use Time::Stopwatch;
> >
> > Magic eh?
>
> It does the magic when I run my script using perl, but not for the Windows
> executable. Does it really work for you, even without perl installed on
> your disk?
>
> Another strange thing is I can't get any output when using the binary and
> starting it with the -d_plugins parameter (or activating the latter in the
> web interface)
>
> Michael

Actually, the server will look in the Plugins dir for a CPAN tree just like you
have when you run the .pl versions and perl. The trick is that it either must
be supplied or you'd have to install ActivePerl anyway in order to download and
compile your own copies of the extra modules.

-kdf