
我在运行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
我试过重新安装守望者:
make uninstallgit 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 upgradebrew 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 memoryAll requests will continue to fail with this message until you resolvethe underlying problem. You will find more information on fixing this athttps://facebook.github.io/watchman/docs/troubleshooting.HTML#poison-inotify-add-watch
Facebook的故障排除页面非常模糊,我无法解决该错误.
我对此很新,所以我很感激这个问题的任何帮助.感谢您的时间.
更新
通过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
然后增加inotify用户实例,用户监视和排队事件的数量:
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -pecho fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -pecho fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
现在守望者应该工作和反应 – 本地开始应该运行良好!
解决方法 您发布的第一个问题是与ldconfig相关的问题;由于pcre二进制文件未安装在系统库路径中,因此运行时链接程序无法在运行时解析它们,因此无法启动watchman二进制文件.我无法帮助您直接解决问题的这一部分,但这听起来就像您尝试的后续步骤让您处于更好的位置.
请注意,当前发布的守望者版本是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所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)