make: *** No rule to make target `install'
时间: 2023-08-13 16:08:03 浏览: 214
The GNU Make Book
5星 · 资源好评率100%
回答: 出现"make: *** No rule to make target `install'"的错误通常是因为在执行make命令时,没有找到相应的安装规则。这可能是由于之前的配置过程中出现了错误或者缺少必要的依赖库。根据你提供的引用内容,你遇到了两个错误。第一个错误是关于PCRE库的缺失,第二个错误是关于zlib库的缺失。为了解决这些错误,你可以按照以下步骤进行操作:
1. 首先,你需要安装PCRE库。你可以使用以下命令安装PCRE库:
yum install pcre pcre-devel
2. 接下来,你需要安装zlib库。你可以使用以下命令安装zlib库:
yum install zlib zlib-devel
3. 安装完依赖库后,重新执行configure命令:
./configure --prefix=/usr/local/nginx
4. 确保configure命令执行成功后,再执行make命令:
make
5. 最后,执行make install命令进行安装:
make install
这样,你应该能够成功安装nginx并解决"make: *** No rule to make target `install'"的错误。希望对你有帮助!
#### 引用[.reference_title]
- *1* *2* [linux安装nginx make&make install报错:make: *** No rule to make target `build‘, needed by `default...](https://blog.csdn.net/lc8023xq/article/details/107624447)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [make: *** No rule to make target `install‘. Stop.](https://blog.csdn.net/spencer_tseng/article/details/118282936)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文