In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install GD under linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install GD under linux.
Before installing GD, you need to install jpeg-6b, libpng, zlib, freetype. The following is the download URL:
Download http://www.libgd.org/Downloads GD
Download ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz JPEG
Download http://www.libpng.org/pub/png/libpng.html png
Download http://www.zlib.net/zlib-1.2.3.tar.gz zlib
Download http://www.freetype.org/ freetype
1. Install zlib
Tar zxvf zlib-1.2.3.tar.gz
Cd zlib-1.2.3
. / configure
Make
Make install
two。 Install libpng
Tar zxvf libpng-1.2.29.tar.gz
Cd libpng-1.2.29
Cd scripts/
Mv makefile.linux.. / makefile
Cd..
Make
Make install
Note that the makefile here is not generated with. / configure, but is copied directly from scripts/.
3. Install freetype
Tar zxvf freetype-2.1.10.tar.gz
Cd freetype-2.1.10
. / configure
Make
Make install
4. Install Jpeg
Tar zxvf jpegsrc.v6b.tar.gz
Cd jpeg-6b/
. / configure-- enable-shared
Make
Make test
Make install
Note that configure must take the-- enable-shared parameter here, otherwise, no shared library will be generated.
5. Install GD
Tar zxvf gd-2.0.33.tar.gz
Cd gd-2.0.33
. / configure-- with-png-- with-freetype-- with-jpeg
Make install
If GD reports an error: configure.ac:64: warning: macro `AM_ICONV' not found in library
Just make clean for a moment, and then make.
If you install something else and libtool is not found, you can just come and use it from / usr/bin/libtool cp!
Compile GD under 64-bit if / usr/bin/ld: / usr/local/lib/libz.a (compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with-fPIC
This shows that zlib does not use-fPIC to compile and modify zlib's Makefile CFLAGS=-O3-DUSE_MMAP-fPIC.
Make;make install and then compile gd and then it's over!
Thank you for reading, the above is the content of "how to install GD under linux". After the study of this article, I believe you have a deeper understanding of how to install GD under linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.