-
-
Save anunay/7698181 to your computer and use it in GitHub Desktop.
Installing AutoConf and Fixing Phpize on OSX 10.9 |
thanks for this. might want to rename your topic from phpsize to phpize.
Thank you very much!
thanks , it helped me install php redis extension for ampps ~
thanksss!!!
Most helpful result I found
Nice, worked great.
Thank you!
Thanks so much! Help a lot when I install my php redis extension.
Thanks, mate. Very helpful!
-bash: autoconf.tar.gz: Permission denied :(
This really helped me out, thanks!
Brilliant - worked for me on El Capitan. Thanks.
quicker way of doing this: (using homebrew)
brew install autoconf
if you dont have homebrew, i strongly recomend getting it from http://brew.sh/
Great. Life saver.
I'm new to this field and this was definitely helpful to me. Thanks so much!!!
Note: even if you are using brew install autoconf
, you will still need to manually export the $PHP_AUTOCONF
environment variable, using: export PHP_AUTOCONF=/usr/local/bin/autoconf
.
thank you very match
thanks for this. might want to rename your topic from phpsize to phpize.
Good catch, I did that :)
Cool, thank you very much, most helpful result i foud.
Installing AutoConf and Fixing Phpize on OSX 10.9
When setting up my development environment on my new Mac (running OSX 10.8) I noticed autoconf was missing. Autoconf is used by phpize to compile php extensions like xdebug and is something I use on a reasonably frequent basis.
The error I got when trying to run php on the xdebug extension was:
When running previous versions of OSX autoconf has either been included (<10.6) or available by installing xcode and the development command line tools. However after installing the latest version of xcode (4.3) I found autoconf absent from there as well!
The solution I came up with was to compile autoconf from source and set the environment variable which points to autoconf required by phpize.
Download autoconf
curl http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz > autoconf.tar.gz
Untar the autoconf archive
tar -xvzf autoconf.tar.gz
Configure and make – note the folder un-archived may have a different name.
cd autoconf-2.69
./configure
sudo make && sudo make install
This installs autoconf to ‘/usr/local/bin/autoconf’. In order to get phpize to work set the PHP_AUTOCONF environment variable to point to the newly installed autoconf.
export PHP_AUTOCONF=/usr/local/bin/autoconf
Running phpize when attempting to compile a php extension should now work.