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

Re^2: PAR::Packer/perlbrew confusion

by karlgoethebier (Abbot)
on Nov 28, 2015 at 15:00 UTC ( [id://1148762]=note: print w/replies, xml ) Need Help??


in reply to Re: PAR::Packer/perlbrew confusion
in thread PAR::Packer/perlbrew confusion

"...you're running the system pp..."

Yes. This is what i observed.

I forgot to install PAR::Packer under perlbrew.

But after i installed it under perlbrew pp still used @INC of the system Perl.

As i was in a hurry and needed to deliver something ASAP, my only chance was to trash my system Perl.

Thanks for advice and best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: PAR::Packer/perlbrew confusion
by kcott (Archbishop) on Nov 29, 2015 at 06:11 UTC

    Reading your response, a memory (from quite some time ago) resurfaced of a similar problem I had.

    Given the length of time that's passed, I won't guarantee my recollection is perfect, but I seem to recall that I had an issue where perlbrew itself was invoking the system perl via the shebang line.

    #!/usr/bin/perl

    The perlbrew script is installed under the user's home directory. For me:

    $ which perlbrew /Users/ken/perl5/perlbrew/bin/perlbrew

    I manually modified that. I believe I only changed the shebang line (and, thankfully, added comments about what I did). Given the executable part of the script is tiny, here it is in its entirety (minus POD):

    #!/Users/ken/perl5/perlbrew/perls/perl-5.18.1t/bin/perl # Use a known, stable perl version (with App::perlbrew installed) inst +ead of: ##!/usr/bin/env perl # which never has App::perlbrew installed when a new perlbrew perl is +installed # or ##!/usr/bin/perl # which is a system perl not to be modified (e.g. by installing App::p +erlbrew) use strict; use App::perlbrew; my $app = App::perlbrew->new(@ARGV); $app->run(); __END__ ... remainder of file is POD ...

    I have installed, and successfully used, three more versions of Perl since perl-5.18.1t:

    $ perlbrew list perl-5.14.2 perl-5.14.2_WITH_THREADS perl-5.18.0t perl-5.18.1t perl-5.20.0t perl-5.20.2t * perl-5.22.0t

    So, at least to date, this tactic has worked well. Perhaps it will for you as well.

    "... was to trash my system Perl."

    I understand you did what you did for pragmatic reasons; however, I rather expect this will come back to bite you in the bum. My recommendation would be to reinstall the system perl; although, as I've never had to do this, I'm unable to advise how to go about it.

    — Ken

      "...pragmatic reasons...this will come back to bite you in the bum..."

      Yes. I'll take a look at what you suggested on monday because that box is @work.

      On the other hand that box is trashed anyway and due for a new setup of Mac OS X for a long time.

      Thank you very much for your hints and best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

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

    No recent polls found