[OS X TeX] pdfinfo and calculating in an engine

Bruno Voisin bvoisin at mac.com
Wed Mar 21 12:10:16 EDT 2007


Le 21 mars 07 à 16:56, Friedrich Vosberg a écrit :

> Am 21.03.2007 um 16.25 schrieb Victor Ivrii:
>
>>>    albook:~ fv$ which pdfinfo
>>>    no pdfinfo in /bin /sbin /usr/bin /usr/sbin
>>
>> WTH? your path is too short. There must be /usr/local/bin
>> /usr/local/sbin at least (and pdfinfo would be in /usr/local/bin)
>>
>> You need to fix your path
>
> WTH does it mean »fix your path«?

When installing gwTeX via i-Installer, the following is added to /etc/ 
csh.login (for the tcsh shell):

## TeX added /usr/texbin start at Mon Mar 19 11:58:11 CET 2007
## Do not remove the previous line
if ("${uid}" != "0") then
   set path = ( ${path} "/usr/texbin" )
endif
## Do not remove the next line
## TeX added /usr/texbin end at Mon Mar 19 11:58:11 CET 2007

and to /etc/profile (for the bash shell):

## TeX added /usr/texbin start at Mon Mar 19 11:58:11 CET 2007
## Do not remove the previous line
if [ `whoami` != "root" ]
then
   PATH="$PATH:/usr/texbin"
   export PATH
fi
## Do not remove the next line
## TeX added /usr/texbin end at Mon Mar 19 11:58:11 CET 2007

The effect is to add /usr/texbin at the end of the default path for  
all accounts on your Mac (as returned, for example, by typing  
(without the quotes) "echo $PATH" in Terminal.

Similarly, when installing GhostScript via i-Installer, the following  
is added to /etc/csh.login:

## setloginpath added /usr/local/bin start at Mon Mar 19 11:58:11 CET  
2007
## Do not remove the previous line
if ("${uid}" != "0") then
   set path = ( ${path} "/usr/local/bin" )
endif
## Do not remove the next line
## setloginpath added /usr/local/bin end at Mon Mar 19 11:58:11 CET 2007

and to /etc/profile:

## setloginpath added /usr/local/bin start at Mon Mar 19 11:58:11 CET  
2007
## Do not remove the previous line
if [ `whoami` != "root" ]
then
   PATH="$PATH:/usr/local/bin"
   export PATH
fi
## Do not remove the next line
## setloginpath added /usr/local/bin end at Mon Mar 19 11:58:11 CET 2007

The effect is to add /usr/local/bin at the end of the path for all  
accounts on your Mac.

Then, in my case:

theo0mc234:~ brunovoisin$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/texbin:/usr/local/bin

I think MacTeX does exactly the same upon installation, but I'm not  
sure.

Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list