How to install the gd Library

Source: Internet
Author: User
How to install the gd Library my linux has installed php5.3 but it seems that there is no gd Library. a theme in wordpress is useful to imagecreatefromjpeg (), and an error is reported: Fatalerror: Calltoundefinedfunctionimagecrea how to install the gd Library
I installed php 5.3 in linux but it seems that there is no gd Library. a theme in wordpress is useful to imagecreatefromjpeg (). an error is reported:
Fatal error: Call to undefined function imagecreatefromjpeg () in/home/highbeam/public_html/247carleasing. sg/wp-content/themes/car-converted Al/system/libraries/image. php on line 33

So I installed:
Zlib-1.2.3.tar.gz to/usr/local/zlib
Libtool-2.4.2.tar.gz to default directory
Jpeg-6b.tar.gz to/usr/local/limit 6
Libpng-1.2.16.tar.gz to/usr/local/libpng
Freetype-2.3.4.tar.gz to/usr/local/freetype
Gd-2.0.33.tar.gz to/usr/local/gd2 below.

Previously, php was installed. how can I enable php to support gd?



------ Solution --------------------
1. phpinfo: output your original configure string
2. Find Your php source code. add -- with-gd =/usr/local/gd to the configure address, which is the actual address of your gd installation.
3 make
Then you don't have to teach.
------ Solution --------------------
Discussion
Reference:

1. phpinfo: output your original configure string
2. Find Your php source code. add -- with-gd =/usr/local/gd to the configure address, which is the actual address of your gd installation.
3 make
Then you don't have to teach.

Thank you. Is there any way to recompile it?

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.