From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: pdflatex not found? Date: Mon, 26 Oct 2015 14:43:40 -0700 Message-ID: References: <6sw6c7ziz5e8ik.fsf@pfdstudio.com> <87lhapbcg8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqpYl-0003z8-N0 for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 17:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqpYh-0001pW-IS for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 17:44:07 -0400 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:2187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqpYh-0001oH-9A for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 17:44:03 -0400 In-Reply-To: <87lhapbcg8.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Myles English Cc: emacs-orgmode On Mon, 26 Oct 2015, Myles English wrote: > > > John Hendy writes: > >> On Mon, Oct 26, 2015 at 2:26 PM, Peter Davis wrote: >>> >>> I'm trying to export PDF from org, but I'm getting the error: >>> >>> pdflatex: Command not found. [3 times] >>> >>> I've checked the definition of exec-path, and it includes "/usr/texbin", which is where tcsh tells me the executable is. >> >> Someone else might have a better answer, but can you check your system >> itself first? I'm guessing "exec-path" is an Org/Emacs variable? >> >> Just try: >> >> $ which pdflatex >> >> Or >> >> $ pdflatex --version >> >> That would be my suggestion for starters. At least then you know it's >> definitely not your system/setup (my bet is that it is, though). >> >> >> John >> >>> >>> Any ideas? >>> >>> Thank you! >>> >>> -pd > > pd, > > After trying what has alreaddy been suggested you might try putting your > cursor after the last bracket of this and pressing C-x C-e to see what > emacs thinks your shell PATH environment variable is set to: > > (getenv "PATH") > > If you can't see the correct path in there then it should probably be > set in ~/.profile or equivalent for tcsh rather than in ~/.tcshrc (I > don't use tcsh so I just guessed that filename). > Or put something like #+BEGIN_SRC emacs-lisp (setenv "PATH" "/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/usr/local/bin") #+END_SRC in your init file. HTH, Chuck