ubuntu 验证码 无法加载问题 gdiplus错误
Internal Server: Unable to load shared library 'gdiplus' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /www/wwwroot/x.opent.cn/runtimes/linux-x64/native/gdiplus.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/gdiplus.so: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/gdiplus.so: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/runtimes/linux-x64/native/libgdiplus.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/libgdiplus.so: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/libgdiplus.so: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/runtimes/linux-x64/native/gdiplus: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/gdiplus: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/gdiplus: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/runtimes/linux-x64/native/libgdiplus: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/libgdiplus: cannot open shared object file: No such file or directory /www/wwwroot/x.opent.cn/libgdiplus: cannot open shared object file: No such file or directory
安装 libgdiplus
sudo apt-get update sudo apt-get install -y libgdiplus
2. 确保安装路径正确
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
3. 验证安装
ldconfig -p | grep libgdiplus