如何在ubuntu上安装facebook watchman?

2024-06-03 05:50:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我从github链接https://github.com/facebook/watchman.git找到了watchman,然后我得到watchman文件夹并尝试了这个

./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

为什么?我有python 2.7.9

可能是原因吗?(我使用ubuntu 15.04顺便说一句)


Tags: httpsgitgithub文件夹comfacebook链接sh
3条回答

您需要安装每个丢失的软件包。

例如在ubuntu上:

$ sudo apt-get install automake  <=== contains autoheader, ...
$ sudo apt-get install autoconf

如果你最终出现了一堆错误,比如AC未定义,那么你可能需要一个更新版本的automake。您可以从gnu repo下载源代码。。。见:https://www.gnu.org/software/automake/

如果在$ ./autogen.sh上出现以下错误

$ ./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

您需要安装automake&;autoconf。

正如我所做的:

sudo apt-get install automake autoconf

然后继续执行./autogen.sh等步骤

  1. 列表项

加元~ $git克隆https://github.com/facebook/watchman.git $cd守望者/ $git签出v4.7.0 $sudo apt get install-y autoconf automake构建基本python dev 美元/自动发电机 $/配置 $制造 $sudo make安装

$watchman—版本 $echo 999999 | sudo tee-a/proc/sys/fs/inotify/max|u用户手表&;echo 999999 | sudo tee-a/proc/sys/fs/inotify/max|u排队事件&;echo 999999 | sudo tee-a/proc/sys/fs/inotify/max|u用户实例&;监视程序关闭服务器

相关问题 更多 >