.netcore 2.0 System.Drawing
阿新 • • 發佈:2020-04-15
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
-ivhhttp://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm