【发布时间】:2014-10-13 17:13:25
【问题描述】:
我正在尝试使用 cygwin 作为我的编译器,但由于某种原因它无法正常工作。我按照这个视频了解如何安装它
https://www.youtube.com/watch?v=zRbbDkDb5UM
然后我跟着这个视频学习如何使用它
https://www.youtube.com/watch?v=VKOcnRDGFLw
当我创建我的第一个程序“Hello world”并尝试命令“make hello”时,我收到错误“-bash: make: command not found”。有什么想法吗?
这是我的系统路径,以防出现问题。
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Trend Micro\AMSP;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\cygwin64\bin;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Sublime Text 2;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\
【问题讨论】:
-
makenotMake如果您正在编写自己的 makefile。 -
@EtanReisner 是的,这是标题中的错字,我使用了小写的 m。
-
你在安装完所有东西后是否启动了一个新的 cygwin shell?您是否像第一个视频所说的那样安装了 make 包?
-
@EtanReisner,你说的新外壳是什么意思?是的,我像视频中所说的那样安装了 make 包,但是我找不到确切的“openssl”包,所以我只搜索 openssl 并单击我能找到的每个 openssl。不确定这是否会有所不同。
-
重新运行 cygwin setup.exe 并确保选择了要安装的 make 包。
标签: c++ terminal makefile cygwin