#34089 [Com]: Configure fails build test for libxml2

From: Date: Thu, 08 May 2008 21:11:16 +0000
Subject: #34089 [Com]: Configure fails build test for libxml2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124842@lists.php.net to get a copy of this message
ID: 34089 Comment by: marcioandreyfurtado at hotmail dot com Reported By: ramsey@php.net Status: No Feedback Bug Type: Compile Failure Operating System: Mac OS X 10.4.8 PHP Version: 6CVS-2006-10-03 New Comment: yes Previous Comments: ------------------------------------------------------------------------ [2007-08-10 02:00:24] asokan dot anish at gmail dot com I installed the gcc-c++ binaries and its dependencies. using yum install gcc-c++.i386 gcc-libstc++ though there were some 5 more depended files. The error: configure: error: installation or configuration problem: C++ compiler cannot create executables. was resolved. and I the configuration script sucessfully completed! I was able to install php 5.2.3 with apache httpd-2.2.4, mysql-5.0.45, libxml2-2.6.29, zlib-1.2.3, libpng-1.2.18, gd-2.0.35 etc. Anish Asokan ------------------------------------------------------------------------ [2007-08-10 01:02:49] asokan dot anish at gmail dot com I was using the configure script : ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --enable-inline-optimization --sysconfdir=/etc --with-png-dir=/usr --with-png --with-gettext --with-zlib --with-mysql=/usr/local/mysql --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-trans-sid --enable-yp --enable-tidy --enable-wddx=shared --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-xml --with-dom --with-libxml-dir=/usr --with-xml --with-gd=shared --with-regex=system --enable-dom --with-libxml-dir=/usr I was also getting the same error. But I installed, 3 rpm packages. 1] libxml2 2] libxml2-devel 3] zlib-devel using the command yum install libxml2 libxml2-devel zlib-devel was automatically installed as a dependency. After that the same configure script resolved the libxml error. but I ended up in a different one!! Configuring libtool checking build system type... i686-pc-linux-gnu checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... no checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. I think its something related with my compilers. Let me try another round of yum install... ------------------------------------------------------------------------ [2007-07-30 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-07-22 23:28:49] jani@php.net Is this still a problem in latest HEAD? ------------------------------------------------------------------------ [2006-10-03 23:31:41] ramsey@php.net After an IRC conversation with Andrei, I recompiled ICU so that it did not have --prefix=/usr/local/icu in the configure line. This put ICU in a standard location. Then, I recompiled PHP with the following configure line: ./configure --prefix=/Users/ramsey/Documents/Projects/PHP/build --enable-debug --with-layout=PHP --without-mysql --disable-cgi --with-libxml-dir=/sw --with-zlib --disable-pdo --without-sqlite --enable-unicode Configure, make, and make install went just fine. Then, running "php6 -v" from the command line produced: PHP 6.0.0-dev (cli) (built: Oct 3 2006 19:29:23) (DEBUG) Copyright (c) 1997-2006 The PHP Group Zend Engine v3.0.0-dev, Copyright (c) 1998-2006 Zend Technologies Perfect! So, apparently, configure has a problem with finding ICU in a non-standard location, even in specifying --with-icu-dir. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34089 -- Edit this bug report at http://bugs.php.net/?id=34089&edit=1

« previous php.bugs (#124842) next »