centos系统make: *** No targets specified and no makefile found. Stop.
时间: 2023-09-12 09:11:52 浏览: 118
你在执行make命令时遇到了一个错误,该错误指示未指定目标,并且没有找到任何makefile文件。make命令用于构建和管理项目,它需要一个Makefile文件来指定要执行的操作和依赖关系。
请确认你当前目录中是否存在Makefile文件,并确保正确的使用make命令。如果Makefile文件不存在,你可能需要编写一个适合你项目的Makefile文件,以定义目标和构建规则。
另外,还要确保你已经安装了适当的构建工具和依赖项,以便能够成功执行make命令。使用包管理器或其他适合你系统的方式来安装所需的工具和库。
相关问题
centos make: *** No targets specified and no makefile found. Stop.
The error message you are encountering is a common make error when there is no makefile present in the current directory, or you have not specified any targets to build.
To resolve this issue, you can try the following steps:
1. Ensure that you are in the correct directory where your project or makefile is located. You can use the `cd` command to navigate to the appropriate directory.
2. Check if there is a makefile available in the current directory. Make sure that the makefile is named either "Makefile" or "makefile" (case-sensitive). If there is no makefile, you may need to obtain or create one for your project.
3. If you have a makefile in the current directory, make sure that it is correctly named and formatted. Double-check for any typos or syntax errors within the makefile.
If you continue to encounter issues, please provide more details about your project and any specific commands or steps you have taken so far.
make[4]: *** No targets specified and no makefile found. Stop.
回答: 错误信息"make<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [centos6.8下安装搭建apache环境是出现 make: *** No targets specified and no makefile found. Stop.的...](https://blog.csdn.net/DannyIsCoder/article/details/78455909)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [make: *** No targets specified and no makefile found. Stop.错误解决办法](https://blog.csdn.net/weiyangdong/article/details/79203712)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]