Bug 965504

Summary: mono applications do not work, because /usr/lib64/libgdiplus.so cannot be found
Product: [openSUSE] openSUSE Distribution Reporter: Ulrich Windl <Ulrich.Windl>
Component: OtherAssignee: Matthias Mailänder <matthias>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: astieger, matthias
Version: 13.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Windl 2016-02-06 23:05:55 UTC
(This is probably another effect of bug 944754)
When trying to run a Mono application (like KeePass.exe), execution fails with this exception:
mono ./KeePass.exe

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so

"ldconfig -v | grep gdiplus" finds no "libgdiplus.so", but:
	libgdiplus.so.0 -> libgdiplus.so.0.0.0

# ll /usr/lib64/libgdiplus.so.0*
lrwxrwxrwx 1 root root     19  6. Feb 23:00 /usr/lib64/libgdiplus.so.0 -> libgdiplus.so.0.0.0
-rwxr-xr-x 1 root root 423960  6. Okt 2014  /usr/lib64/libgdiplus.so.0.0.0

After this command, mono works:
/usr/lib64 # ln -s libgdiplus.so.0 libgdiplus.so
Comment 1 Matthias Mailänder 2016-02-08 19:01:21 UTC
Indeed. The fix just hasn't been backported to 13.2 yet. You can either install the lastest mono-core from Mono:Factory or install libgdiplus-devel. I don't recommend symlinking yourself. This will only cause file conflicts for RPM.

*** This bug has been marked as a duplicate of bug 944754 ***