From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Newsgroups: gmane.emacs.help Subject: Re: gdb emacs no such file or directory gdb Date: Tue, 21 Oct 2014 12:24:59 -0700 (PDT) Message-ID: References: <862bfff5-fd71-40f4-afa3-ae22c7bac5af@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 1413919534 28229 80.91.229.3 (21 Oct 2014 19:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 19:25:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 21:25:28 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 1Xgf3e-0000jZ-9b for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 21:25:26 +0200 Original-Received: from localhost ([::1]:53148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgf3d-000691-PO for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 15:25:25 -0400 X-Received: by 10.68.57.226 with SMTP id l2mr23517954pbq.1.1413919499972; Tue, 21 Oct 2014 12:24:59 -0700 (PDT) X-Received: by 10.182.29.136 with SMTP id k8mr30398obh.25.1413919499831; Tue, 21 Oct 2014 12:24:59 -0700 (PDT) Original-Path: usenet.stanford.edu!uq10no15140439igb.0!news-out.google.com!rp1ni36756igb.0!nntp.google.com!h18no8505397igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.97.124.16; posting-account=b7cVTQoAAACtiB8NWNbSevhDsLKeO9Lu Original-NNTP-Posting-Host: 129.97.124.16 User-Agent: G2/1.0 Injection-Date: Tue, 21 Oct 2014 19:24:59 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208258 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:100533 Archived-At: Hello I found the ~/.emacs file and edit it by adding the following line into it: "(setenv "PATH" "/usr/local/bin:$PATH" t)" since my gdb is located in /usr/local/bin but when I run the emacs it gives me following error: "Warning (initialization): An error occurred while loading `/Users/mike/.emacs': End of file during parsing: /Users/mike/.emacs To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace." My whole ini file is as follows: "(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(column-number-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; set PATH to use standalone texlive instead (setenv "PATH" "/usr/local/bin:$PATH" t)" Could you figure out what the problem is? On Tuesday, October 21, 2014 12:15:12 PM UTC-4, Suvayu Ali wrote: > On Tue, Oct 21, 2014 at 06:34:03AM -0700, Mike wrote: > > > On Tuesday, October 21, 2014 2:44:15 AM UTC-4, Suvayu Ali wrote: > > > > > > > > Maybe you can try something like this in your init file: > > > > > > > > ;; set PATH to use standalone texlive instead > > > > > > > > (setenv "PATH" "/opt/texlive/2014/bin/x86_64-linux:$PATH" t) > > > > > > > > > > Thank Suvayu for your reply. > > > In fact, I am migrating from windows (and Code Block) to mac (and Emacs), so I am quite new to OS X 10.10 and Emacs. > > > Could you please tell me how I can set the PATH as you said. > > > Thank you. > > > > What wrote above is emacs-lisp code which emacs understands. So you > > need to put that in your initialisation file. Usually it is ~/.emacs, > > if that is absent, ~/.emacs.d/init.el is used. If on your system you do > > not have the ~/.emacs file, just create a new one and the following line > > (after modifying the path appropriately). > > > > (setenv "PATH" "/path/to/bin:$PATH" t) > > > > So if you have gdb installed in /opt/local/bin, /path/to/bin should be > > /opt/local/bin. > > > > Hope this helps, > > > > -- > > Suvayu > > > > Open source is the future. It sets us free.