Linux libgdiplus is a Mone library that can be used to display the color of web pages. However, many people complain when installing libgdiplus on Ubuntu system, which causes the installation to be impossible. What should I do if I encounter this problem? The following small series will introduce you to the Ubuntu failure to install libgdiplus. When installed in libgdiplus2.10.9 Ubuntu 14.04 LTS 64-bit system
error occurred.
First download the libgdiplus2.10.9 installation package
Enter the directory and start the configure compilation
. /configure --prefix=/usrmake
Install libgdiplus in the /usr directory
Found an error 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< Br>
This error means that the /usr/X11/include/freetype link failed to be created, because freetype
could not be found. We open /usr/include to see if there is a freetype directory, no, but We found freetype2 so we can make a link
Ln -s /usr/include/freetype2 /usr/include/freetype
Then continue to make the error found as follows:
/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:
Execute first. /configure command, then edit the test/Makefile file; change 130 lines of LIBS = -lpthread -lfontconfig to LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11; execute the make command again.
Make again, is it very successful, ok, make install
The above is the solution to the error when Ubuntu installs libgdiplus, if you get an error when installing, the system can try The method described in this article is addressed.
The characteristic of Linux system is that any operation can be implemented by commands. Linux syste
A cp:omitting directory error window may appear when copying files under Linux. Thi
In Linux systems, VLANs, Layer 3 switching, and trunks are three confusing concepts
When compiling in the Linux environment, sometimes ld/;/usr/bin/ld:cannot find -lxx
How to solve the Linux system Tail command prompt No space left on device problem
How to configure and install Node.js in Ubuntu development environment
Red Flag Linux System FTP Configuration Tips
Linux uses awk to implement multi-line merge instances
Linux blocking browser request alert method on browser
Ubuntu system remote boot operation example
Ubuntu system to change the terminal user name to red skills
What can I do if Sublime Text cannot be imported into Chinese in Linux?
Linux how to use the last command
Steps to install IEs4Linux on Ubuntu 12.04
How to detect the device name and writing speed of DVD burner under Linux
A detailed study of the CPU usage of WinXP in 100% of the reasons and solutions
How to upgrade Win8.1 Update Win8.1 upgrade Win8.1 Update tutorial
Win10 Professional login interface does not have a shutdown button recovery method
How does Alipay close the credit card for fast payment?
Win10 system can not find the solution of IE browser
What is Sina Weibo Radar? How to use the
How to share printers under win 2003 system
Windows Image Threat (IFEO) Symptoms and Prevention