Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 580  / 2 Years ago, mon, july 4, 2022, 1:04:40

Trying to install Watchman for React Native on a fresh install of Ubuntu 20.04.


I'm using the following steps (but if there's a better way of doing it - or if you can avoid using Watchman altogether I'd be interested to hear) ...


  git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1
cd watchman/
git checkout
./autogen.sh
./configure --without-python --without-pcre --enable-lenient
make

I get the error shown below during the 'make' step.


I've seen a number of questions related to building watchman but I haven't seen this situation.


tests/integration/cppclient.cpp: In function ‘int main(int, char**)’:
tests/integration/cppclient.cpp:114:12: error: ‘TimedOut’ does not name a type
114 | } catch(TimedOut& e) {
| ^~~~~~~~
tests/integration/cppclient.cpp:120:12: error: ‘TimedOut’ does not name a type
120 | } catch(TimedOut& e) {
| ^~~~~~~~
tests/integration/cppclient.cpp:25:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
25 | system("rm -f hit");
| ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:75:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
75 | system("touch hit");
| ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:88:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
88 | system("rm hit");
| ~~~~~~^~~~~~~~~~
make[1]: *** [Makefile:2766: tests/integration/cppclient_t-cppclient.o] Error 1
make[1]: Leaving directory '/home/rshea/src/watchman'
make: *** [Makefile:1264: all] Error 2

More From » 20.04

 Answers
4

Simply install the same watchman 4.9.0 package from official repository by using below commands (and maybe consult with official guide):


sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install watchman

If you are still sure about compilation - install dependencies and then compile the application using commands below:


sudo apt-get install git build-essential libtool libssl-dev pkg-config

cd ~/Downloads
git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1
cd watchman
./autogen.sh
./configure --without-python --without-pcre --enable-lenient
make -j$(nproc)
sudo make install

[#1007] Monday, July 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
saucdisr

Total Points: 4
Total Questions: 102
Total Answers: 117

Location: Ecuador
Member since Thu, Jun 4, 2020
4 Years ago
saucdisr questions
Tue, May 10, 22, 00:19, 2 Years ago
Fri, Mar 4, 22, 17:31, 2 Years ago
Sat, May 28, 22, 08:41, 2 Years ago
Wed, Mar 22, 23, 13:40, 1 Year ago
;