Re: distribute and install problem

From: Martien Verbruggen (mgjv_at_tradingpost.com.au)
Date: 05/04/04


Date: 03 May 2004 22:55:54 GMT


[Please, in the future, put your reply _after_ the suitably trimmed
text you reply to. This is the convention on this newsgroup, and
Usenet in general. Thank you]
[Post re-arranged]

On Mon, 03 May 2004 13:27:46 GMT,
        Asier <as5yer_nh9ag@terra.es> wrote:

>> It's hard to tell what your wish is from the above:
>>
>> Do you want to
>>
>> 1 - Compile your modules on the machine they are installed on?
>>
>> If so, what's wrong with perl Makefile.PL; make install?
>>
>> 2 - Compile them on some machine with the same architecture/OS as your
>> target machine, and then package them up?
>>
>> use the OSes native packages (rpm, deb), or the Perl distro native
>> packages (ppm), or create a zip file, and tell people how to unpack
>> it.
>>
>> It severely depends on your target platform.
>
> Maybe i wrote it incorrectly.
>
> I have developed my own modules, for my
> applicattion. The problem is that these modules i have
> developed, use others previously downloaded from CPAN (for example
> XML::Simple).
>
> So i want to compile and install XML::Simple in every target
> machine, instead of packing XML::Simple with my own modules
> with PAR. Becouse if i pack XML::Simple with my modules,
> XML::Simple uses XS modules, and that gives me errors when
> i try to use my app in a different box (for example if i compile
> XML::Simple in a RedHat box, pack my modules with PAR,
> and target machines use Mandrake, and have a different architecture,
> the app doesnt work).

You don't want to ever pack other modules with your own. You simply
express the dependency in the Makefile.PL, and leave it up to the
admin to install the module.

What would happen if an admin has installed the latest version of
XML::Simple, then installs your module, which probably contains an
older version of XML::Simple, overwriting the changes just made.

> So my wish, is distribute my modules, with the sources of
> the XML::Simple version i use, and zip everything in a file
> to be distributed. Then, target machines, would not have
> to write install sentences more than once, to compile
> these attached modules.
> Yesterday, i discovered Module::Install::Bundle. Which bundles
> the modules i use. I suppose that this is what i need.

Yes, it does sound like Bundles are what you need. You don't
necessarily need that module. All you need to do is create a bundle
file, and use the CPAN module to install the bundle in one go. The
documentation of the CPAN module has some information about this (the
section with the title "Bundles").

You write a bundle file that expresses which modules need to be
installed, and the CPAN module will fetch them, compile them, and
install them, all from one command.

I don't know how well bundles work on Windows/ActiveState, but you
seem to be concentrating on Linux platforms. Maybe someone with
experience with ppm can weigh in, if needed.

Martien

-- 
                        | 
Martien Verbruggen      | Conservatives are not necessarily stupid,
Trading Post Australia  | but most stupid people are conservatives. --
                        | John Stuart Mill


Relevant Pages

  • Re: distribute and install problem
    ... >> and target machines use Mandrake, and have a different architecture, ... > admin to install the module. ... and use the CPAN module to install the bundle in one go. ...
    (comp.lang.perl.modules)
  • NEWBIE: Eclipse application id problem - Unable to start IDE. using RCP.
    ... I tried to install ... it gave me a bunch of errors in the .log file. ... # in favour of the osgi.splashPath searching outlined above. ... start level for the bundle. ...
    (comp.lang.java.softwaretools)
  • Re: Question for this Group ... dont flame me :)
    ... > default libraries and modules. ... So I wound up documenting the core basic perl modules that had ... LOL) who doesn't have access to install as root or ... said that it was our set of CPAN module extensions... ...
    (perl.beginners)
  • Re: Obstacles for Tcl/Tk commercial application development ?
    ... That would depend on the OEM, ... Does the OEM bundle anything that needs PDF support? ... bundled with the base install. ... I don't expect Google, for example, installs a PDF reader on every one of their trillion+ servers. ...
    (comp.lang.tcl)
  • Re: Where did GraphicConverter go?
    ... For a short time it was included in the software bundle ... It's still bundled with the Pro models (PowerMac and PowerBook). ... I wonder if I made a mistake in paying for the upgrade. ... install" shouldn't have touched GC. ...
    (comp.sys.mac.apps)