* Eshell: Running GNU Make (Cygwin) on Windows 7 @ 2012-06-08 0:10 William Crandall 2012-06-08 1:59 ` William Crandall 0 siblings, 1 reply; 6+ messages in thread From: William Crandall @ 2012-06-08 0:10 UTC (permalink / raw) To: help-gnu-emacs Hello, Is there a "best" way to run Cygwin's GNU Make from Eshell on Windows 7? GNU Make 3.82.90 (Built for i686-pc-cygwin) runs fine in the Cygwin shell, called from Cygwin's directory: /usr/bin/make How would you call it from Eshell? Thanks for any pointers! -BC Emacs: 24.1.50.1 Windows 7 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Eshell: Running GNU Make (Cygwin) on Windows 7 2012-06-08 0:10 Eshell: Running GNU Make (Cygwin) on Windows 7 William Crandall @ 2012-06-08 1:59 ` William Crandall 2012-06-08 6:13 ` Eli Zaretskii 2012-06-08 17:11 ` William Crandall 0 siblings, 2 replies; 6+ messages in thread From: William Crandall @ 2012-06-08 1:59 UTC (permalink / raw) To: help-gnu-emacs, despen Dan Espen writes: > Why Eshell? > > M-x compile > > -- > Dan Espen Thanks Dan, but M-x compile gives me: -------------------------------------------------- Compilation started at Thu Jun 07 18:51:13 make -k 'make' is not recognized as an internal or external command, operable program or batch file. Compilation exited abnormally with code 1 at Thu Jun 07 18:51:13 -------------------------------------------------- Cygwin 'make' works on Windows, in the Cygwin shell. And I can do much of what I want in eshell, git, etc. So it would be nice to be able to call Cygwin/make from there. -BC On Thu, Jun 7, 2012 at 5:10 PM, William Crandall <bc3141592@gmail.com> wrote: > Hello, > > Is there a "best" way to run Cygwin's GNU Make from Eshell > on Windows 7? > > GNU Make 3.82.90 (Built for i686-pc-cygwin) runs fine in the > Cygwin shell, called from Cygwin's directory: /usr/bin/make > > How would you call it from Eshell? > > Thanks for any pointers! > > -BC > > Emacs: 24.1.50.1 > Windows 7 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Eshell: Running GNU Make (Cygwin) on Windows 7 2012-06-08 1:59 ` William Crandall @ 2012-06-08 6:13 ` Eli Zaretskii 2012-06-08 17:11 ` William Crandall 1 sibling, 0 replies; 6+ messages in thread From: Eli Zaretskii @ 2012-06-08 6:13 UTC (permalink / raw) To: help-gnu-emacs > Date: Thu, 7 Jun 2012 18:59:58 -0700 > From: William Crandall <bc3141592@gmail.com> > > Dan Espen writes: > > > Why Eshell? > > > > M-x compile > > > > -- > > Dan Espen > > Thanks Dan, but M-x compile gives me: > > -------------------------------------------------- > Compilation started at Thu Jun 07 18:51:13 > > make -k > 'make' is not recognized as an internal or external command, > operable program or batch file. > > Compilation exited abnormally with code 1 at Thu Jun 07 18:51:13 > -------------------------------------------------- > > Cygwin 'make' works on Windows, in the Cygwin shell. That's your problem, right there: you haven't set the Windows PATH to find the Cygwin 'make'. The directory /usr/bin/ doesn't really exist on your filesystem, as far as Windows is concerned, it is an illusion created by Cygwin. Find its real name (something like C:\Cygwin\usr\bin perhaps?) and add it to the Windows PATH. Then you will be able to call it from "M-x compile" and from Eshell alike. Alternatively, install the Cygwin build of Emacs, which will find 'make' like the Cygwin shell does. IOW, mixing Cygwin and native Windows tools needs extra work. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Eshell: Running GNU Make (Cygwin) on Windows 7 2012-06-08 1:59 ` William Crandall 2012-06-08 6:13 ` Eli Zaretskii @ 2012-06-08 17:11 ` William Crandall 1 sibling, 0 replies; 6+ messages in thread From: William Crandall @ 2012-06-08 17:11 UTC (permalink / raw) To: help-gnu-emacs, eliz Thank Eli! That's it exactly. I added the real directory to PATH and we're right as rain. Thanks again, -BC Eli Zaretskii writes: > That's your problem, right there: you haven't set the Windows PATH > to find the Cygwin 'make'. The directory /usr/bin/ doesn't really > exist on your filesystem, as far as Windows is concerned, it is an > illusion created by Cygwin. Find its real name (something like > C:\Cygwin\usr\bin perhaps?) and add it to the Windows PATH. Then > you will be able to call it from "M-x compile" and from Eshell > alike. > > Alternatively, install the Cygwin build of Emacs, which will find > 'make' like the Cygwin shell does. > > IOW, mixing Cygwin and native Windows tools needs extra work. On Thu, Jun 7, 2012 at 6:59 PM, William Crandall <bc3141592@gmail.com> wrote: > Dan Espen writes: > >> Why Eshell? >> >> M-x compile >> >> -- >> Dan Espen > > Thanks Dan, but M-x compile gives me: > > -------------------------------------------------- > Compilation started at Thu Jun 07 18:51:13 > > make -k > 'make' is not recognized as an internal or external command, > operable program or batch file. > > Compilation exited abnormally with code 1 at Thu Jun 07 18:51:13 > -------------------------------------------------- > > Cygwin 'make' works on Windows, in the Cygwin shell. > > And I can do much of what I want in eshell, git, etc. > So it would be nice to be able to call Cygwin/make from there. > > -BC > > > On Thu, Jun 7, 2012 at 5:10 PM, William Crandall <bc3141592@gmail.com> wrote: >> Hello, >> >> Is there a "best" way to run Cygwin's GNU Make from Eshell >> on Windows 7? >> >> GNU Make 3.82.90 (Built for i686-pc-cygwin) runs fine in the >> Cygwin shell, called from Cygwin's directory: /usr/bin/make >> >> How would you call it from Eshell? >> >> Thanks for any pointers! >> >> -BC >> >> Emacs: 24.1.50.1 >> Windows 7 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.2415.1339114666.855.help-gnu-emacs@gnu.org>]
* Re: Eshell: Running GNU Make (Cygwin) on Windows 7 [not found] <mailman.2415.1339114666.855.help-gnu-emacs@gnu.org> @ 2012-06-08 1:27 ` Dan Espen 2012-06-08 2:51 ` rusi 1 sibling, 0 replies; 6+ messages in thread From: Dan Espen @ 2012-06-08 1:27 UTC (permalink / raw) To: help-gnu-emacs William Crandall <bc3141592@gmail.com> writes: > Hello, > > Is there a "best" way to run Cygwin's GNU Make from Eshell > on Windows 7? > > GNU Make 3.82.90 (Built for i686-pc-cygwin) runs fine in the > Cygwin shell, called from Cygwin's directory: /usr/bin/make > > How would you call it from Eshell? > > Thanks for any pointers! Why Eshell? M-x compile -- Dan Espen ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Eshell: Running GNU Make (Cygwin) on Windows 7 [not found] <mailman.2415.1339114666.855.help-gnu-emacs@gnu.org> 2012-06-08 1:27 ` Dan Espen @ 2012-06-08 2:51 ` rusi 1 sibling, 0 replies; 6+ messages in thread From: rusi @ 2012-06-08 2:51 UTC (permalink / raw) To: help-gnu-emacs On Jun 8, 5:10 am, William Crandall <bc3141...@gmail.com> wrote: > Hello, > > Is there a "best" way to run Cygwin's GNU Make from Eshell > on Windows 7? > > GNU Make 3.82.90 (Built for i686-pc-cygwin) runs fine in the > Cygwin shell, called from Cygwin's directory: /usr/bin/make > > How would you call it from Eshell? > > Thanks for any pointers! > > -BC > > Emacs: 24.1.50.1 > Windows 7 These kind of questions bugged me (when I last used cygwin) and there must be a more cygwin-ish way of handling paths. 1. The proper way is probably to use http://www.emacswiki.org/emacs/cygwin-mount.el I remember trying it and not getting it to work -- but I did not try very hard 2. An improper way recommended by Steve Yegge is to install cygwin not in c:/cygwin but in C: then everything "just works". This of course flies in the face of strong strictures from cygwin 3. Maybe you can just set the eshell-path-env and it works as you want? 4. Getting compile to work is better as Dan suggests. Maybe you can adjust compile-command? ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-06-08 17:11 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-06-08 0:10 Eshell: Running GNU Make (Cygwin) on Windows 7 William Crandall 2012-06-08 1:59 ` William Crandall 2012-06-08 6:13 ` Eli Zaretskii 2012-06-08 17:11 ` William Crandall [not found] <mailman.2415.1339114666.855.help-gnu-emacs@gnu.org> 2012-06-08 1:27 ` Dan Espen 2012-06-08 2:51 ` rusi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).