Table of contents

    Problem: GDIPlusInit

    You are getting this error because the libgdiplus shared library can not be found on your system, this happens if you are building Mono yourself, or your operating system or packages are not properly configured.

    You must ensure that you have also built the libgdiplus on your system, if you have, you must make sure that libgdiplus can be found by Mono.

    Fixing this issue is an operating-system specific problem.


    Make sure that the file exists and that the directory containing it is listed in either the /etc/ file or in the LD_LIBRARY_PATH environment variable:

    $ echo $LD_LIBRARY_PATH

    If the directory is not listed, you can add it like this:

    export LD_LIBRARY_PATH

    If this still fails, it might be possible that one of the libraries that libgdiplus depends on does not exist, you can try to determine this using:

    $ ldd /path/to/
   =>  (0xffffe000)
   => /usr/lib/ (0xb7e3c000)
   => /usr/X11R6/lib/ (0xb7e39000)
   => /usr/X11R6/lib/ (0xb7e34000)
   => /opt/gnome/lib/ (0xb7dae000)
   => /usr/lib/ (0xb7d74000)
   => /usr/lib/ (0xb7d07000)
   => /usr/X11R6/lib/ (0xb7cff000)
   => /usr/X11R6/lib/ (0xb7c08000)
   => /usr/X11R6/lib/ (0xb7bfa000)
   => /usr/lib/ (0xb7ba6000)
   => /usr/lib/ (0xb7b86000)
   => /usr/lib/ (0xb7b7e000)
   => /usr/lib/ (0xb7b3f000)
   => /usr/lib/ (0xb7b2d000)
   => /usr/lib/ (0xb7b0a000)
   => /lib/ (0xb7ae5000)
   => /lib/ (0xb7ad0000)
   => /lib/ (0xb79b0000)
   => /lib/ (0xb79ac000)
   => /usr/X11R6/lib/ (0xb79a3000)
   => /usr/X11R6/lib/ (0xb798b000)
            /lib/ (0x80000000)

    If one of those shows that it can not be resolved, you have found your problem.

    LD_DEBUG=libs mono program.exe

    Or you can try:

    MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono glue.exe

    MacOS X

    Make sure that the file libgdiplus.dylib exists and that the directory containing it is listed in the DYLD_LIBRARY_PATH environment variable.

    You might want to try the otool command to find if there are any missing dependencies (otool is available in the devl package)

    otool -L /full/path/to/libgdiplus.dylib


    We have never heard about a problem on Windows with libgdiplus.