[OS X TeX] Re: [texhax] Wrong latex getting used.

Rolf Turner r.turner at auckland.ac.nz
Tue Mar 3 15:15:28 EST 2009


On 4/03/2009, at 2:53 AM, Herbert Schulz wrote:

	<snip>

>> On 3/03/2009, at 3:25 PM, Axel E. Retif wrote:

	<snip>

>>> If that doesn't work. You can do three things: 1) reinstall  
>>> MacTeX so
>>> it again takes control of your distributions; 2) tell Fink to
>>> uninstall teTeX (but that would be a problem if you have Fink's
>>> packages that depend on it); or 3) comment out momentarily the Fink
>>> line ( . /sw/bin/init.sh in .bashrc, and something similar
>>> in .cshrc),
>>
>> Nya-ha!  That's where the refusal to set my path to what I want is
>> coming from.  I should've noticed that; it was right before my eyes.
>> Bit of a ``duhhhh'' on my part.
>>
>>> logout ---or restart your computer--- and see if your system now
>>> recognizes TeXLive as your valid distribution.
>>
>> I commented out the ``source /sw/bin/init.sh" line in my .cshrc file
>> sourced .cshrc, and then did  ``latex junk''.  Bingo!  It ran; no
>> error thrown.  (And of course my path was as I had specified it.)

	<snip>

> Of course that means that you won't be able to execute anything else
> you have installed by fink. You can also prepend /usr/texbin to your
> path AFTER the sourcing of /sw/bin/init.sh in your .cshrc and you'll
> have both setting working.

I had (previously) explicitly set up my path to include /sw/bin and
/sw/sbin *after* /usr/texbin, so the commenting out strategy just
kept /sw/bin/cshrc from putting these directories back before /usr/ 
texbin.
I've since adjusted the code in my .cshrc to do the whole thing a
little more sexily:

	source /sw/bin/init.csh
	set npath = `echo $path | sed -e 's/\/usr\/texbin //'`
	set path = ( /usr/texbin $npath )

Even that worried me a little bit, but Richard Koch has re-assured me
that there should be no pit-falls from this strategy.

	cheers,

		Rolf Turner

######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################



More information about the MacOSX-TeX mailing list