ramystyle
12-29-2003, 05:59 PM
Hello,
I need to install the function imagecreate() which is used by GD Library.
I have the GD Library installed in WHM and the function imagecreate() doesn't seem to work. I read somewhere that I need to install the imagecreate() function. Any idea how ?
If you know, please provide me with a step by step procedure.
Thanks
:)
Winkie
12-29-2003, 06:25 PM
What version of GD are you using?
ramystyle
12-29-2003, 06:28 PM
I don't know.
I just installed the GD from WHM (Install an RPM, GD, Install).
Is there a way to find out ?
Winkie
12-29-2003, 06:30 PM
I have no idea.. if gd's a binary, just run `gd -v`
Steven
12-29-2003, 06:57 PM
Im guessing your doing it from php, what does your phpinfo say?
ramystyle
12-29-2003, 06:59 PM
That's the error I'm getting :
Fatal error: Call to undefined function: imagecreate() in /home/xxxx/public_html/xxxx/admin/bar_3.php on line 68
2uantuM
12-29-2003, 07:13 PM
you need to recompile apache with gd..
Steven
12-29-2003, 07:24 PM
no he needs to recompile php with gd
'--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-gettext' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'
ramystyle
12-30-2003, 04:59 PM
Ok.... It took me a while to fix the GD problem... I tried all kind of stuff... But finally i recompiled APACHE from WHM oncluding GD and it worked fine...
But now im having problems with FreeType library i think, not sure though...
The error that i get is: Fatal error: Call to undefined function: imagettfbbox()
If anyone can help???
THanks
Steven
12-30-2003, 07:32 PM
did you compile it with freetype?
ramystyle
12-31-2003, 12:32 AM
No, i did not.... The thing is, I compile the GD with apache from the WHM menu... it was a simple click...
but im not sure how to do it from ssh... i dont know the command and all...
:(
Steven
12-31-2003, 12:36 AM
<? phpinfo(); ?>
make a phpfile with that and pm me the link if you dont want to post it here
ramystyle
12-31-2003, 02:32 AM
Thank u thelinuxguy!!
It wokred Finally!!!!
:)
Fatal error</b>: Call to undefined function: imagettfbbox() in <b>/home/shock/public_html/gmail/gmail.php</b> on line <b>6</b><br />
iam getting this error
i have just now installed freetype 2 and still not working
in php info iam getting this in GD
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
how can i make freetype workin ?