UbuntuServer (Ubuntu14.04LTS64-bit) Error fixed when libgdiplus2.10.9 is installed

Source: Internet
Author: User
UbuntuServer (Ubuntu14.04LTS64-bit) to install libgdiplus2.10.9 error solving record first download libgdiplus2.10.9 installation package wgethttp: // uninstall

Error resolution record for installing libgdiplus2.10.9 on Ubuntu Server (Ubuntu 14.04 LTS 64-bit)

First download the libgdiplus2.10.9 installation package

wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2tar -jxvf libgdiplus-2.10.9.tar.bz2cd libgdiplus-2.10.9

Go to the directory and start configure compilation.

./configure --prefix=/usr
make

Install libgdiplus in the/usr directory

The following error is reported in the operating system:

 
gdiplus-private.h:33:31: fatal error: freetype/tttables.h: No such file or directory #include 
 
                                 ^compilation terminated.make[2]: *** [adjustablearrowcap.lo] Error 1make[2]: Leaving directory `/root/libgdiplus-2.10/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/libgdiplus-2.10'make: *** [all] Error 2root@ubuntu:~/libgdiplus-2.10# sudo ln -s /usr/X11/include/freetype2/freetype/ /usr/X11/include/freetypeln: failed to create symbolic link ‘/usr/X11/include/freetype’: No such file or directory
 
 

This error indicates that the/usr/X11/include/freetype link fails to be created because the freetype cannot be found.

Open/usr/include to check whether the freetype directory exists. No, but we have found freetype2. Let's create a link.

ln -s /usr/include/freetype2 /usr/include/freetype

Then proceed to make and find the following error:

 
/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[2]: *** [testgdi] Error 1make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9'make: *** [all] Error 2
 

Solution: http://beginor.github.io/2013/10/15/install-and-config-mono-on-ubuntu-server.html

Run. /configure command, and then edit the test/Makefile file; change LIBS =-lpthread-lfontconfig of Line 1 to LIBS =-lpthread-lfontconfig-lglib-2.0-lX11; execute the make command again.

Make again. Is it successful soon? OK, make install

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Ubuntu 14.04Download, install, configure related knowledge http://www.linuxidc.com/Linux/2014-04/100370.htm

Ubuntu 14.04: Http://www.linuxidc.com/Linux/2014-04/100352.htm

Ubuntu 14.04 text tutorial on hard drive installation in Windows 7Http://www.linuxidc.com/Linux/2014-04/100369.htm

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-06/103853.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.