栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Centos 8 c# The type initializer for ‘Gdip‘ threw an exception

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Centos 8 c# The type initializer for ‘Gdip‘ threw an exception

缺少libgdiplus,处理图像用

安装依赖项

sudo dnf install autoconf automake libtool gcc-c++ -y
sudo dnf install freetype-devel fontconfig libXft-devel -y
sudo dnf install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel -y

下载libgdiplus

git clone https://github.com/mono/libgdiplus.git
cd libgdiplus
./autogen.sh --prefix=/usr
make

make时googletest下不下来

子模组 'external/googletest'(https://github.com/google/googletest.git)已对路径 'external/googletest' 注册
正克隆到 '/home/hsmes/libgdiplus/libgdiplus/external/googletest'...
error: RPC 失败。curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
error: 预期仍然需要 4652 个字节的正文
fetch-pack: unexpected disconnect while reading sideband packet
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
fatal: 无法克隆 'https://github.com/google/googletest.git' 到子模组路径 '/home/hsmes/libgdiplus/libgdiplus/external/googletest'
克隆 'external/googletest' 失败。按计划重试
正克隆到 '/home/hsmes/libgdiplus/libgdiplus/external/googletest'...
^Cmake: *** [Makefile:913: update_submodules] 中断

./configure 能正常运行

./configure

重新make

make
make install

创建连接

sudo ln -s /usr/local/lib/libgdiplus.so /usr/lib64/libgdiplus.so
sudo ln -s /usr/local/lib/libgdiplus.so /usr/libgdiplus.so

更新

sudo updatedb

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/940603.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号