Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: PAR::Packer/perlbrew confusion

by kcott (Archbishop)
on Nov 29, 2015 at 06:11 UTC ( [id://1148795]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^4: PAR::Packer/perlbrew confusion
by karlgoethebier (Abbot) on Nov 29, 2015 at 14:44 UTC
    "...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://1148795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found