解决mac下:dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib

#下载
wget -c https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-src.tgz
tar -xvf icu4c-64_2-src.tgz
cd icu/source
#编译安装
./configure --prefix=/usr/local/Cellar/icu4c/64.2	#可自己指定存放的目录
make && make install

#复制
cd /usr/local/icu4c/64.2/lib
cp libicui18n.64.2.dylib /usr/local/opt/icu4c/lib/libicui18n.64.dylib
cp libicuuc.64.2.dylib /usr/local/opt/icu4c/lib/libicuuc.64.dylib
cp libicudata.64.2.dylib /usr/local/opt/icu4c/lib/libicudata.64.dylib
cp libicuio.64.2.dylib /usr/local/opt/icu4c/lib/libicuio.64.dylib

#结束

评论

评论正在提交中...请稍后
评论提交成功...