Enabling GD / running "./configure"

Discussion in 'Programming/Scripts' started by moshe.gorin, Jun 2, 2010.

  1. moshe.gorin

    moshe.gorin New Member

    I'm running linux / cPanel 11 / php 5.

    I'm trying to enable GD. I've read the easiest way to do so is modify the configuration file ( http://www.web-tech-india.com/articles/php/compiling_php_apache/#php ).

    When I browse to "/usr/local/lib/php" however, and try to run "./configure" I get "No such file or directory"

    Please advise. Thank you.
  2. fbnewtz

    fbnewtz New Member

    Are you sure GD is not available?

    How did you install apache? Did you install it from packages or by downloading the source and compiling. It seems like you installed from packages.

    If that is the case then you do not need to worry about compiling again, just install the right package for CentOS.

    Try just running this command:

    yum install php-gd
  3. BorderAmigos

    BorderAmigos New Member

    ./ means run in the current directory. ./configure will run the "configure" that is in the current directory. If you are compiling something from source, you should be in the source directory. "/usr/local/lib/php" is NOT a source directory.
  4. sjau

    sjau Local Meanie Moderator

    and if you are on ubuntu/debian

    apt-get install php5-gd

Share This Page