automake (>=1.14) error: but option ‘subdir-objects’ is disabled
时间: 2023-06-19 20:09:38 浏览: 130
这个问题通常出现在使用旧版本的 automake 编译代码时,而你的代码中使用了 subdir-objects 选项。这个选项是在 automake 1.14 版本中才被引入的,如果你的 automake 版本低于 1.14,就会报错。
解决这个问题的方法是升级你的 automake 到 1.14 或更高版本,或者在 configure.ac 文件中禁用 subdir-objects 选项。具体来说,在 configure.ac 文件中添加以下代码即可:
```
AM_INIT_AUTOMAKE([-Wno-portability subdir-objects])
```
这会告诉 automake 禁用 subdir-objects 选项,并且忽略一些兼容性问题。重新运行 autoreconf 和 configure 命令即可。
相关问题
but option 'subdir-objects' is disabled
这个错误通常是由于使用了过时的 Autotools 版本或者没有正确配置 Autotools 导致的。你可以尝试升级 Autotools 版本或者按照正确的方式配置 Autotools。具体来说,你可以检查 configure.ac 文件中是否包含 AM_INIT_AUTOMAKE 和 AC_CONFIG_SUBDIRS 宏,并确保 Makefile.am 文件中的 SUBDIRS 变量是正确的。如果问题仍然存在,你可以在 configure 脚本中添加 --enable-subdir-objects 选项来启用该功能。
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
引用\[1\]:在安装软件时,如果出现configure报错"cannot find install-sh, install.sh, or shtool in ac-aux",可以尝试以下解决方法:首先,在Ubuntu系统上执行以下命令安装必要的软件包:sudo apt-get install automake autoconf libtool。然后,执行./configure, make all, make install命令进行编译和安装。另外,也可以尝试执行以下命令:$ autoreconf -vif $ ./configure --prefix=/usr/lib/erlang/lib $ make $ sudo make install。你可以参考以下链接获取更多信息:https://github.com/plashchynski/libdssl/issues/4 https://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux \[1\]。
问题:configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."的解决方法是什么?
回答: 当出现configure报错"cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."时,可以尝试以下解决方法:首先,确保已经安装了必要的软件包,可以使用sudo apt-get install automake autoconf libtool命令进行安装。然后,执行./configure, make all, make install命令进行编译和安装。另外,也可以尝试执行$ autoreconf -vif $ ./configure --prefix=/usr/lib/erlang/lib $ make $ sudo make install命令。更多信息可以参考以下链接:https://github.com/plashchynski/libdssl/issues/4 https://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux \[1\]。
#### 引用[.reference_title]
- *1* [configure时,Cannot find install-sh, install.sh, or shtool in ac-aux解决办法](https://blog.csdn.net/hubinbin595959/article/details/104838350)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [./configure时,error: cannot find install-sh, install.sh, or shtool解决方法](https://blog.csdn.net/houwenbin1986/article/details/78644990)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]