Edit report at https://bugs.php.net/bug.php?id=60268&edit=1

 ID:                 60268
 Comment by:         thehuey at gmail dot com
 Reported by:        rich06 at gmail dot com
 Summary:            Compiling PHP fails
 Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OS X 10.7.2 (Lion)
 PHP Version:        5.3.8
 Assigned To:        patrickallaert
 Block user comment: N
 Private report:     N

 New Comment:

Same problem.  Makefile edit to point at /opt/local/lib worked for me as well.


Previous Comments:
------------------------------------------------------------------------
[2012-03-31 20:38:25] SaraviaJ at gmail dot com

I had this same issue when compiling PHP5.4 on Mac OS X 10.6.8 ( Snow Leopard )

I tried both the local copy of the iconv library that and also tried to specify 
one that I got via fink.

I had to perform the correction that rich mentioned and changed the path to a 
the version of iconv that I compiled.

------------------------------------------------------------------------
[2012-03-09 09:30:47] sander at myxt dot nl

If you are on OSX and using Xcode 4.3, make sure you install the command line 
tools. That should solve a good deal of extension compiling errors.

------------------------------------------------------------------------
[2012-03-05 18:28:47] dedalo at doramail dot com

This is a still an issue men and it's not related to --with-apxs2. This is my 
configure command line:

sudo ./configure --prefix=/usr/local --with-apxs2=/usr/sbin/apxs 
--with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr 
--enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets 
--with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc 
--sysconfdir=/private/etc --with-mysql-sock=/var/mysql/mysql.sock 
--with-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl=/usr --with-xmlrpc 
--with-xsl=/usr --without-pear --with-libxml-dir=/usr 
--with-iconv-dir=/opt/local --with-gd --with-jpeg-dir=/opt/local 
--with-png-dir=/opt/local --with-freetype-dir=/opt/local 
--with-mcrypt=/opt/local

As you can see, there is a file path for apsx2 option: 
--with-apxs2=/usr/sbin/apxs

But the make still fails. To make it work, I changed the Makefile, in 
particular the MH_BUNDLE_FLAGS, like suggested by rich06, as follow: 
-L/opt/local/lib

This is a bug, and it's still there. Reopen it, please.

------------------------------------------------------------------------
[2011-12-08 10:43:44] lolautruche at gmail dot com

I don't agree here, as ./configure --help says:

  --with-apxs2=FILE     Build shared Apache 2.0 Handler module. FILE is the 
optional
                          pathname to the Apache apxs tool apxs

So FILE is optional

------------------------------------------------------------------------
[2011-12-08 10:38:54] patrickalla...@php.net

Closing.
Invalid usage of --with-apxs2 which expects a file argument:
--with-apxs2 --with-iconv-dir=/opt/local

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=60268


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60268&edit=1

Reply via email to