From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: gdb emacs no such file or directory gdb Date: Wed, 22 Oct 2014 16:05:17 -0700 Message-ID: References: <862bfff5-fd71-40f4-afa3-ae22c7bac5af@googlegroups.com> <030e8244-2744-44e5-b070-b788cfb0fea7@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1414019160 9509 80.91.229.3 (22 Oct 2014 23:06:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 23:06:00 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Mike Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 01:05:53 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 1Xh4yX-0000wN-8n for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 01:05:53 +0200 Original-Received: from localhost ([::1]:33172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh4yW-0004i2-S5 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 19:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh4yL-0004ht-Iu for help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 19:05:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xh4yK-00074e-Iy for help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 19:05:41 -0400 Original-Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:60670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh4yK-00074T-D0 for help-gnu-emacs@gnu.org; Wed, 22 Oct 2014 19:05:40 -0400 Original-Received: by mail-ob0-f171.google.com with SMTP id wp18so1423209obc.30 for ; Wed, 22 Oct 2014 16:05:38 -0700 (PDT) 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=7swLWi76uYbjCtkfD4XZzzouHNx7WYgX13maVGgO+I8=; b=v4BuBXmCl7MImDByWDN1pYjxuom6M7OSzrr5sfAro7l5rW8/tuFSC3dwLdYjvwp1Hp /hyWLEiTPwmVhXG8qdIhBx91IXW5s5wy6zBGHPY1Qhvp3CxChUnE7CicOXRrZw16rv4Y bwvgiPN4pfgftJ0SX+6xk2TvrEIntOHKQEL4+AasIgVXjeIJs1/pc9OYhFmdQX2edMto 1U5/470Ts7kVRzsc7EU8apN78h60FgmNfcPeNQo+OObqAUm8f5NU8aGpxdIuahAGaf0S qoi4x6O8RvFSfpor80yTQANrS6GIzqrvOBKuF+0PLGAdwo57El11vnZc24qFroSqXJIA 3HPw== X-Received: by 10.182.199.106 with SMTP id jj10mr832156obc.27.1414019138528; Wed, 22 Oct 2014 16:05:38 -0700 (PDT) Original-Received: by 10.76.125.194 with HTTP; Wed, 22 Oct 2014 16:05:17 -0700 (PDT) In-Reply-To: <030e8244-2744-44e5-b070-b788cfb0fea7@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22b 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:100560 Archived-At: Mike wrote: > Thank you for your replies. But I do not want to find what is the problem with init file (because I know it is the last line that I added). The problem is running gdb by Emacs. Whenever I try to run gdb in Emacs by M-x gdb, first it says > > Run gdb (like this): gdb -i=mi myfile > > and after pressing return it says that > > searching for program: No such a file or directory, gdb Well, the bottom line is that you probably want to have these two forms in your init file: (setenv "PATH" "/usr/local/bin:$PATH" t) (add-to-list 'exec-path "/usr/local/bin") Alternatively, you could just install the `exec-path-from-shell' package from MELPA and add this to your init file: (exec-path-from-shell-initialize) However, my impression is that the thing blocking these solutions at the moment is a mysterious error in your init file. Based on the error ("end of file while reading"), it sounds like you have a mismatched quote/paren/bracket somewhere. But nothing's mismatched in what you posted, so it's hard to be specific. -- john