最新消息:20210917 已从crifan.com换到crifan.org

【已解决】gitbook报错:dyld Library not loaded icu4c libicui18n.67.dylib

报错 crifan 1153浏览 0评论
Mac中,去
make debug
结果报错:
gitbook --port 4000 --lrport 35729 serve /Users/xxx/dev/crifan/gitbook/gitbook_template/books/make_life_better_python /Users/xxx/dev/crifan/gitbook/gitbook_template/generated/books/make_life_better_python/debug --log debug
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
make: *** [debug] Abort trap: 6
看起来是:和node有关
难道是:
刚才另外
brew install xxx
触发了
homebrew updating
然后更新了非常多的库
估计其中有node?
导致此处不兼容了?
mac dyld Library not loaded icu4c libicui18n.67.dylib
node.js – dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac – Stack Overflow
去:
brew upgrade
有一堆的库要升级
然后再:
brew cleanup
log
。。。
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> cmake
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
 ✘ xxx@xxx  ~/dev/crifan  brew cleanup
Removing: /usr/local/Cellar/autoconf/2.69... (71 files, 3.0MB)
Removing: /usr/local/Cellar/freetype/2.10.4... (64 files, 2.3MB)
Removing: /usr/local/Cellar/icu4c/67.1... (258 files, 71MB)
Removing: /usr/local/Cellar/libffi/3.3_2... (17 files, 503.9KB)
Removing: /usr/local/Cellar/libidn2/2.3.0... (70 files, 719.7KB)
Removing: /usr/local/Cellar/libmagic/5.39... (330 files, 7.9MB)
Removing: /usr/local/Cellar/libomp/11.0.1... (9 files, 1.4MB)
Removing: /usr/local/Cellar/libtiff/4.2.0... (248 files, 3.8MB)
Removing: /usr/local/Cellar/lua/5.4.2... (28 files, 307.6KB)
Removing: /usr/local/Cellar/pcre/8.44... (204 files, 5.5MB)
Removing: /usr/local/Cellar/zstd/1.4.8... (26 files, 3.3MB)
Pruned 0 symbolic links and 2 directories from /usr/local
然后再去试试
make debug即可正常
【总结】
此处,Mac中
make debug
内部报错:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
make: *** [debug] Abort trap: 6
原因:
最近一次brew的安装库,触发了update,更新了很多库。
导致了哪里不兼容此处,所以报错。
解决办法:
brew去更新并清理一次
brew upgrade
brew cleanup
即可。

转载请注明:在路上 » 【已解决】gitbook报错:dyld Library not loaded icu4c libicui18n.67.dylib

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.401 seconds, using 20.24MB memory