Per your suggestions:

Each of jpegsrc.v6b.tar.gz, zlib-1.2.1.tar.gz and libpng-1.2.5.tar.gz
were installed. PHP's make test shows that jpeg support is unavailable.

after make install from the jpeg source we do not have a
/usr/local/jpeg-6b directory or file. make -n install shows that the
following jpeg related files will be installed: /usr/local/bin/cjpeg djpeg jpegtran rdjpgcom wrjpgcom man pages are also installed.

I have tried with configuring with
-with-jpeg-dir=/usr/local/jpeg-6b (isn't on our system, but works for you)
-with-jpeg-dir=/usr/local/lib (where libjpg.so is) -with-jpeg-dir=/usr/local -with-jpeg-dir=../jpeg-6b (the jpeg source directory)

Each time make test shows the unavailability of jpeg support.

Our system is running FreeBSD 4.8-RELEASE

-Eli

    Originally posted by greg748

    after make install from the jpeg source we do not have a
    /usr/local/jpeg-6b directory or file.

    If you gunzip/un-tar jpegsrc.v6b.tar.gz, it creates a diretory called jpeg-6b.

    I just did it again right now on my Linux box and that's what it did. My full path to the jpeg-6b directory is /usr/local/jpeg-6b.

    Depending on where you uncompressed your file, you would have a different path. What directory did you uncompress in? Or better yet, do a:

    whereis jpeg-6b

    and that should give you your path.

      Ok, so you meant the source file directories for the libraries.

      They were in /root. I was referencing them using the relative path ../jpeg etc. I've also tried with them in the /usr/local directory and the /root directory using the full path. I am still getting the same results.

      Make test shows stuff like:
      SKIP gif --> jpeg conversion test [ext/gd/tests/gif2jpg.phpt] (reason: jpeg support unavailable)

      My configure line is:
      ./configure --with-mysql --with-apache=../apache_1.3.31 --with-gd --enable-gd-native-ttf --with-openssl --with-png=/usr/local/libpng-1.2.5 --with-ttf --with-xml --with-jpeg=/usr/local/jpeg-6b --with-zlib-dir=/usr/local/zlib-1.2.1 --with-freetype-dir=/usr/local/lib --enable-gd-imgstrttf

      Before each recompile I delete config.cache and perform a make clean.

      Just to avoid confusion, I'm the person working with the original poster.

        Modify your jpeg line to this:

        --with-jpeg-dir=/your/path/to/jpeg-6b

        Post back your results.

          --with-jpeg-dir=/root/jpeg-6b
          &
          --with-jpeg-dir=/usr/local/jpeg-6b

          Both give the same results, make test complains of no jpeg support. jpeg-6b is now in both these locations as described earlier.

            [url]ftp://ftp.uu.net/graphics/jpeg/[/url]

            That's where I grabbed my version of jpegsrc.v6b.tar.gz

            I'm not sure why PHP isn't finding your intallation.

            I did a Google search and found this link:

            http://www.neuro.gatech.edu/users/cwilson/cygutils/OBSOLETE/V1.1/jpeg-6b/

            I briefly skimmed over it and it seems it's indicating a patch may be required, but like I said, I grabbed my source from the ftp site above and have had no problems uncompressing and configuring with PHP.

            Post back your results.

              I got the same results as before using the source from uunet. I did however glean some very usefull clues from the other link. Some versions of Cygwin need a patched libjpeg.

              As it turns out I needed a patched version of libjpeg too. I found the patches and installed them. Things worked after that. Differences with methods are explained below. Thank you for your help.

              Note: --with-jpeg-dir=DIR
              The DIR should be the location of the compiled binaries on a FreeBSD system as opposed to the source code directories. I suggest using the ports system or installing using a precompiled package. I have verified that it works to use the packages system (pkg_add) for gd, libjpeg and the other required packages.

                Good, our work was not without success. Thank you for posting back for my own knowledge in case I run into this again. I made some assumptions that if works under Linux, it will work on FreeBSD, but apparently FreeBSD requires an extra patch to get things configured. I will keep that in mind.

                Good luck with your image development.

                  2 months later

                  i'm facing quite the exactly problem.

                  i'm building php with gd support on freebsd 4.8-RELEASE.

                  i've installed all the libraries needed.
                  but my GD still appears as follow (which freetype is not supported)

                  GD Support enabled

                  GD Version bundled (2.0.23 compatible)

                  GIF Read Support enabled

                  JPG Support enabled

                  PNG Support enabled

                  WBMP Support enabled

                  XBM Support enabled

                  i lack,

                  freetype Support enabled
                  freetype linkage with ttf library

                  i guess that's why i always get the error of the following everytime i try to plot a graph:
                  JpGraph Error: This PHP build has not been configured with TTF support. You need to recompile your PHP installation with FreeType support.

                  i've installed freetype2, and here's my directory look:
                  /usr/local/include/freetype2/freetype

                  and also these library in /usr/local/lib
                  libfreetype.a
                  libfreetype.la*
                  libfreetype.so@
                  libfreetype.so.9

                  (i forgot the sequences during installing libraries, does that effect?)

                  i've tried out these configuration, but none works.
                  ./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local/lib' '--with-pnglib-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-ttf=/usr/local/lib'

                  './configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local/lib' '--with-pnglib-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/' '--with-ttf=/usr/local' '--enable-freetype2' '--enable-native-gd-ttf'

                  ./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local' '--with-pnglib-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-ttf' '--enable-freetype' '--enable-native-gd-ttf'

                  './configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local' '--with-pnglib-dir=/usr/local' '--with-freetype-dir=/usr/local/include/freetype2' '--enable-gd-native-ttf' '--with-freetype'

                  can anyone enlighten me?😕 😕 😕

                    retried again with the following.. still failed..

                    './configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local' '--with-pnglib-dir=/usr/local' '--with-freetype-dir=/usr/local/include' '--enable-gd-native-ttf' '--with-ttf' '--with-freetype' '--enable-freetype2'

                    :queasy:

                      problem solved.

                      changed to php-4.3.8 instead of php-4.3.7

                        Write a Reply...