I've installed a few perl modules at the command line but they are not seen in TextMate. What happens is that if I run code (Cmd+r) from within TextMate that calls a module that I've installed, TextMate can't find it: Can't locate LaTeX/Driver.pm in @INC...
Investigating this I find that TextMate is calling Perl 5.8.8 whereas, at the command line, perl -V tells me 5.8.9. So TextMate is calling a different perl version to the one the modules are installed under.
How do I change which perl version TextMate uses?
I've had a look in the bundle at the Run Script command and that references ENV["TM_PERL"] but I'm not sure where this is set. Can anyone help with this?
Hi,
I setup a new PATH inside my project.
Works for me.
On Tue, Nov 2, 2010 at 4:40 PM, Justin Catterall 100621.1@masonsmusic.co.uk wrote:
I've installed a few perl modules at the command line but they are not seen in TextMate. What happens is that if I run code (Cmd+r) from within TextMate that calls a module that I've installed, TextMate can't find it: Can't locate LaTeX/Driver.pm in @INC...
Investigating this I find that TextMate is calling Perl 5.8.8 whereas, at the command line, perl -V tells me 5.8.9. So TextMate is calling a different perl version to the one the modules are installed under.
How do I change which perl version TextMate uses?
I've had a look in the bundle at the Run Script command and that references ENV["TM_PERL"] but I'm not sure where this is set. Can anyone help with this?
-- Justin C, by the sea.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Nov 2, 2010, at 12:40 PM, Justin Catterall wrote:
I've had a look in the bundle at the Run Script command and that references ENV["TM_PERL"] but I'm not sure where this is set. Can anyone help with this?
It can be done per-project by clicking the ‘i’ button at the bottom of the project drawer, or it can be done application-wide by going to Preferences → Advanced → Shell Variables.
On 2 Nov 2010, at 16:40, Justin Catterall wrote:
I've installed a few perl modules at the command line but they are not seen in TextMate. What happens is that if I run code (Cmd+r) from within TextMate that calls a module that I've installed, TextMate can't find it: Can't locate LaTeX/Driver.pm in @INC...
Please hold fire on any further replies to this thread. My problem seems to be more complex than I initially thought.
I've tried running the program from the command line and I'm getting the same error, even though 'cpan -i LaTeX::Driver' tells me that the module is up top date the module is not appearing in @INC for command line perl.
I'll report back when I have worked out what's going on.