【问题标题】:How to install facebook watchman on ubuntu?如何在 ubuntu 上安装 facebook watchman?
【发布时间】:2015-11-08 08:47:04
【问题描述】:

我从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顺便说一句)

【问题讨论】:

    标签: python facebook react-native watchman


    【解决方案1】:

    您需要安装每个缺少的软件包。

    例如在 ubuntu 上:

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

    如果您最终遇到一堆错误,例如 AC_* undefined,那么您可能需要更新版本的 automake。您可以从 gnu repo 下载源代码...参见:https://www.gnu.org/software/automake/

    【讨论】:

      【解决方案2】:

      如果在$ ./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等的步骤

      【讨论】:

        【解决方案3】:

        在 Ubuntu 18.04 上使用 Watchman v4.9.0:

        sudo apt-get update
        sudo apt-get install -y autoconf automake build-essential python-dev libtool pkg-config libssl-dev
        

        然后按照https://facebook.github.io/watchman/docs/install.html#installing-from-source 的说明进行操作:

        git clone https://github.com/facebook/watchman.git
        cd watchman
        git checkout v4.9.0  # the latest stable release
        ./autogen.sh
        ./configure
        make
        sudo make install
        

        【讨论】:

          【解决方案4】:
          1. 列表项

          $ cd ~ $ git克隆https://github.com/facebook/watchman.git $ cd守望者/ $ git checkout v4.7.0 $ sudo apt-get install -y autoconf automake build-essential python-dev $ ./autogen.sh $ ./配置 $ 制作 $ sudo 安装

          $ 守望者 --version $ 回声 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

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 2021-11-14
            • 1970-01-01
            • 2021-12-06
            • 2017-06-29
            • 2015-05-19
            • 2017-11-07
            • 2017-07-12
            相关资源
            最近更新 更多