Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl Grant Approved: Improve Perl 5

by Aristotle (Chancellor)
on Feb 22, 2006 at 18:02 UTC ( [id://532049]=note: print w/replies, xml ) Need Help??


in reply to Perl Grant Approved: Improve Perl 5

  • Allow relocatable Perl installations, which permits developers to distribute applications complete with a bundled Perl.

A big round of applause!! Installing modules without root access will finally become trivial. (It’s not hard right now, but it’s a pain to get it going, particularly if you want CPAN.pm to Just Work, and a novice will not easily figure it out.) This should be a huge boon to Perl – huge.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^2: Perl Grant Approved: Improve Perl 5
by dsb (Chaplain) on Feb 22, 2006 at 21:53 UTC
    Agreed. There have been a number of occasions where I've said to myself, "If only Perl was installed on all of the companies machines."


    dsb
    This @ISA my( $cool ) %SIG

      For me, it has been a number of occasions where I've said to others, "If only we could easily distribute pre-compiled perl." One less barrier here would dramatically improve the quality of our code: we could convert the rest of our shell code into perl! :-)

Re^2: Perl Grant Approved: Improve Perl 5
by BUU (Prior) on Feb 24, 2006 at 02:30 UTC
    Er, perhaps I'm a tad confused, but what exactly is stopping me frmo distributing a compiled perl right now? Activestate seems to manage it..

      I have the impression that AS compiles their Perl with an exceedingly long sets of library paths, then edits the binary after installation to use the actual installation paths on that machine. Clever, but a hack.

        No. It's conveniently possible under Windows to get at the path where your executable lives in. ActiveState does patch some modules upon installation, I believe, but patching the Perl.exe executable is not necessary, as long as the relative position of files remains the same.

        C:\Programme\Perl\bin>perl -v This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. C:\Programme\Perl\bin>.\perl.exe -e die@INC C:/Programme/Perl/libC:/Programme/Perl/site/lib. at -e line 1. C:\Programme\Perl\bin>Q: Q:\>cd tmp_perl Q:\tmp_perl>xcopy /s C:\Programme\Perl . ... Q:\tmp_perl>cd bin Q:\tmp_perl\bin>.\perl -e die@INC Q:/tmp_perl/libQ:/tmp_perl/site/lib. at -e line 1.

        Update:See the below response - Config.pm of course does not reflect the new directory and thus needs to be patched.

        Yep - if you simply extracted the '.zip' binary builds (rather than install by running 'install.bat' as one is supposed to do) and then ran, eg, 'perl -V:archlib', you'd get:

        archlib='C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\lib';

        I imagine it's still the case, though if you try that with recent builds all you get is:

        archlib='C:\TEMP\perl-------------------------------------------please-run-the-install-script------------------------------------------\lib';

        In both cases, installing with 'install.bat' would produce the desired results.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://532049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found