Linux下修復“執行aclocal失敗:沒有該檔案或目錄”
推薦安裝的工具
在終端中輸入以下命令來編譯並安裝watchman:
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.5.0 # 這是本文釋出時的最新版本
./autogen.sh
./configure
make
sudo 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