升级的libtiff现在在启动django服务器时导致错误

yks3o0rb  于 2023-10-21  发布在  Go
关注(0)|答案(1)|浏览(101)

所以我最近执行了brew升级/更新,并发布了我在启动Django服务器时看到的以下错误

OSError: dlopen(/usr/local/opt/gdal/lib/libgdal.dylib, 0x0006): Library not loaded: /usr/local/homebrew/opt/libtiff/lib/libtiff.5.dylib
  Referenced from: <33E7E7D2-EDA5-33CC-AFB4-2F35C8A1E369> /usr/local/opt/gdal/lib/libgdal.32.3.6.4.dylib
  Reason: tried: '/usr/local/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/usr/local/homebrew/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file, not in dyld cache), '/usr/local/homebrew/Cellar/libtiff/4.5.1/lib/libtiff.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/homebrew/Cellar/libtiff/4.5.1/lib/libtiff.5.dylib' (no such file), '/usr/local/homebrew/Cellar/libtiff/4.5.1/lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file, not in dyld cache)

当签入相应的位置时,我看到系统中的libtiff文件是

$ pwd
/usr/local/homebrew/opt/libtiff/lib
$ ls
libtiff.6.dylib     libtiffxx.6.dylib   pkgconfig
libtiff.a       libtiffxx.a
libtiff.dylib       libtiffxx.dylib

$ pwd
/usr/local/opt/gdal/lib
$ ls
cmake           libgdal.32.dylib    python3.11
gdalplugins     libgdal.dylib
libgdal.32.3.6.4.dylib  pkgconfig

所以看起来好像我的系统正在寻找libtiff.5.dylib,但我目前安装的版本是libtiff.6.dylib
我该如何解决这个问题?

zwghvu4y

zwghvu4y1#

问题开始时,我安装了新的mac os 17,sanoma和非我的图书馆是工作。
这为我修好了。
1.卸载homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
1.重新安装Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1.运行你的django服务器的命令(我是php)

相关问题