[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb emacs no such file or directory gdb
From: |
Mike |
Subject: |
Re: gdb emacs no such file or directory gdb |
Date: |
Tue, 21 Oct 2014 12:24:59 -0700 (PDT) |
User-agent: |
G2/1.0 |
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.
Re: gdb emacs no such file or directory gdb, Mike, 2014/10/22
Re: gdb emacs no such file or directory gdb, Mike, 2014/10/23