【问题标题】:Can't install watchman on ubuntu 14.04无法在 ubuntu 14.04 上安装守望者
【发布时间】:2015-09-22 16:34:12
【问题描述】:

我无法使用 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

请帮忙

【问题讨论】:

标签: python ubuntu-14.04 linuxbrew watchman


【解决方案1】:

安装 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

【讨论】:

    【解决方案2】:

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

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

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

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

    【讨论】:

      猜你喜欢
      • 2015-09-17
      • 1970-01-01
      • 1970-01-01
      • 2015-09-23
      • 2016-03-24
      • 2016-02-16
      • 2016-10-30
      • 2015-01-28
      相关资源
      最近更新 更多