[TxMt] Re: Homebrew Perl/CPAN

Allan Odgaard mailinglist at textmate.org
Thu Jun 27 05:26:18 UTC 2019


On 1 Mar 2019, at 10:42, Dr Eberhard W Lisse wrote:

> I have started to use Homebrew's Perl and its CPAN to avoid having to
> mess with the Macs Protection mechanism.
>
> The CPAN libraries/modules are installed under ~/perl5 necesstitting 
> to
> run
>
> 	PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
>
> and adding this to the end of ~/.profile
>
> 	eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
>
> which sets
>
> 	PERL_MB_OPT='--install_base "/Users/el/perl5"'
> 	PERL_MM_OPT=INSTALL_BASE=/Users/el/perl5
>
> (in my case).
>
> I have set TM_PERL to /usr/local/bin/perl and when I run a perl 
> program
> wit CMD-R it works, unless I use a CPAN module when I get this message
> (under TextMate, but NOT from the command line):

If not already done, you need to explicitly set `PERL_MB_OPT` and 
`PERL_MM_OPT` in TextMate, either Preferences → Variables or add them 
to your `~/.tm_properties` file.

TextMate does not run your `~/.profile` and therefore does not pick up 
the `eval` line you have there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20190627/2c70a511/attachment.html>


More information about the textmate mailing list