多项作业 (j3)
我正在尝试运行具有多个作业的 GNU make 文件。
当我尝试执行“make.exe -r -j3”时,会收到以下错误:
make.exe: Do not specify -j or --jobs if sh.exe is not available.
make.exe: Resetting make for single job mode.
我是否必须在 makefile 中的某处添加“$(SH) -c”?如果是的话,在哪里?
I am trying to run a GNU make file with multiple jobs.
When I try executing ' make.exe -r -j3', the receive the following to errors:
make.exe: Do not specify -j or --jobs if sh.exe is not available.
make.exe: Resetting make for single job mode.
Do I have to add ' $(SH) -c' somewhere in the makefile? If so, where?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误消息表明
make
找不到sh.exe
。文件名表明您可能正在使用 CygWin。我会研究设置PATH
以包含sh.exe
的位置,或将SHELL
的值定义为名称(或者甚至, shell 的完整路径)。The error message suggests that
make
cannot findsh.exe
. The file names indicate you are probably on CygWin. I would investigate setting thePATH
to include the location ofsh.exe
, or defining the value ofSHELL
to the name (or, even, full path) of your shell.您是否在 Windows 上运行此程序(更具体地说,在“windows”shell 中?)。如果您是,您可能想阅读以下内容:
http://www.gnu.org/software/make/manual/make .html#Parallel
更具体地说:
在 MS-DOS 上,“-j”选项不起作用,因为该系统不支持多处理。
再次假设您在 Windows 上运行,您应该获得 MinGW 或 CygWin
Are you running this on Windows (more specifically, in the "windows" shell?). If you are, you might want to read this:
http://www.gnu.org/software/make/manual/make.html#Parallel
more specifically:
On MS-DOS, the ‘-j’ option has no effect, since that system doesn't support multi-processing.
Once again, assuming you're running on windows, you should get MinGW or CygWin