From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jai Dayal Newsgroups: gmane.emacs.help Subject: Re: Some problems of Emacs on my OS X 10.8.5 Date: Sun, 23 Feb 2014 14:28:34 -0500 Message-ID: References: <5d80afb8-714b-483c-b5f9-ce9bce969c81@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1393183748 5981 80.91.229.3 (23 Feb 2014 19:29:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Feb 2014 19:29:08 +0000 (UTC) Cc: help-gnu-emacs To: autozimu@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 23 20:29:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHejl-0000jb-3d for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Feb 2014 20:29:17 +0100 Original-Received: from localhost ([::1]:54052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHejk-0006yf-Ge for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Feb 2014 14:29:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHejU-0006yR-Vq for help-gnu-emacs@gnu.org; Sun, 23 Feb 2014 14:29:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHejP-00034z-S2 for help-gnu-emacs@gnu.org; Sun, 23 Feb 2014 14:29:00 -0500 Original-Received: from mail-vc0-x22b.google.com ([2607:f8b0:400c:c03::22b]:62553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHejP-00034v-MT for help-gnu-emacs@gnu.org; Sun, 23 Feb 2014 14:28:55 -0500 Original-Received: by mail-vc0-f171.google.com with SMTP id le5so5024355vcb.30 for ; Sun, 23 Feb 2014 11:28:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=8lDfGXMMJpi1jNUex4bFuJn6H5wyqoUQoF9MsleWdCI=; b=u8iFPybimAo4rWRMRsxcT3ZX/OygU99Jiz3MlpD77XjRd7I1L7hihLeY9kbKy243BV Nj237hGF4MYELPZscXKK8MaQMcQlNemqLEMbvGghEgRL92HyBn8wDjJwevZ/axEbEJOj DUsL123LgsywW6HLITpk0kidxHUlzmoWyuq3BHpqPpyO/FoXKgrSgE1Bx7y5wUtVmJT5 Q3BwLngAzUXR2J0Zu/Rud6A6t218RtZOGCjhMT13rkFtiKuAkKuM9Vc0TRv3DHItD3LJ KirfV8e7FW9ymnxMuxwpPstK6N3UP3t2RFvwXTkfmrmZyD8L1HHpkg2Xtd1evc1qrUip q0Uw== X-Received: by 10.52.233.40 with SMTP id tt8mr8768774vdc.96.1393183734829; Sun, 23 Feb 2014 11:28:54 -0800 (PST) Original-Received: by 10.221.42.10 with HTTP; Sun, 23 Feb 2014 11:28:34 -0800 (PST) In-Reply-To: <5d80afb8-714b-483c-b5f9-ce9bce969c81@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96179 Archived-At: So the problem with OSX is that the .profile script is not executed when you login. This is different from GNU Linux distributions which execute .bashrc when you log in. .profile is only executed when you run a shell. If you launch emacs from outside the shell, i.e., clicking an icon on your desktop or via the dock (which I do), .profile isn't loaded. the environment plist file is what OSX uses to setup it's environment when you "log in": ~/.MacOSX/environment.plist Jai On Sun, Feb 23, 2014 at 1:45 PM, wrote: > On Sunday, February 23, 2014 2:55:05 AM UTC-5, Haomin Long wrote: > > Hello! > > > > Recently I use Emacs 24.3 on my OS X 10.8.5. > > > > To debug, I installed GNU GDB 7.7 from homebrew. > > > > But in Emacs I can't use M-x gdb. It just showed "No such file or > > > > directory, gdb" in the minibuffer. > > > > I typed "M-! echo $PATH" and it did show the directory that containing > the > > > > GDB program. > > > > So I typed "M-! gdb ***". After that it did execute GDB , but the first > > > > line of it is "(gdb) quit"!! > > > > I searched a lot at Google but I'm not able to solve it. > > > > Is it some kind of Bug? > > > > THANKS! > > > > > > > > -- > > > > > > > > *Houman Lung* > > > > > > > > *Department of Computer Science and Technology, Tsinghua University, > > > > Beijing China* > > > > > > > > *Mobile: (+86)18688148073* > > > > *E-mail: cherudim9@gmail.com * > > I believe Emacs uses the variable `exec-path` to find executables, rather > than the env $PATH from shell. > > This [script](https://github.com/purcell/exec-path-from-shell) might > helps. >