Re: Reconfigure PHP
| From: | Richard Lynch | Date: | Fri, 30 Aug 2002 23:55:26 +0000 |
| Subject: | Re: Reconfigure PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114725@lists.php.net to get a copy of this message | ||
>I have installed GD, libpng, zlib, jpeg-6b, and FreeType 2. I now need to
>reconfigure PHP 'with' these additions. I don't understand how to determine
>what directories to point to for each of these 'with' statements. In
>Windows, I would just look for an exe, but under UNIX (Solaris 7) I not sure
>what the comparable file extensions are.
>
>I used 'pkgadd' command for these install programs:
>/usr/local/jpeg-6b-sol7-sparc-local
>/usr/local/libpng-1.2.0-sol7-sparc-local
>/usr/local/zlib-1.1.4-/sol7-sparc-local
>
>used 'make' in:
>/usr/local/src/freetype-2.1.2
>
>and used 'make install' in:
>/usr/local/src/gd-2.0.1
>
>I didn't specify any special installation instructions for these
>programs/libraries. How can I determine what directories to point the 'with'
>statements to?
Odds are actually pretty good that PHP will just find them...
If not, you can do this in the shell:
whereis freetype
(and similarly for gd and zlib and jpeg)
If that doesn't turn up anything, "locate freetype" might.
You're looking, though, for not *just* one thing, but two things:
Where the freetype.so file ended up.
Where the various freetype.h files ended up.
It's *usually* /usr/local/lib/freetype.so and /usr/local/include/freetype.h
If so, you'd want *JUST* --with-freetype=/usr/local
If you put the "/lib/" in there, PHP can't find the header (freetype.h)
files. Don't do that.
--
Like Music? http://l-i-e.com/artists.htm