Ask Your Question

Setting up Sage on my mac, pdflatex not working

asked 2013-08-31 15:41:29 -0500

colin.fraser gravatar image


I am pretty sure that I have PDFLaTeX because it works when I use LyX but in sage I receive the following error when trying to use show():

sage: show(x)
Error: PDFLaTeX does not seem to be installed.  Download it from and try again.
Latex error

Is there anything I can do to tell Sage where to look? BTW I am using Mac OSX 10.8

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-31 20:12:14 -0500

ppurka gravatar image

updated 2013-08-31 20:12:29 -0500

Maybe do a

$ which pdflatex

from the command line and note the path in which it is present. Then run

$ sage -sh
$ which pdflatex

to see if sage can find pdflatex. If it can not find, you need to add it to your PATH. But, if you can find pdflatex using the first which command, then you should be able to find it also from within sage.

It is also possible that Lyx is not using pdflatex, but it is first creating a ps file and then converting that to a pdf file. If so, then you need to figure out how to install pdflatex in Mac.

edit flag offensive delete link more


what is meant by PATH in your answer ?

mathcube gravatar imagemathcube ( 2015-03-23 03:13:12 -0500 )edit

PATH is an environment variable listing the directories searched by default when running various commands. when you type

echo $path

in a shell (terminal), you will see that list. You can add a directory (let's say, /usr/texbin) to it like this:

export PATH = $PATH:/usr/texbin

rsspdx gravatar imagersspdx ( 2015-04-20 23:43:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-08-31 15:41:29 -0500

Seen: 9,206 times

Last updated: Aug 31 '13