LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   installing GD (http://www.linuxquestions.org/questions/linux-server-73/installing-gd-727264/)

MiKANiSe 05-20-2009 07:04 AM

installing GD
 
How do I install GD to use it with php on my server?

I currently have only apache2 and php5 installed. I use Debian 5.0.
Please help, I am a total newb. Thank you.

bathory 05-20-2009 07:24 AM

You have to install the php5-gd package

Regards

MiKANiSe 05-20-2009 07:37 AM

Quote:

Originally Posted by bathory (Post 3546885)
You have to install the php5-gd package

Regards

I installed it, but when I type php5, I get

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: undefined symbol: gdImageCreateFromJpeg in Unknown on line 0

and if I try to use one of the functions of GD, like imagecreate in php ,I get a "Fatal error: Call to undefined function imagecreate()".

bathory 05-20-2009 07:56 AM

It looks like a bug. Read the last post here for the solution.

Regards

MiKANiSe 05-20-2009 08:10 AM

Quote:

Originally Posted by bathory (Post 3546927)
It looks like a bug. Read the last post here for the solution.

Regards

OMG... I thought I could never get it to work, but now it works great. Thanks!


All times are GMT -5. The time now is 11:57 AM.