This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUG: exec format error: emacs


I have now solved the problem by explicitly removing /usr/bin/emacs before re-installing it using Cygwin Setup. Now it indeed became a symlink (to /etc/alternatives/emacs).

Ronald

On Fri, Jan 17, 2020, at 17:16, Ken Brown wrote:
> On 1/17/2020 10:33 AM, Ronald Fischer wrote:
> > When trying to run `emacs`, I get
> > 
> >   (on zsh) : zsh: exec format error: emacs
> >   (on bash): bash: /usr/bin/emacs: cannot execute binary file: Exec format error
> 
> Are you sure Cygwin's emacs is the first one in your path?  Cygwin's 
> /usr/bin/emacs should be a symlink:
> 
> $ ls -l /usr/bin/emacs
> lrwxrwxrwx 1 kbrown-admin None 23 2019-03-21 18:11 /usr/bin/emacs -> 
> /etc/alternatives/emacs*
> 
> Ken
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]