From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: pdflatex not found? Date: Tue, 27 Oct 2015 11:51:14 -0400 Message-ID: References: <6sw6c7bnbke8ah.fsf@pfdstudio.com> <562F826B.1080802@gmail.com> <871tcg7272.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c7fa4335d360523180cd7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr6Wr-0004hs-9R for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr6Wp-0005Jh-QZ for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:51:17 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:37536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr6Wp-0005JT-HD for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:51:15 -0400 Received: by wicfv8 with SMTP id fv8so168880143wic.0 for ; Tue, 27 Oct 2015 08:51:14 -0700 (PDT) In-Reply-To: <871tcg7272.fsf@alphaville.usersys.redhat.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: Nick Dokos Cc: "emacs-orgmode@gnu.org" --f46d043c7fa4335d360523180cd7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This reminds me that I think I have this problem unless I open Emacs from a command line. On Tuesday, October 27, 2015, Nick Dokos wrote: > Fatma Ba=C5=9Fak Aydemir > writes: > > > I do not know the reasons but I had the same problem in the past on OS = X. > > > > exec-path-from-shell package is a nice solution for that. > > > > https://github.com/purcell/exec-path-from-shell > > > > Just the need for a package like that indicates that something is badly > broken on OS X, I think. To be fair, it's a mess on Linux as well, but > it is possible to make sure that variables you define (and export) in > your .profile get propagated to applications started by the DE/WM. In my > current installation (Fedora 21), that is done by > /etc/X11/xinit/xinitrc-common, which does this: > > [ -r $HOME/.profile ] && . $HOME/.profile > > Maybe OS X has a "hidden" mechanism like this? > > > 27/10/15 14:43 tarihinde Peter Davis yazd=C4=B1: > >> Rainer M Krug > writes: > >> > >>> Envoy=C3=A9 de mon iPhone > >>> > >>>> Le 27 oct. 2015 =C3=A0 01:14, Nick Dokos > > a =C3=A9crit : > >>>> > >>>> Peter Davis > writes: > >>>> > >>>>> Nick Dokos > writes: > >>>> ... > >>>> Yes, probably, but if I can get people to submit backtraces when > getting > >>>> an error, we can cut down the email volume by a factor of 2.43 > (making up > >>>> fictitious data to bolster my case...) In all seriousness, at least = it > >>>> shows that you are not going down some strange path. > >> I think the actual number is more like 2.17, but let's not quibble. > >> > >>>> What happens if you say M-x shell-command RET pdflatex RET? > >> Not found. > >> > >>>> Somebody suggested running "which pdflatex" in your shell - what doe= s > >>>> that say? > >> Still not found. However, adding it to ~/.tcshrc seems to fix the > >> problem. That makes sense, but leaves two questions: > >> > >> 1) Why am I able to run pdflatex (without specifying the path) just > >> from the shell running in a terminal window? > >> > >> 2) What's the point of defining the emacs exec-path, since I needed > >> to define the shell's PATH variable anyway? > >> > > FWIW, I never define exec-path explicitly: it is set from my $PATH when > emacs starts. > > -- > Nick > > > > --=20 John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --f46d043c7fa4335d360523180cd7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This reminds me that I think I have this problem unless I open Emacs from a= command line.=C2=A0

On Tuesday, October 27, 2015, Nick= Dokos <ndokos@gmail.com> wro= te:
Fatma Ba=C5=9Fak Aydemir <aydemirfb@gmail.com> writes:

> I do not know the reasons but I had the same problem in the past on OS= X.
>
> exec-path-from-shell package is a nice solution for that.
>
> https://github.com/purcell/exec-path-from-shell
>

Just the need for a package like that indicates that something is badly
broken on OS X, I think. To be fair, it's a mess on Linux as well, but<= br> it is possible to make sure that variables you define (and export) in
your .profile get propagated to applications started by the DE/WM. In my current installation (Fedora 21), that is done by
/etc/X11/xinit/xinitrc-common, which does this:

[ -r $HOME/.profile ] && . $HOME/.profile

Maybe OS X has a "hidden" mechanism like this?

> 27/10/15 14:43 tarihinde Peter Davis yazd=C4=B1:
>> Rainer M Krug <r.m.krug@gmail.com> wri= tes:
>>
>>> Envoy=C3=A9 de mon iPhone
>>>
>>>> Le 27 oct. 2015 =C3=A0 01:14, Nick Dokos <ndokos@gmail.com> a =C3=A9crit :
>>>>
>>>> Peter Davis <pfd@pfdstudio.com>= writes:
>>>>
>>>>> Nick Dokos <ndokos@gmail.com>= ; writes:
>>>> ...
>>>> Yes, probably, but if I can get people to submit backtrace= s when getting
>>>> an error, we can cut down the email volume by a factor of = 2.43 (making up
>>>> fictitious data to bolster my case...) In all seriousness,= at least it
>>>> shows that you are not going down some strange path.
>> I think the actual number is more like 2.17, but let's not qui= bble.
>>
>>>> What happens if you say M-x shell-command RET pdflatex RET= ?
>> Not found.
>>
>>>> Somebody suggested running "which pdflatex" in y= our shell - what does
>>>> that say?
>> Still not found. However, adding it to ~/.tcshrc seems to fix the<= br> >> problem. That makes sense, but leaves two questions:
>>
>> 1) Why am I able to run pdflatex (without specifying the path) jus= t
>> from the shell running in a terminal window?
>>
>> 2) What's the point of defining the emacs exec-path, since I n= eeded
>> to define the shell's PATH variable anyway?
>>

FWIW, I never define exec-path explicitly: it is set from my $PATH when
emacs starts.

--
Nick





--
John
=
-----------------------------------
Professor John Kitchin=C2=A0
= Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803

--f46d043c7fa4335d360523180cd7--