1.首先下载watchman

git clone https://github.com/facebook/watchman.git
2.然后切换到最新版本

cd watchman

git checkout v4.9.0  # the latest stable release

3.安装工具

sudo dnf install libtool*

4.然后执行

./autogen.sh

5.执行 ./configure

我的报错了:

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
checking whether g++ supports C++11 features with +std=c++11... no
checking whether g++ supports C++11 features with -h std=c++11... no
configure: error: *** A compiler with support for C++11 language features is required.

a.需要安装g++

然后执行:sudo yum install gcc-c++

b.然后执行make又报错:

ContentHash.cpp:13:10: 致命错误:openssl/sha.h:No such file or directory
 #include <openssl/sha.h>
          ^~~~~~~~~~~~~~~

解决办法执行:yum -y install  openssl-devel

c.然后再执行make,又报错

watchman-ContentHash.o: In function `watchman::ContentHashCache::computeHashImmediate(watchman::ContentHashCacheKey const&) const':
ContentHash.cpp:(.text+0x8d4): undefined reference to `SHA1_Update'
ContentHash.cpp:(.text+0x8fc): undefined reference to `SHA1_Final'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1566:watchman] 错误 1
make[1]: 离开目录“/home/liuxu/github/watchman”

解决办法再运行一次./configure,然后再运行make,又报错了:

gcc: 错误:/usr/lib/rpm/redhat/redhat-hardened-cc1:No such file or directory
error: command 'gcc' failed with exit status 1
make[1]: *** [Makefile:5059:py-build] 错误 1
make[1]: 离开目录“/home/liuxu/github/watchman”
make: *** [Makefile:1100:all] 错误 2

解决办法:

sudo dnf install redhat-rpm-config

再次运行make又报错了:

pywatchman/bser.c:31:10: 致命错误:Python.h:No such file or directory
 #include <Python.h>
          ^~~~~~~~~~

解决办法:

sudo yum install python-devel

然后再执行:

sudo make install

因为inotify默认内核参数值太小,修改之:
echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
watchman shutdown-server

fedora安装watchman相关推荐

  1. Fedora 安装WIN字体(如 宋体)

    Fedora 安装WIN字体(如 宋体) 2011-12-08 16:07 windows的字体存放在c:\windows\fonts目录下:simfang.ttf 仿宋体 simhei.ttf 黑体 ...

  2. Fedora 安装后需要做的第一件事

    一直以来,Red Hat 系的许多教程,都会建议你关闭 SELinux.确实,启用 SELinux 可能会造成许多莫名其妙的错误.但在实际生产环境,甚至是用户工作站,Red Hat 都建议将 SELi ...

  3. linux 网易云音乐 ssh,网易云音乐For Linux的Fedora安装

    终于,网易云音乐出了For Linux的版本,但可惜的是只有For Ubuntu系列的deb包.那么Fedora怎么对付? 首先说明一点,在Fedora安装会比较麻烦,而且即使安装成功也不一定能稳定运 ...

  4. Fedora安装后的基本配置

    Brief: Configuration after setup Fedora Gnu/Linux 8 AMD ATI SigmaTel HD 添加软件源livna rpm -ivh http://r ...

  5. Centos7安装watchman编译不通过

    Centos7安装watchman编译不通过 yum install autoconf automake libtool -y wget https://github.com/facebook/wat ...

  6. Manjaro安装watchman问题小结

    第一次使用Manjaro,迫不及待的想要把它变成我的生产桌面.安装ReactNative环境的时候,发现需要安装watchman,于是参考了文章. Linux环境下React Native环境搭建 在 ...

  7. react native 安装watchman flow

    安装watchman-自动监听文件内容变化,刷新数据 brew install watchman 1 如果提示没有安装brew /usr/bin/ruby -e "$(curl -fsSL ...

  8. ubuntu安装react-native 必须安装watchman

    1.安装jdk ,android sdk , 安装nodejs ,python2.7 , npm, git 2. npm install -g react-native-cli 必须安装watchma ...

  9. Mac 安装watchman 常见错误

    这里主要介绍mac在安装watchman过程中遇到的几种问题,并列举我的解决方案. 问题一: 这里根据提示运行 xcode-select --install 问题二: 在进行xcode-select ...

最新文章

  1. js html css淘宝足迹日历效果,js实现简单的日历显示效果函数示例
  2. fzu 2139 久违的月赛之二
  3. 软定时器的启动与停止
  4. helm的作用及v3版本的架构变化概述
  5. Notepad++中用正则表达式匹配中文
  6. 上架相关——appstore 更新app版本
  7. 机器学习简介及学习思维导图
  8. java windows 下载_Windows环境下JDK的下载与安装
  9. OpenResty Redis 安装部署测试SET GET功能
  10. Android UI学习之EditText
  11. DreamweaverCS6手把手教你安装并破解
  12. java投票小程序_一个实现不记名投票的小程序
  13. ALSA 中 hw 和 plughw 的区别
  14. Firefox中about:config配置大全
  15. 基于python代码的3D地图可视化
  16. 重磅!腾讯优图20篇论文入选CVPR 2021
  17. 三、Android网络开发
  18. 外贸人订单,了解清楚再接单
  19. Android通用框架设计与完整电商APP开发系列文章
  20. java的io安卓能用吗_阳光沙滩-用java写了一个Socket.IO的服务端,可是用安卓一直连接不上怎么办;...

热门文章

  1. 数据结构系列2——双向链表和双向循环链表
  2. c语言中的语义错误和语法错误,C语言程序中对错误的调试
  3. DELL服务器配置RAID
  4. Serializable详解
  5. 计算机等级模拟题库二三级(免费免积分)
  6. wxCharts修改X轴或者Y轴上的字体颜色
  7. Linux下date命令详解及C/C++代码实现
  8. 第二个spring冲刺第8天
  9. MyCat 读写分离
  10. spring自动装配Bean的五种方式