Total Pageviews

Wednesday, 25 July 2018

expected libTIFF.dylib in /usr/local/lib/问题的解决

在mac的终端中,clone一个repo时,遇错:expected libTIFF.dylib in /usr/local/lib/
意思是“在/usr/local/lib/里面,期待有libTIFF.dylib文件”,但事实上没有,于是在mac里先搜一下这个文件libTIFF.dylib:
sudo find / -name libTIFF.dylib
显示:
Password:

find: /dev/fd/lib: No such file or directory
find: /dev/fd/lib: No such file or directory
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib

果然搜到了该文件,于是:
sudo cp /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib /usr/local/lib/即可。

参考https://gist.github.com/leonardoborges/2549670

No comments:

Post a Comment