From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Bug: babel can't locate psql [8.2.10 (release_8.2.10 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] Date: Mon, 10 Oct 2016 07:28:41 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bteNj-00022B-S5 for emacs-orgmode@gnu.org; Mon, 10 Oct 2016 13:28:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bteNg-0002wZ-Lv for emacs-orgmode@gnu.org; Mon, 10 Oct 2016 13:28:55 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:46394) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1bteNg-0002vd-E7 for emacs-orgmode@gnu.org; Mon, 10 Oct 2016 13:28:52 -0400 In-reply-to: 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" To: Barbara Shirtcliff Cc: emacs-orgmode@gnu.org Aloha Barbara, Barbara Shirtcliff writes: > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > Executing a block of psql produces the error: "/bin/bash: psql: > command not found". > > Bash is able to find psql. So is M-: (executable-find "psql"). I > have a brew-installed psql in the standard brew-installed location for > my computer, at /usr/local/bin/psql. As far as I can tell, the > location of psql is hard-coded into ob-sql.el and is not configurable. > > The command that ob-sql logs in the *Messages* buffer works in an > emacs shell session. But that, of course, is not the point. Perhaps the exec-path-from-shell package would help in this instance? hth, Tom -- Thomas S. Dye http://www.tsdye.com