Linux下修复“运行aclocal失败:没有该文件或目录”

来源:互联网 发布:域名跟空间怎么绑定 编辑:程序博客网 时间:2024/05/17 17:41

推荐安装的工具

在终端中输入以下命令来编译并安装watchman:

git clone https://github.com/facebook/watchman.gitcd watchmangit checkout v4.5.0  # 这是本文发布时的最新版本./autogen.sh./configuremakesudo make install

在搭建React Native环境的时候,这一部分命令中,执行./autogen.sh报错信息如下:

./autogen.sh: 9: ./autogen.sh: aclocal: not found./autogen.sh: 10: ./autogen.sh: autoheader: not found./autogen.sh: 11: ./autogen.sh: automake: not found./autogen.sh: 12: ./autogen.sh: autoconf: not found

丢失的aclocal是automake包的一部分,因此,要修复该错误,请安装以下包。

在Debian,Ubuntu或Linux Mint上:

$ sudo apt-get install automake

在CentOS,Fedora或RHEL上:

$ sudo yum install automake
0 0
原创粉丝点击