C++ Cygwin Make bash命令未找到

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4828388/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 16:40:58  来源:igfitidea点击:

Cygwin Make bash command not found

c++makefilecygwincommand

提问by user593301

I installed cygwin with all the packages on windows 7 64 bit. For some reason the make command is giving me an error: bash make: command not found. I checked and in my bin folder, there is no make.exe. Can anyone help me on this? I really need make to work in CYGWIN. I dont wanna have to go to windows xp.

我在 Windows 7 64 位上安装了带有所有软件包的 cygwin。出于某种原因,make 命令给了我一个错误:bash make: command not found。我检查了一下,在我的 bin 文件夹中,没有 make.exe。谁可以帮我这个事?我真的需要在 CYGWIN 工作。我不想去windows xp。

采纳答案by neuro

You probably have not installed make. Restart the cygwin installer, search for make, select it and it should be installed. By default the cygwin installer does not install everything for what I remember.

你可能没有安装make。重新启动 cygwin 安装程序,搜索 make,选择它,它应该被安装。默认情况下,cygwin 安装程序不会安装我记得的所有内容。

回答by Mateusz

While instaling (updating) check 'Devel' to 'Install', it will install a lot of MB but helps. I don't have time to check which exacly I (we) need.

在安装(更新)时,将“开发”检查为“安装”,它会安装大量 MB 但有帮助。我没有时间检查我(我们)到底需要哪一个。

CYGWIN INSTALL STEP

CYGWIN 安装步骤

回答by Suvadeep panthy

Follow these steps:

按着这些次序:

  1. Go to the installer again
  2. Do the initial setup.
  3. Under library - go to devel.
  4. under devel scroll and find make.
  5. install all of library with name make.
  6. click next, will take some time to install.
  7. this will solve the problem.
  1. 再次进入安装程序
  2. 进行初始设置。
  3. 在图书馆下 - 去开发。
  4. 在开发滚动下找到make。
  5. 安装所有名为 make 的库。
  6. 点击下一步,安装需要一些时间。
  7. 这将解决问题。

回答by VietHuong

follow some steps below:

请按照以下步骤操作:

  1. open cygwin setup again

  2. choose catagory on view tab

  3. fill "make" in search tab

  4. expand devel

  5. find "make: a GNU version of the 'make' ultility", click to install

  6. Done!

  1. 再次打开 cygwin 设置

  2. 在视图选项卡上选择类别

  3. 在搜索选项卡中填写“制作”

  4. 扩大发展

  5. 找到“make: a GNU version of the 'make' utility”,点击安装

  6. 完毕!

回答by vicky sable

when selecting packages at installation or update search for 'make' in searchbox and select the boxes showing 'make' and also 'gcc' mostly found in devel package.

在安装或更新时选择软件包时,在搜索框中搜索“make”并选择显示“make”和“gcc”的框,这些框主要在开发包中找到。

回答by langlauf.io

I had the same problem and it was due to several installations of cygwin.

我遇到了同样的问题,这是由于安装了几次 cygwin。

Check the link (the icon) that you click on to start the terminal. In case it does not point to the directory of your updated cygwin installation, you have the wrong installation of cygwin. When updating, double check the location of cygwin, and start exactly this instance of cygwin.

检查您单击以启动终端的链接(图标)。如果它没有指向您更新的 cygwin 安装目录,则您安装了错误的 cygwin。更新时,仔细检查 cygwin 的位置,并准确启动这个 cygwin 实例。

回答by Achie1

I faced the same problem too. Look up to the left side, and select (full). (Make), (gcc) and many others will appear. You will be able to chose the search bar to find them easily.

我也面临同样的问题。向上看左侧,然后选择(完整)。(Make), (gcc) 和许多其他的会出现。您将能够选择搜索栏来轻松找到它们。

回答by Divyanshu Srivastava

I faced the same problem. Follow these steps:

我遇到了同样的问题。按着这些次序:

  1. Goto the installer once again.
  2. Do the initial setup.
  3. Select all the libraries by clicking and selecting install (the one already installed will show reinstall, so don't install them).
  4. Click next.
  5. The installation will take some time.
  1. 再次转到安装程序。
  2. 进行初始设置。
  3. 通过单击并选择安装来选择所有库(已安装的将显示重新安装,因此不要安装它们)。
  4. 点击下一步。
  5. 安装需要一些时间。