#26227 [Com]: "configure --with-libjpeg=/sw --with-libpng=/sw --with-gd" does not work
| From: | handerson at priceinc dot com | Date: | Thu, 04 Dec 2003 18:06:46 +0000 |
| Subject: | #26227 [Com]: "configure --with-libjpeg=/sw --with-libpng=/sw --with-gd" does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51700@lists.php.net to get a copy of this message | ||
ID: 26227
Comment by: handerson at priceinc dot com
Reported By: janusng at mac dot com
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Mac OS X 10.3
PHP Version: 4.3.4
New Comment:
regarding previous:
[root@bubba php-4.3.4]# locate libpng
/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng.so.3
/usr/lib/libpng12.so.0.1.2.2
/usr/lib/libpng12.so.0
/usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.2
[root@bubba php-4.3.4]# l ../../libjpeg
total 620
drwxr-xr-x 3 root root 4096 Dec 4 13:42 .
drwxrwx--- 10 handerson handerson 4096 Dec 4 13:18 ..
drwxr-xr-x 2 301 users 8192 Dec 4 14:36 jpeg-6b
also:
[root@bubba php-4.3.4]# find / -name "libjpeg*.*"
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0
also:
[root@bubba php-4.3.4]# find / -name "libXpm*.*"
/usr/X11R6/lib/libXpm.so.4
/usr/X11R6/lib/libXpm.so.4.11
PLEASE REOPEN THIS BUG AND/OR ILLUMINE ME!
Previous Comments:
------------------------------------------------------------------------
[2003-12-04 13:02:19] handerson at priceinc dot com
Unfortunately, this also happens to me, and I use your correct
parameters:
[root@bubba php-4.3.4]# ./configure --with-gd
--with-zlib-dir=/usr/include --with-jpeg-dir=../../libjpeg/jpeg-6b
--with-png-dir=/usr/lib --with-xpm-dir=/usr/X11R6/lib
>>>>>>>>>>>>>>>
Yields:
checking for GD support... yes
checking for the location of libjpeg... ../../libjpeg/jpeg-6b
checking for the location of libpng... /usr/lib
checking for the location of libXpm... /usr/X11R6/lib
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD...
no
checking for fabsf... (cached) yes
checking for floorf... (cached) yes
configure: error: libjpeg.(a|so) not found.
[root@bubba php-4.3.4]#
>>>>>>>>>>>>>
[root@bubba php-4.3.4]# ./configure --with-gd
--with-zlib-dir=/usr/include --with-png-dir=/usr/lib
--with-xpm-dir=/usr/X11R6/lib
Yields:
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... /usr/lib
checking for the location of libXpm... /usr/X11R6/lib
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD...
no
checking for fabsf... (cached) yes
checking for floorf... (cached) yes
If configure fails try --with-jpeg-dir=<DIR>
checking for png_write_image in -lpng... (cached) yes
configure: error: libXpm.(a|so) not found.
[root@bubba php-4.3.4]#
>>>>>>>>>>>>>
./configure --with-gd --with-zlib-dir=/usr/include
--with-png-dir=/usr/lib
Yields:
successful configuration.
>>>>>>>>>>>>>
this on: Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com)
(gcc version 3.2 20020903 (Red Hat
Linux 8.0 3.2-7)) , PHP 4.3.4 (cli) (built: Dec 1 2003 19:18:38),
GNU Make version 3.79.1
------------------------------------------------------------------------
[2003-11-17 21:51:28] sniper@php.net
Using the correct configure options usually helps..
------------------------------------------------------------------------
[2003-11-14 07:35:28] janusng at mac dot com
Thanks, it solved my problem.
------------------------------------------------------------------------
[2003-11-12 16:22:16] adam at trachtenberg dot com
Try:
--with-gd --with-png-dir=/sw --with-tiff-dir=/sw
That works for me.
------------------------------------------------------------------------
[2003-11-12 16:10:31] janusng at mac dot com
Description:
------------
running "./configure --with-libjpeg=/sw --with-libpng=/sw --with-gd"
will always result in the errors
I am sure that both libjpeg.dylib and libpng.dylib are in /sw/bin
directory. So does jpeglib.h, png.h and pngconf.h directory.
Expected result:
----------------
configure runs successfully
Actual result:
--------------
The last few lines of configure output are:
...
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD...
noIf configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
and I found nothing special in the config.log. The last few lines
are:
...
configure:29479: checking for GD support
configure:29526: checking for the location of libjpeg
configure:29553: checking for the location of libpng
configure:29606: checking for the location of libXpm
configure:29631: checking for FreeType 1.x support
configure:29656: checking for FreeType 2
configure:29681: checking for T1lib support
configure:29706: checking whether to enable truetype string function in
GD
configure:29731: checking whether to enable JIS-mapped Japanese font
support in GD
configure:29785: checking for fabsf
configure:29813: gcc -o conftest -g -O2 -no-cpp-precomp
-L/usr/local//lib -L/usr/local//lib -L/sw/lib -L/sw/lib conftest.c -lz
-lcurl -lz -lm -lcurl -lz -lssl -lcrypto -lz -lxml2 -lz -liconv -lm
1>&5
configure:29797: warning: conflicting types for built-in function
`fabsf'
ld: warning prebinding disabled because dependent library:
/sw/lib/libxml2.2.dylib is not prebound
configure:29785: checking for floorf
configure:29813: gcc -o conftest -g -O2 -no-cpp-precomp
-L/usr/local//lib -L/usr/local//lib -L/sw/lib -L/sw/lib conftest.c -lz
-lcurl -lz -lm -lcurl -lz -lssl -lcrypto -lz -lxml2 -lz -liconv -lm
1>&5
ld: warning prebinding disabled because dependent library:
/sw/lib/libxml2.2.dylib is not prebound
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26227&edit=1