CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/liyanghao/sdk111/software/vhd_3519_usb3_vx71uv/mp4v2-2.0.0/autoaux/missing --run aclocal-1.11 /home/liyanghao/sdk111/software/vhd_3519_usb3_vx71uv/mp4v2-2.0.0/autoaux/missing: 行 52: aclocal-1.11: 未找到命令 WARNING: `aclocal-1.11' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.ac'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/sh /home/liyanghao/sdk111/software/vhd_3519_usb3_vx71uv/mp4v2-2.0.0/autoaux/missing --run automake-1.11 --foreign aclocal.m4:16: warning: this file was generated for autoconf 2.65. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'. /usr/bin/m4:configure.ac:23: empty string treated as 0 autom4te: /usr/bin/m4 failed with exit status: 1 automake-1.11: error: autoconf failed with exit status: 1 GNUmakefile:600: recipe for target 'GNUmakefile.in' failed make: *** [GNUmakefile.in] Error 1
时间: 2024-02-04 18:04:05 浏览: 35
这个错误提示是缺少`aclocal-1.11`命令,可能是因为缺少`Automake`包或者版本不匹配导致的。你可以尝试安装`Automake`并升级到2.65版本(或者重新生成build system),具体操作可以按照以下步骤进行:
1. 安装`Automake`和`Perl`包:
```
sudo apt-get install automake perl
```
2. 升级`Automake`到2.65版本:
```
sudo apt-get install automake=1:1.11.3-2ubuntu1
```
注意:这里是安装1.11.3版本,如果你需要其他版本,可以在安装命令中指定。
3. 重新生成build system:
```
autoreconf -fiv
```
4. 接着执行configure、make、make install即可。
相关问题
/root/.yarn/bin:/root/.config/yarn/global/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
从你给出的 PATH 环境变量可以看出,yarn 命令的路径已经被添加到了环境变量中。
如果在终端中执行 `yarn --version` 命令仍然提示 `yarn: command not found`,则可能是由于你使用的终端没有正确加载环境变量。你可以尝试在终端中执行以下命令:
```
source ~/.bashrc
```
该命令会重新加载 `.bashrc` 文件,使新的 PATH 环境变量生效。
如果你使用的不是 bash 终端,而是其它的终端程序,如 zsh 或 fish,则需要加载对应的配置文件,例如:
- 对于 zsh 终端:`source ~/.zshrc`
- 对于 fish 终端:`source ~/.config/fish/config.fish`
执行完上述命令后,再次执行 `yarn --version` 命令,应该就能够成功执行了。
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then [ -x /usr/bin/id ] || return ID=`/usr/bin/id -u` [ -n "$ID" -a "$ID" -le 200 ] && return # for bash and zsh, only if no alias is already set alias vi >/dev/null 2>&1 || alias vi=vim fi
这段代码是一个 shell 脚本中的条件语句块,用于检查当前是否在 Bash、Ksh 或 Zsh 环境中运行,并执行相应的操作。
这段代码的含义如下:
1. `if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then`:检查是否在 Bash、Ksh 或 Zsh 环境中运行。
2. `[ -x /usr/bin/id ] || return`:检查 `/usr/bin/id` 是否可执行,如果不可执行,则终止脚本。
3. `ID=`/usr/bin/id -u``:获取当前用户的用户 ID。
4. `[ -n "$ID" -a "$ID" -le 200 ] && return`:检查用户 ID 是否存在且小于等于 200,如果是,则终止脚本。
5. `alias vi >/dev/null 2>&1 || alias vi=vim`:检查是否已经定义了别名 `vi`,如果没有,则将 `vi` 设置为 `vim` 的别名。
这段代码的作用是在 Bash、Ksh 或 Zsh 环境中执行一些特定操作,例如设置别名和条件限制。具体的操作根据你的需求和环境来确定。