fedora安装watchman
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相关推荐
- Fedora 安装WIN字体(如 宋体)
Fedora 安装WIN字体(如 宋体) 2011-12-08 16:07 windows的字体存放在c:\windows\fonts目录下:simfang.ttf 仿宋体 simhei.ttf 黑体 ...
- Fedora 安装后需要做的第一件事
一直以来,Red Hat 系的许多教程,都会建议你关闭 SELinux.确实,启用 SELinux 可能会造成许多莫名其妙的错误.但在实际生产环境,甚至是用户工作站,Red Hat 都建议将 SELi ...
- linux 网易云音乐 ssh,网易云音乐For Linux的Fedora安装
终于,网易云音乐出了For Linux的版本,但可惜的是只有For Ubuntu系列的deb包.那么Fedora怎么对付? 首先说明一点,在Fedora安装会比较麻烦,而且即使安装成功也不一定能稳定运 ...
- Fedora安装后的基本配置
Brief: Configuration after setup Fedora Gnu/Linux 8 AMD ATI SigmaTel HD 添加软件源livna rpm -ivh http://r ...
- Centos7安装watchman编译不通过
Centos7安装watchman编译不通过 yum install autoconf automake libtool -y wget https://github.com/facebook/wat ...
- Manjaro安装watchman问题小结
第一次使用Manjaro,迫不及待的想要把它变成我的生产桌面.安装ReactNative环境的时候,发现需要安装watchman,于是参考了文章. Linux环境下React Native环境搭建 在 ...
- react native 安装watchman flow
安装watchman-自动监听文件内容变化,刷新数据 brew install watchman 1 如果提示没有安装brew /usr/bin/ruby -e "$(curl -fsSL ...
- ubuntu安装react-native 必须安装watchman
1.安装jdk ,android sdk , 安装nodejs ,python2.7 , npm, git 2. npm install -g react-native-cli 必须安装watchma ...
- Mac 安装watchman 常见错误
这里主要介绍mac在安装watchman过程中遇到的几种问题,并列举我的解决方案. 问题一: 这里根据提示运行 xcode-select --install 问题二: 在进行xcode-select ...
最新文章
- js html css淘宝足迹日历效果,js实现简单的日历显示效果函数示例
- fzu 2139 久违的月赛之二
- 软定时器的启动与停止
- helm的作用及v3版本的架构变化概述
- Notepad++中用正则表达式匹配中文
- 上架相关——appstore 更新app版本
- 机器学习简介及学习思维导图
- java windows 下载_Windows环境下JDK的下载与安装
- OpenResty Redis 安装部署测试SET GET功能
- Android UI学习之EditText
- DreamweaverCS6手把手教你安装并破解
- java投票小程序_一个实现不记名投票的小程序
- ALSA 中 hw 和 plughw 的区别
- Firefox中about:config配置大全
- 基于python代码的3D地图可视化
- 重磅!腾讯优图20篇论文入选CVPR 2021
- 三、Android网络开发
- 外贸人订单,了解清楚再接单
- Android通用框架设计与完整电商APP开发系列文章
- java的io安卓能用吗_阳光沙滩-用java写了一个Socket.IO的服务端,可是用安卓一直连接不上怎么办;...