./autogen not working on Ubuntu to install watchman for react-native












1















I am trying to install watchman in Ubuntu 17.10, to run npm run android in command line to run React-Native in terminal.



I have tried sudo apt-get install -y autoconf automake build-essential python-dev,



then when I run ./autogen.sh, it throws this error:



./autogen.sh 
pkg-config appears to be missing (not available to autoconf tools)
please install the pkg-config package for your system.









share|improve this question




















  • 4





    silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

    – Zanna
    Apr 6 '18 at 19:28
















1















I am trying to install watchman in Ubuntu 17.10, to run npm run android in command line to run React-Native in terminal.



I have tried sudo apt-get install -y autoconf automake build-essential python-dev,



then when I run ./autogen.sh, it throws this error:



./autogen.sh 
pkg-config appears to be missing (not available to autoconf tools)
please install the pkg-config package for your system.









share|improve this question




















  • 4





    silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

    – Zanna
    Apr 6 '18 at 19:28














1












1








1








I am trying to install watchman in Ubuntu 17.10, to run npm run android in command line to run React-Native in terminal.



I have tried sudo apt-get install -y autoconf automake build-essential python-dev,



then when I run ./autogen.sh, it throws this error:



./autogen.sh 
pkg-config appears to be missing (not available to autoconf tools)
please install the pkg-config package for your system.









share|improve this question
















I am trying to install watchman in Ubuntu 17.10, to run npm run android in command line to run React-Native in terminal.



I have tried sudo apt-get install -y autoconf automake build-essential python-dev,



then when I run ./autogen.sh, it throws this error:



./autogen.sh 
pkg-config appears to be missing (not available to autoconf tools)
please install the pkg-config package for your system.






software-installation 17.10 compiling android-emulator






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 6 '18 at 19:27









Zanna

50.4k13133241




50.4k13133241










asked Apr 6 '18 at 19:25









ganeshdeshmukhganeshdeshmukh

484513




484513








  • 4





    silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

    – Zanna
    Apr 6 '18 at 19:28














  • 4





    silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

    – Zanna
    Apr 6 '18 at 19:28








4




4





silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

– Zanna
Apr 6 '18 at 19:28





silly question, but have you installed pkg-config, as in sudo apt install pkg-config?

– Zanna
Apr 6 '18 at 19:28










1 Answer
1






active

oldest

votes


















0














Had similar problem and turns out that I was missing some binaries and that needed to run the watchman scripts as root. Here is a shorts script that I used to get everything working:



# install watchman
sudo apt install -y libssl-dev autoconf automake libtool build-essential python-dev
cd $HOME
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.9.0 # the latest stable release
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install

# linux specific watchman configs
watchman --version
# increasing the watcher limits (need to do every time machine starts up)
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 &&
# restart server
watchman shutdown-server





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1022649%2fautogen-not-working-on-ubuntu-to-install-watchman-for-react-native%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Had similar problem and turns out that I was missing some binaries and that needed to run the watchman scripts as root. Here is a shorts script that I used to get everything working:



    # install watchman
    sudo apt install -y libssl-dev autoconf automake libtool build-essential python-dev
    cd $HOME
    git clone https://github.com/facebook/watchman.git
    cd watchman
    git checkout v4.9.0 # the latest stable release
    sudo ./autogen.sh
    sudo ./configure
    sudo make
    sudo make install

    # linux specific watchman configs
    watchman --version
    # increasing the watcher limits (need to do every time machine starts up)
    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 &&
    # restart server
    watchman shutdown-server





    share|improve this answer




























      0














      Had similar problem and turns out that I was missing some binaries and that needed to run the watchman scripts as root. Here is a shorts script that I used to get everything working:



      # install watchman
      sudo apt install -y libssl-dev autoconf automake libtool build-essential python-dev
      cd $HOME
      git clone https://github.com/facebook/watchman.git
      cd watchman
      git checkout v4.9.0 # the latest stable release
      sudo ./autogen.sh
      sudo ./configure
      sudo make
      sudo make install

      # linux specific watchman configs
      watchman --version
      # increasing the watcher limits (need to do every time machine starts up)
      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 &&
      # restart server
      watchman shutdown-server





      share|improve this answer


























        0












        0








        0







        Had similar problem and turns out that I was missing some binaries and that needed to run the watchman scripts as root. Here is a shorts script that I used to get everything working:



        # install watchman
        sudo apt install -y libssl-dev autoconf automake libtool build-essential python-dev
        cd $HOME
        git clone https://github.com/facebook/watchman.git
        cd watchman
        git checkout v4.9.0 # the latest stable release
        sudo ./autogen.sh
        sudo ./configure
        sudo make
        sudo make install

        # linux specific watchman configs
        watchman --version
        # increasing the watcher limits (need to do every time machine starts up)
        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 &&
        # restart server
        watchman shutdown-server





        share|improve this answer













        Had similar problem and turns out that I was missing some binaries and that needed to run the watchman scripts as root. Here is a shorts script that I used to get everything working:



        # install watchman
        sudo apt install -y libssl-dev autoconf automake libtool build-essential python-dev
        cd $HOME
        git clone https://github.com/facebook/watchman.git
        cd watchman
        git checkout v4.9.0 # the latest stable release
        sudo ./autogen.sh
        sudo ./configure
        sudo make
        sudo make install

        # linux specific watchman configs
        watchman --version
        # increasing the watcher limits (need to do every time machine starts up)
        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 &&
        # restart server
        watchman shutdown-server






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 10 at 5:34









        lampShadesDrifterlampShadesDrifter

        1064




        1064






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1022649%2fautogen-not-working-on-ubuntu-to-install-watchman-for-react-native%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