[R-SIG-Mac] building a package on a Mac: pdflatex
BABA, Yoshihiko
baba at ud.t.u-tokyo.ac.jp
Tue Jul 5 15:49:02 CEST 2011
Hi Federico,
On Jul 5, 2011, at 18.51 , Federico Calboli wrote:
> On 5 Jul 2011, at 10:44, Federico Calboli wrote:
>> <snip>
>> My comment is, pdflatex *is* availiable:
>>
>> $ :/usr/local/texlive/2010/bin/universal-darwin$ ls -l pdflatex
>> lrwxr-xr-x 1 root wheel 6 21 Oct 2010 pdflatex -> pdftex
>>
>> and
>>
>> $ :/usr/local/texlive/2010/bin/x86_64-darwin$ ls -l pdflatex
>> lrwxr-xr-x 1 root wheel 6 21 Oct 2010 pdflatex -> pdftex
>
> Before anyone asks:
>
> $ :/usr/local/texlive/2010/bin/x86_64-darwin$ ls /usr/texbin/pdflatex
> /usr/texbin/pdflatex
My environment is different to yours, but these may help:
1. Add this line to (or create a new file) ~/.profile
test -d /usr/local/texlive/2010 && PATH=/usr/local/texlive/2010/bin/x86_64-darwin:$PATH &&
MANPATH=/usr/local/texlive/2010/texmf/doc/man:$MANPATH
2. Edit R
#!/bin/sh
# Shell wrapper for R executable.
export PATH=/usr/local/texlive/2010/bin/x86_64-darwin:$PATH # THIS IS THE ADDED LINE
R_HOME_DIR=/sw/Library/Frameworks/R.framework/Resources
if test "${R_HOME_DIR}" = "/sw/Library/Frameworks/lib/R"; then
--
BABA Yoshihiko
Urban Design Laboratory, Tokyo University
More information about the R-SIG-Mac
mailing list