Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

SOAP::Lite on Linux

by Khurrum (Novice)
on Nov 14, 2007 at 09:24 UTC ( #650702=perlquestion: print w/replies, xml ) Need Help??

Khurrum has asked for the wisdom of the Perl Monks concerning the following question:

Hi i have been playing around with SOAP::Lite using ActiveState's ActivePerl distribution on Windows. I used the PPM repositories to install SOAP::Lite but now i want to use SOAP::Lite with my Perl script on a Linux machine.

It seems that ActiveState does not maintain PPM repositories for Linux. So would anyone be able to suggest on what path i should follow. I actually want to write an installation package, which i can run in Linux and it would install SOAP::Lite and the required prereqs on its own without any user interaction. It is a safe assumption that the system will have ActivePerl 5.8. I have looked into CPAN but installing SOAP::Lite seems like a pain because it requires a lot of user interaction where it keeps asking to append pre-reqs after pre-reqs. I just want to have SOAP::Lite properly installed with minimum user interaction

Can someone please help me out or point me in the right direction. Thanks in advance.

Replies are listed 'Best First'.
Re: SOAP::Lite on Linux
by syphilis (Archbishop) on Nov 14, 2007 at 09:50 UTC
    Hi Khurrum,

    According to http://ppm.activestate.com/BuildStatus/5.8-S.html, SOAP::Lite is core for ActivePerl 5.8 on all operating systems (including Linux) ... so, if you have ActivePerl 5.8.x on your linux box, then you already have SOAP::Lite. (Afaict, they won't have a PPM for it for *any* OS - simply because it *is* core.)

    As regards CPAN.pm, I don't use it, but I believe you'll be able to set it up to do the things you want (without being continually prompted).

    Cheers,
    Rob
Re: SOAP::Lite on Linux
by erroneousBollock (Curate) on Nov 14, 2007 at 09:51 UTC
    If at all possible, use the Unix system's package management systems; apt, yum and ports are examples.

    If you must go outside their package management systems, use the Perl Archive Toolkit to create package "bundles".

    It is possible to programatically drive the CPAN module to install packages from source, but I wouldn't recommend it.

    -David

      ... CPAN module to install packages from source, but I wouldn't recommend it.

      I'm completely floored by that. Is it a common sentiment?

      One of the first things I do on any given desktop platform is hit the cpan shell and start installing. Usually the stuff in the system's local packages is very out of date, since the maintainers rarely enjoy maintaining 300 module packages. So they don't do it very often.

      -Paul

        The CPAN shell is fine; so therefore is the module.

        I'm only arguing against programatically driving the CPAN module for the purpose of automated installation.

        There's a bunch of things that can go wrong that are better left to either a live operator, or the system's package management tools.

        -David

Re: SOAP::Lite on Linux
by Krambambuli (Curate) on Nov 14, 2007 at 09:55 UTC
    It might depend on what Linux distribution you are using; probably the easiest way to go is to use your distribution's package management utility and look for SOAP::Lite.
    Another way would be to rely on CPAN. Try to run
    perl -MCPANPLUS -e shell
    or
    perl -MCPAN -e shell
    and see what you get, afterwards install SOAP::Lite.

    To try a minimum install is of course possible too; anyway, be prepared to encounter real difficulties for solving dependencies properly - at least in my experience, more often than not it's more trouble than it's worth.

    Krambambuli
    ---
    enjoying Mark Jason Dominus' Higher-Order Perl
Re: SOAP::Lite on Linux
by DrHyde (Prior) on Nov 14, 2007 at 11:15 UTC
    Configure CPAN.pm to automatically follow pre-reqs then:
    $ perl -MCPAN -e shell ... > o conf prerequisites_policy follow > o conf commit > exit
    Why on earth anyone would want to use Activestate anywhere other than Windows is beyond me - it's only useful on platforms that lack development tools, everywhere else stuff generally Just Works. Even on Windows there are now better alternatives, such as Strawberry Perl.
      Why on earth anyone would want to use Activestate anywhere other than Windows is beyond me

      (Like you, I felt that the OP is using ActivePerl on Linux ... I'm not entirely positive that's the case.) I guess that you might like to use ActivePerl on Linux if the Perl that you have access to is a non-devel (ie crippled) build, or if you didn't want to go to the trouble of building perl yourself, or if you didn't have access to (or feel competent with) a C compiler. There may be other reasons.

      Even on Windows there are now better alternatives, such as Strawberry Perl

      That's a *very* subjective appraisal of Strawberry Perl. For one thing, Strawberry Perl doesn't come with a PPM utility - therefore if you want to install anything that needs a third party library (eg Math::GMP, XML::Parser) then you first need to install that third party library. With ActivePerl, you can often find a PPM package that doesn't need that third party library.

      The MinGW installation that ships with Strawberry Perl does not include the fortran compiler (g77). Therefore any modules that rely on g77 (eg PGPLOT, PDL) will not build on Strawberry Perl, though they will build seamlessly on ActivePerl (if you're using a fully functional MinGW installation).

      Hopefully, some of these issues will be addressed with the next release of Strawberry Perl - which is, I agree, "on the right track".

      Cheers,
      Rob
        With ActivePerl, you can often find a PPM package that doesn't need that third party library.

        Or rather you can't find a ppm package of a cpan module.
        If one builds Perl with MinGW, can install any cpan module (working on windows).

        Radek

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://650702]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-07-03 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?