0

我无法使用 linuxbrew 安装 watchman,它显示错误:

  error: command '/usr/bin/gcc-4.8' failed with exit status 1
    make[1]: *** [py-build] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/tmp/watchman20150922-20192-z5lj26/watchman-3.7.0-brew'
    make: *** [all] Error 2

我已经生成了错误日志

brew gist-logs watchman --config --doctor

它的链接是https://gist.github.com/anonymous/d4f8d02f93db2e2b1c15

请帮忙

4

2 回答 2

3

安装 Watchman 的最佳方法是:


按照以下命令

$ sudo apt-get install -y autoconf automake build-essential python-dev
$ ./autogen.sh 
$ ./configure 
$ make
$ sudo make install

$ watchman --version
$ echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches  && echo 999999 | sudo tee -a  /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee  -a /proc/sys/fs/inotify/max_user_instances && watchman  shutdown-server
于 2017-01-25T11:33:44.850 回答
0

我对linuxbrew一无所知,但这是根本问题:

https://gist.github.com/anonymous/d4f8d02f93db2e2b1c15#file-03-make-L31-L56

这表明您没有设置可用的python开发环境;watchman 中构建过程的一部分是为 python 构建一个 C 扩展,以使某些序列化/反序列化更有效。

您可能想要/需要使用 linuxbrew 安装 python 来解决这个问题。

于 2015-09-23T03:58:26.893 回答