PDA

View Full Version : CPAN modules



Danny Rego
2004-08-09, 18:21
I've got a few (potentially stupid) questions for the veterans out there. I'm new to the squeezebox scene, and just started working on a plug in a few days ago. I'm making great progress, but one of the modules I need is LWP with working FTP protocol support, and it appears that the version included with the server does not support FTP. So the questions are...

#1. How do I install a more recent version of LWP??? (I've only used perl in *nix systems before, and it appears the slim server software is just some sort of perl interpreter, but I'm not sure if I can just do a "perl -MCPAN -e 'install LWP'" using that executable) (I know I could hack it in for myself by downloading it from CPAN, and copying the files to the CPAN directory, but is there a more "proper" way???)

#2. What/who decides what CPAN modules are included with the server software, and can I request that a later version of LWP that supports FTP be included with it?!

Thanks for taking the time!

Danny Rego

Jake Hawkes
2004-08-09, 20:40
Danny Rego said:
> I've got a few (potentially stupid) questions for the veterans out there.
> I'm new to the squeezebox scene, and just started working on a plug in a
> few days ago. I'm making great progress, but one of the modules I need is
> LWP with working FTP protocol support, and it appears that the version
> included with the server does not support FTP. So the questions are...
>
> #1. How do I install a more recent version of LWP??? (I've only used
> perl in *nix systems before, and it appears the slim server software is
> just some sort of perl interpreter, but I'm not sure if I can just do a
> "perl -MCPAN -e 'install LWP'" using that executable) (I know I could
> hack it in for myself by downloading it from CPAN, and copying the files
> to the CPAN directory, but is there a more "proper" way???)
>
> #2. What/who decides what CPAN modules are included with the server
> software, and can I request that a later version of LWP that supports FTP
> be included with it?!
>


I too am interested in this. I understand that the easiest path is to
just package all the needed CPAN modules into the slim package, but its a
little wastefull. Ultimatly, an intelligent installer might be able to
detect that you have a CPAN repository on your machine and can test to
make sure that everything is of a high enough version.

dean
2004-08-10, 12:07
On Aug 9, 2004, at 6:21 PM, Danny Rego wrote:

> I've got a few (potentially stupid) questions for the veterans out
> there. I'm new to the squeezebox scene, and just started working on
> a plug in a few days ago. I'm making great progress, but one of the
> modules I need is LWP with working FTP protocol support, and it
> appears that the version included with the server does not support
> FTP. So the questions are...
>
> #1. How do I install a more recent version of LWP??? (I've only used
> perl in *nix systems before, and it appears the slim server software
> is just some sort of perl interpreter, but I'm not sure if I can just
> do a "perl -MCPAN -e 'install LWP'" using that executable) (I know I
> could hack it in for myself by downloading it from CPAN, and copying
> the files to the CPAN directory, but is there a more "proper" way???)
>
> #2. What/who decides what CPAN modules are included with the server
> software, and can I request that a later version of LWP that supports
> FTP be included with it?!
That would be me. We generally just include the modules that
SlimServer needs for operation, but for LWP, we've included (almost)
the whole package. You can include CPAN modules with Plugins in your
plugin subdirectory (check out the RealSlim module for an example).
But for LWP, I'm happy to include the whole thing.

Please file a bug about LWP and I'll try to get to it ASAP.