[OS X TeX] Font problem?
Aaron Jackson
jackson at msrce.howard.edu
Thu Jun 9 21:02:09 CEST 2005
On Jun 9, 2005, at 12:16 PM, François G. Schmitt wrote:
>> Your path is not set correctly. However, the i-installer should have
>> properly set this for you. You can try to set it yourself so you can
>> run texhash to see if that fixes your font problem. If you have bash
>> type:
>>
>> PATH=/usr/local/teTeX/bin/powerpc-apple-darwin-current:$PATH
>> export PATH
>>
>> or if you have tcsh type:
>>
>> setenv PATH /usr/local/teTeX/bin/powerpc-apple-darwin-current:$PATH
>>
>> The problem is that whichever of the above commands works needs to be
>> in either ~/.bashrc or ~/.tcshrc respectively to make it permanent,
>> but you should never have to do this if everything was installed
>> properly in the first place (the path is changed in the system
>> initialization file not your personal initialization file).
>>
> I have changed the path (using the first alternative using bash):
> the command 'sudo texhash' now runs, but other commands are not found:
> sudo texhash
> /usr/local/teTeX/bin/powerpc-apple-darwin-current/texhash: line 2:
> sort: command not found
> /usr/local/teTeX/bin/powerpc-apple-darwin-current/texhash: line 2:
> uniq: command not found
> /usr/local/teTeX/bin/powerpc-apple-darwin-current/texhash: line 147:
> tty: command not found
OK, this is very bad! sort, uniq and tty are system utilities (all
UNIX systems have them in fact). Do they exist on your mac?:
jackson% ls -l /usr/bin/sort
-r-xr-xr-x 1 root wheel 39976 16 Apr 02:33 /usr/bin/sort
jackson% ls -l /usr/bin/uniq
-r-xr-xr-x 1 root wheel 14388 16 Apr 02:34 /usr/bin/uniq
jackson% ls -l /usr/bin/tty
-r-xr-xr-x 1 root wheel 14520 16 Apr 02:33 /usr/bin/tty
If they don't then, your system is in an inconsistent state. If they
do exist, then there's something screwy with the PATH variable. sudo
should use the PATH that your current shell uses, which means in this
case:
/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/bin:/bin:/usr/
sbin:/sbin:/Users/francois_schmitt
so these utilities should be found by texhash.
Try:
Start a new terminal window
echo $PATH
PATH=/usr/local/teTeX/bin/powerpc-apple-darwin-current:$PATH
export PATH
echo $PATH
then
sudo texhash
What do each of these commands print out?
>
> BTW I could not find the folder ~/.bashrc:
> cd ~/.bashrc
> -bash: cd: /Users/francois_schmitt/.bashrc: No such file or directory
>
It's not a directory, it's a file. The file just contains shell
commands that are executed when the shell starts up. You can create it
with any program that can save as pure text.
Aaron
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list