Makefile.am和configure里没有uninstall,所以生成的Mafile里也没有uninstall选项,所以报错make[1]: *** No rule to make target 'uninstall'. Stop.,该怎么修改?
时间: 2023-07-05 11:31:32 浏览: 49
如果生成的 Makefile 中没有包含 uninstall 目标,那么你可以手动添加 uninstall 目标。你可以在 Makefile.am 文件中添加以下内容:
```
uninstall:
-$(RM) <安装目录>/<安装文件>
```
其中,`<安装目录>` 是你的程序在安装时所在的目录,`<安装文件>` 是你的程序在安装时所生成的文件名。你需要将这两个参数替换成你的实际参数。
然后运行以下命令重新生成 Makefile:
```
$ autoreconf -i
```
然后再次运行 make 命令,就应该可以正常执行 uninstall 目标了。
相关问题
configure里没有uninstall,所以生成的Mafile里也没有uninstall选项,所以报错make[1]: *** No rule to make target 'uninstall'. Stop.,该怎么修改?
如果 configure 脚本中没有包含 uninstall 目标,那么你可以手动添加 uninstall 目标。你可以在 Makefile.am 文件中添加以下内容:
```
uninstall:
-$(RM) <安装目录>/<安装文件>
```
其中,`<安装目录>` 是你的程序在安装时所在的目录,`<安装文件>` 是你的程序在安装时所生成的文件名。你需要将这两个参数替换成你的实际参数。
然后运行以下命令重新生成 Makefile:
```
$ autoreconf -i
```
然后再次运行 make 命令,就应该可以正常执行 uninstall 目标了。
php 8.1.1 执行 make 命令 报错 make: *** No targets specified and no makefile found. Stop.
在执行make命令时,出现"make: *** No targets specified and no makefile found. Stop."的错误提示,通常是因为当前目录下没有Makefile文件或者Makefile文件中没有定义任何目标。
要解决这个问题,你可以按照以下步骤进行操作:
1. 确保你已经正确安装了make工具。你可以在终端中输入"make -v"来检查make是否已经正确安装。
2. 确保你已经正确下载并解压了PHP 8.1.1的源代码。你可以在PHP官方网站上下载对应版本的源代码,并将其解压到一个目录中。
3. 进入到PHP源代码的根目录,查看是否存在Makefile文件。你可以使用ls命令来查看当前目录下的文件列表,确保存在名为Makefile的文件。
4. 如果确保存在Makefile文件但仍然报错,可能是Makefile文件中没有定义任何目标。你可以打开Makefile文件,查看其中的内容,确保至少有一个目标被定义。
如果你仍然遇到问题,请提供更多的详细信息,例如你的操作系统和具体的命令行操作,以便我能够更好地帮助你解决问题。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![tar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)