Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 26
At least that means that --with-gd=/usr/local/lib was correct (why did you think that it wouldn't, wassy?). Anyway, try finding where gd.h should be. You can search for it in the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    At least that means that --with-gd=/usr/local/lib was correct (why did you think that it wouldn't, wassy?).
    Anyway, try finding where gd.h should be. You can search for it in the PHP source tree with this command:
    Code:
    find -name "*.c" -exec egrep '#include <&#40;.*/&#41;?gd.h>' &#123;&#125; \;

  2. #12
    Just Joined!
    Join Date
    Feb 2003
    Posts
    16
    Using --with-gd=/usr/local/gd-2.0.11 stopped at some point, say point A, with the error:
    configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/gd-2.0.11
    Using --with-gd=/usr/local stopped at point B with the error:
    Cannot find header files under /usr/local
    When I tried using --with-gd=/usr/local/lib, it stopped somewhere between point A and point B (actually, in the line in lieu of the original error - in point A) and gave me the error:
    configure: error: Unable to find gd.h anywhere under /usr/local/lib
    The file gd.h is not found in /usr/local/lib, but is found in /usr/local/gd-2.0.11/

    Just because --with-gd=/usr/local seems to go futher in the configuration I assumed this is the right way to go, but I may be wrong. Maybe its easier to somehow get it to find the gd.h when using --with-gd=/usr/local/lib ??

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    This has just gone too far. It should be this hard. Do this:
    Code:
    cd /usr/local/lib
    for lib in libgd.*; do ln -s ../lib/$lib ../gd-2.0.11/$lib; done
    Then configure again using --with-gd=/usr/local/gd-2.0.11. If it doesn't work then, my hair will go white.

  4. #14
    Just Joined!
    Join Date
    Feb 2003
    Posts
    16
    I did what you suggested and I got this after running configure again with --with-gd=/usr/local/gd-2.0.11 and got the same thing:

    configure: error: Cannot find header files under /usr/local
    Apparently, it ran the configuration as if I entered --with-gd=/usr/local since it did not complain about libgd.a/.so. It also found gd.h (which is also found when using --with-gd=/usr/local).

    Damn GD to hell

  5. #15
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try "make distclean" in the PHP directory and then reconfigure.

  6. #16
    Just Joined!
    Join Date
    Feb 2003
    Posts
    16
    [root@localhost php-4.3.1]# make distclean
    make: *** No rule to make target `distclean'. Stop.

  7. #17
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Isn't it maintained with autoconf/automake? OK, make clean, then?

  8. #18
    Just Joined!
    Join Date
    Feb 2003
    Posts
    16
    same thing

  9. #19
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    This has gone far past "too bad". Can you upload that configure script to a server somewhere so that I may have a look at it?

  10. #20
    Just Joined!
    Join Date
    Feb 2003
    Posts
    16
    I don't have a place to upload it.

    I just downloaded php v4.3.1 from php.net ( http://www.php.net/get/php-4.3.1.tar.bz2/from/a/mirror ) to /usr/local

    then I did:

    Code:
    cd /usr/local
    tar -xvzf php-4.3.1.tar.gz
    cd php-4.3.1
    ./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --with-config-file-path=/usr/local/apache/conf \
    --enable-versioning \
    --with-mysql=/usr/local \
    --enable-ftp \
    --with-gd=/usr/local/ \
    --with-zlib \
    --enable-bcmath \
    --disable-debug \
    --enable-memory-limit=yes \
    --enable-track-vars
    Same with GD:
    I downloaded http://www.boutell.com/gd/http/gd-2.0.11.tar.gz to /usr/local
    then:
    Code:
    cd /usr/local
    tar -xvzf gd-2.0.11.tar.gz
    cd gd-2.0.11
    ./configure
    make
    make install
    I did not modify any files. I first did GD then attempted PHP.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •