大佬教程收集整理的这篇文章主要介绍了android – watchman:加载共享库时出错:libpcre.so.1,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我在运行react-native start时遇到了一个watchman错误
ERROR watchman--no-pretty get-sockname returned with exit code 127 watchman: error while loading shared libraries: libpcre.so.1: cAnnot open shared object file: No such file or directory at ChildProcess.<anonymous> (/home/rachael/Dev/InstaGo/node_modules/fb-watchman/index.js:198:18) at emitTwo (events.js:100:13) at ChildProcess.emit (events.js:185:7) at maybeClose (internal/child_process.js:827:16) at Socket.<anonymous> (internal/child_process.js:319:11) at emitOne (events.js:90:13) at Socket.emit (events.js:182:7) at Pipe._onclose (net.js:471:12)
当我运行sudo find / -name libpcre.so.1时,返回以下内容:
/home/rachael/.linuxbrew/lib/libpcre.so.1 /home/rachael/.linuxbrew/Cellar/pcre/8.38/lib/libpcre.so.1
我试过重新安装守望者:
@H_679_9@make uninstall git clone https://github.com/facebook/watchman.git cd watchman git checkout v4.1.0 # the latest stable release . /autogen.sh ./configure make sudo make install
我也用linuxbrew尝试过:
npm r -g watchman brew update && brew upgrade brew install watchman
A non-recoverable condition has triggered. Watchman needs your Help! The triggering condition was at timestamp=1407695600: inotify-add-watch(/my/path) -> CAnnot allocate memory All requests will conTinue to fail with this message until you resolve the underlying problem. you will find more information on fixing this at https://facebook.github.io/watchman/docs/troubleshooTing.html#poison-inotify-add-watch
我对此很新,所以我很感激这个问题的任何帮助.感谢您的时间.
更新
通过linuxbrew安装watchman.
使用linuxbrew时,请记住在安装任何公式之前包含以下命令:
export PATH="$HOME/.linuxbrew/bin:$PATH" export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" brew update && brew upgrade
然后安装最新版本的watchman:
brew install --HEAD watchman
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
现在守望者应该工作和反应 – 本地开始应该运行良好!
我无法帮助您直接解决问题的这一部分,但这听起来就像您尝试的后续步骤让您处于更好的位置.
请注意,当前发布的守望者版本是4.5.0;您所关注的路线已过时(您能否告诉我您在哪里找到这些路线?)
https://facebook.github.io/watchman/docs/install.html始终拥有当前信息.
现在,到毒药问题:
您看到的错误消息中包含一个(损坏,抱歉!)链接到https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify_add_watch,其中包含对正在发生的事情的一些解释.
您需要阅读本节有关正确设置系统限制的内容:
https://facebook.github.io/watchman/docs/install.html#system-specific-preparation
完成后,您可以通过运行watchman shutdown-server来清除状态
以上是大佬教程为你收集整理的android – watchman:加载共享库时出错:libpcre.so.1全部内容,希望文章能够帮你解决android – watchman:加载共享库时出错:libpcre.so.1所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。