Bug #60268 [Com]: Compiling PHP fails
| From: | yougmark94 at gmail dot com | Date: | Fri, 23 May 2014 01:16:19 +0000 |
| Subject: | Bug #60268 [Com]: Compiling PHP fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185901@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60268&edit=1
ID: 60268
Comment by: yougmark94 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:
see http://stackoverflow.com/questions/10457982/compiling-php-error-make-libs-libphp5-bundle-error-1
Makefile need to be modified under OS X. Or conflicts with libiconv version come out. I completely
solved this problem on my MBP.
Previous Comments:
------------------------------------------------------------------------
[2012-11-06 20:21:48] estevao dot santos at ci2 dot pt
This happens to me to compiling PHP 5.4.8 on MAC OSX 10.7 (Lion). Even with the
Makefile edition fix proposed in the comments I still get the same error.
I have Macports and installed libiconv through macports. Tried a custom compiled
libiconv to no avail.
------------------------------------------------------------------------
[2012-04-09 23:27:47] thehuey at gmail dot com
Same problem. Makefile edit to point at /opt/local/lib worked for me as well.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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