PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > PHP GD library installing
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP GD library installing

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 09h54   #1
Luca Paolella
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP GD library installing

How do I install/activate the GD library with my existing PHP version?
I'm quite sure it isn't already, since I got this error:

Fatal error: Call to undefined function imagecreate() in /Volumes/Data/
Users/luca/Library/WebServer/Documents/reloadTest/image.php on line 6

Please forgive my ignorance, and thanks for your
  Réponse avec citation
Vieux 10/04/2008, 11h43   #2
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

Quoting Luca Paolella <luca.paolella@gmail.com>:

> How do I install/activate the GD library with my existing PHP version?
> I'm quite sure it isn't already, since I got this error:
>
> Fatal error: Call to undefined function imagecreate() in
> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
> line 6
>
> Please forgive my ignorance, and thanks for your
>


On windows it's as easy as downloading the dll from pecl4win.php.net.

But from your directory structure i presume you have some sort of *nix system.
So you have to reconfigure and rebuild PHP. Add the following to the
configure line. And rebuild PHP after that. Make sure GD is installed
on the system.

--with-gd --with-jpeg-dir --with-png-dir
  Réponse avec citation
Vieux 10/04/2008, 11h50   #3
Robin Vickery
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
> Quoting Luca Paolella <luca.paolella@gmail.com>:
>
>
> > How do I install/activate the GD library with my existing PHP version?
> > I'm quite sure it isn't already, since I got this error:
> >
> > Fatal error: Call to undefined function imagecreate() in
> >

> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
> on
> > line 6
> >
> > Please forgive my ignorance, and thanks for your
> >
> >

>
> On windows it's as easy as downloading the dll from pecl4win.php.net.
>
> But from your directory structure i presume you have some sort of *nix
> system.
> So you have to reconfigure and rebuild PHP.


Ouch... first try installing the php gd module through whatever
package manager your *nix distribution uses. For instance, on Ubuntu
linux you'd do:

sudo aptitude install php5-gd

-robin
  Réponse avec citation
Vieux 10/04/2008, 12h44   #4
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

Quoting Robin Vickery <robinv@gmail.com>:

> On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
>> Quoting Luca Paolella <luca.paolella@gmail.com>:
>>
>>
>> > How do I install/activate the GD library with my existing PHP version?
>> > I'm quite sure it isn't already, since I got this error:
>> >
>> > Fatal error: Call to undefined function imagecreate() in
>> >

>> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
>> on
>> > line 6
>> >
>> > Please forgive my ignorance, and thanks for your
>> >
>> >

>>
>> On windows it's as easy as downloading the dll from pecl4win.php.net.
>>
>> But from your directory structure i presume you have some sort of *nix
>> system.
>> So you have to reconfigure and rebuild PHP.

>
> Ouch... first try installing the php gd module through whatever
> package manager your *nix distribution uses. For instance, on Ubuntu
> linux you'd do:
>
> sudo aptitude install php5-gd
>


Ouch? That's exactly what i added to my post "Make sure GD is installed
on the system."


  Réponse avec citation
Vieux 10/04/2008, 14h54   #5
Robin Vickery
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
> Quoting Robin Vickery <robinv@gmail.com>:
>
>
> > On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
> >
> > > Quoting Luca Paolella <luca.paolella@gmail.com>:
> > >
> > >
> > > > How do I install/activate the GD library with my existing PHP version?
> > > > I'm quite sure it isn't already, since I got this error:
> > > >
> > > > Fatal error: Call to undefined function imagecreate() in
> > > >
> > >

> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
> > > on
> > > > line 6
> > > >
> > > > Please forgive my ignorance, and thanks for your
> > > >
> > > >
> > >
> > > On windows it's as easy as downloading the dll from pecl4win.php.net.
> > >
> > > But from your directory structure i presume you have some sort of *nix
> > > system.
> > > So you have to reconfigure and rebuild PHP.
> > >

