How to install GD library
My linux was originally installed PHP 5.3 But it seems that there is no GD library, WordPress, a theme useful to Imagecreatefromjpeg (), there are errors:
Fatal error:call to undefined function imagecreatefromjpeg () in/home/highbeam/public_html/247carleasing.sg/ wp-content/themes/car-rental/system/libraries/image.php on line 33
So I installed the following:
Zlib-1.2.3.tar.gz to/usr/local/zlib below.
libtool-2.4.2.tar.gz to default directory
Jpeg-6b.tar.gz to/usr/local/jpeg6 below.
Libpng-1.2.16.tar.gz to/usr/local/libpng below.
Freetype-2.3.4.tar.gz to/usr/local/freetype below.
Gd-2.0.33.tar.gz to/usr/local/gd2 below.
Originally PHP is installed, how can I let PHP support GD?
------Solution--------------------
1 phpinfo, output your original configure string
2 Find your PHP source code, configure the time to add--WITH-GD=/USR/LOCAL/GD after this address is you install the actual address of GD
3 Make
Then you don't have to teach.
------Solution--------------------
discuss
Reference:
1 phpinfo, output your original configure string
2 Find your PHP source code, configure the time to add--WITH-GD=/USR/LOCAL/GD after this address is you install the actual address of GD
3 Make
Then you don't have to teach.
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.