[texhax] trouble installing TeX Collection 2013

Thomas Schneider schneidt at mail.nih.gov
Wed Jul 10 17:29:25 CEST 2013


Folks:

I did a completely fresh install on a laptop which has Mac OS X 10.6.8
and found the same problem as before: the 2013 directory in
/usr/local/texlive is not permitted for all users.

Again, I did:

   cd /usr/local/texlive
   sudo chmod -R a+rX 2013

and now LaTeX runs fine.

I'm attaching a small script that checks for this problem and corrects
it using the above code.

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  Gene Regulation and Chromosome Biology Laboratory
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at mail.nih.gov
  http://schneider.ncifcrf.gov/(current link)
  http://alum.mit.edu/www/toms (permanent link)
-------------- next part --------------
#!/bin/tcsh -f
#(ie run the tshell on this but don't read the .cshrc or .tcshrc)

echo version = 1.00 of fixtex2013 2013 Jul 10
# 2013 Jul 10, 1.00: origin 

echo "On Mac OS X 10.6.8"
echo "after installing the TeX Collection 2013"
echo "LaTeX may not be available."
echo "That is, even though /usr/texbin is in your path"
echo "the files are not permitted for reading."

echo
echo "Is /usr/texbin in your path?"

if (`echo $PATH | grep '/usr/texbin' | wc -l` == 0) then
   echo ' ... NO'
   echo
   echo "Current path:"
   echo "$PATH"
   exit
else
   echo ' ... yes'
endif

echo
if (-d /usr/local/texlive) then
  echo "/usr/local/texlive exists"
else
  echo "/usr/local/texlive IS MISSING - install the TeX Collection"
endif

echo
if (-d /usr/local/texlive/2013) then
  echo "/usr/local/texlive/2013 exists"
else
  echo "/usr/local/texlive/2013 IS MISSING - install the TeX Collection"
endif

echo
ls -ld /usr/local/texlive/2013
if (`ls -ld /usr/local/texlive/2013|grep 'drwx------'|wc -l` == 1) then
   echo "Permissions are not correct.  Give password to correct this"

   # actual work:
   cd /usr/local/texlive
   sudo chmod -R a+rX 2013
else
   echo "Permissions are correct."
endif



More information about the texhax mailing list