On 5 Feb 2017, at 5:09, LLeChe wrote:

I have perlbrew (perlbrew 0.78) installed, with perl-5.24.1 installed and set as default perl version (using perlbrew switch). However when I use BBEdit 'check syntax' command (from #! menu), the MacOs 'standard' perl version perl-5.18.2 is used. Is there a setting needed to make sure that the 'perlbrew' perl version would be used by BBEdit 'Check Syntax' feature?

The `~/.MacOSX/environment.plist` file used be the solution. But that has apparently been replaced with a `launchctl setenv` solution. I can’t find anywhere I’ve implemented it though. (Bizarre, I’ve done __something__, BBEdit worksheet definitely sees my perlbrew env.)

I suggest starting with a search:

- https://duckduckgo.com/?q=.MacOSX%2Fenvironment.plist+sierra&ia=software

That will give heaps of links to solutions using both methods. This one looks like a good start:

- http://stackoverflow.com/questions/25385934/setting-environment-variables-via-launchd-conf-no-longer-works-in-os-x-yosemite

Once you choose the correct solution, set `PATH` and `MANPATH` using values from `PERLBREW_PATH` and `PERLBREW_MANPATH` shown when running `perlbrew info`.

I just re-read your original question, which I didn’t directly answer. Make sure your shebang is `#!/bin/env perl`, which will then search the PATH you set above for the correct perl to run.

cng

PS. I’m curious what solution you end up with; maybe it will help me remember how I solved it (so I can add to my notes for later OS updates).

--

   Charlie Garrison  <[email protected]>
   github.com/cngarrison   metacpan.org/author/CNG

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to