.netcore 2.0 System.Drawing

CentOS 下报错

1.Unable to load shared library ‘libdl‘

解决方法:创建软链接

#locate libdl

/usr/lib64/libdl-2.17.so

/usr/lib64/libdl.so.2

#cd /usr/lib64

#ln -s libdl-2.17.so libdl.so

2. Unable to load DLL ‘libgdiplus‘

解决方法:安装libgdiplus

yum install autoconf automake libtool

yum install freetype-devel fontconfig libXft-devel

yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel

yum install glib2-devel cairo-devel

git clone https://github.com/mono/libgdiplus

cd libgdiplus

./autogen.sh

make

make install

cd /usr/lib64/

ln -s /usr/local/lib/libgdiplus.so gdiplus.dll

 

若依旧报错,请安装libgdiplus-devel

rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install libgdiplus-devel

 

.netcore 2.0 System.Drawing

上一篇:C#码农学TypeScript(3)—— 变量声明


下一篇:Win10 关闭自动更新的方法