> >
> > Ouch... first try installing the php gd module through whatever
> > package manager your *nix distribution uses. For instance, on Ubuntu
> > linux you'd do:
> >
> > sudo aptitude install php5-gd
> >
> >

>
> Ouch? That's exactly what i added to my post "Make sure GD is installed
> on the system."


Making sure GD is installed on the system is a very sensible thing to do.

The "ouch" was aimed at the suggestion that if you're on a *nix
system, the course of action is to recompile php. Normally these days
you'd just install the gd module (the equivalent of your windows dll)
through your package manager.

-robin
  Réponse avec citation
Vieux 10/04/2008, 15h47   #6
Thijs Lensselink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

Quoting Robin Vickery <robinv@gmail.com>:

> On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
>> Quoting Robin Vickery <robinv@gmail.com>:
>>
>>
>> > On 10/04/2008, Thijs Lensselink <dev@lenss.nl> wrote:
>> >
>> > > Quoting Luca Paolella <luca.paolella@gmail.com>:
>> > >
>> > >
>> > > > How do I install/activate the GD library with my existing PHP version?
>> > > > I'm quite sure it isn't already, since I got this error:
>> > > >
>> > > > Fatal error: Call to undefined function imagecreate() in
>> > > >
>> > >

>> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
>> > > on
>> > > > line 6
>> > > >
>> > > > Please forgive my ignorance, and thanks for your
>> > > >
>> > > >
>> > >
>> > > On windows it's as easy as downloading the dll from pecl4win.php.net..
>> > >
>> > > But from your directory structure i presume you have some sort of *nix
>> > > system.
>> > > So you have to reconfigure and rebuild PHP.
>> > >
>> >
>> > Ouch... first try installing the php gd module through whatever
>> > package manager your *nix distribution uses. For instance, on Ubuntu
>> > linux you'd do:
>> >
>> > sudo aptitude install php5-gd
>> >
>> >

>>
>> Ouch? That's exactly what i added to my post "Make sure GD is installed
>> on the system."

>
> Making sure GD is installed on the system is a very sensible thing to do.
>
> The "ouch" was aimed at the suggestion that if you're on a *nix
> system, the course of action is to recompile php. Normally these days
> you'd just install the gd module (the equivalent of your windows dll)
> through your package manager.
>


My bad! I always compile everything from source....


  Réponse avec citation
Vieux 10/04/2008, 16h15   #7
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing

On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella <luca.paolella@gmail.com> wrote:
> How do I install/activate the GD library with my existing PHP version? I'm
> quite sure it isn't already, since I got this error:
>
> Fatal error: Call to undefined function imagecreate() in
> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
> line 6


First, this is a server to which you have root access, correct?
You won't be able to install it otherwise, such as if you're on a
shared web host.

Secondly, what *NIX are you using? It looks to me like a
BSD-style system.... maybe MacOS?

--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!
  Réponse avec citation
Vieux 11/04/2008, 13h50   #8
Luca Paolella
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP GD library installing


On Apr 10, 2008, at 5:15 PM, Daniel Brown wrote:

> On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella <luca.paolella@gmail.com
> > wrote:
>> How do I install/activate the GD library with my existing PHP
>> version? I'm
>> quite sure it isn't already, since I got this error:
>>
>> Fatal error: Call to undefined function imagecreate() in
>> /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/
>> image.php on
>> line 6

>
> First, this is a server to which you have root access, correct?
> You won't be able to install it otherwise, such as if you're on a
> shared web host.
>
> Secondly, what *NIX are you using? It looks to me like a
> BSD-style system.... maybe MacOS?
>
> --
> </Daniel P. Brown>
> Ask me about:
> Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
> and shared hosting starting @ $2.50/mo.
> Unmanaged, managed, and fully-managed!


Yes, it's Mac OSX and I have root access on the machine; I just
checked my mail, so sorry for the delay
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16321 seconds with 16 queries