Jump to content

Recommended Posts

Hi,

I'm a newbie to linux/php hosting and am having some issues getting a site that requires gd extension for php.

 

I have built and installed php with the following command line:

'./configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-openssl' '--with-zlib' '--with-bz2' '--with-curl' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr/lib/' '--with-png-dir=/usr/lib/'

 

phpinfo() shows the following under gd:

gd

GD Support  enabled 

GD Version  bundled (2.0.34 compatible) 

GIF Read Support  enabled 

GIF Create Support  enabled 

PNG Support  enabled 

WBMP Support  enabled 

XBM Support  enabled 

 

Also, running a small php script such as function_exists('ImageCreateFromPNG'), returns true.

 

However, the site that required GD is unable to find GD.

We are getting errors like

"Fatal error: Call to undefined function ImageCreateFromJpeg() in ..."

"Fatal error: Call to undefined function ImageTTFBBox() in ..."

 

Looks like I'm missing some configuration.

 

Any pointers on what is going wrong here?

 

Link to comment
https://forums.phpfreaks.com/topic/107746-problem-using-gd-library/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.