30

I try to install xdebug but I get the follow error message about 'phpize'. How can I fix this thing?

leny:~ nick$ sudo pecl install xdebug
Password:
downloading xdebug-2.1.2.tgz ...
Starting to download xdebug-2.1.2.tgz (304,229 bytes)
............done: 304,229 bytes
66 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed
Cœur
  • 37,241
  • 25
  • 195
  • 267
directory
  • 3,093
  • 8
  • 45
  • 85
  • I have also run into this problem. I installed autoconf, and added it into the path in my bash profile, but still get this message. Not sure installing autoconf has anything to do with it. – jenlampton Aug 16 '15 at 05:44

3 Answers3

87

You can also install autoconf through homebrew. Just run

brew install autoconf

And all will work

konsolenfreddy
  • 9,551
  • 1
  • 25
  • 36
jeroenbourgois
  • 971
  • 1
  • 6
  • 3
  • 1
    Got permission errors from this. Needed to first do: *sudo chown -R yourusername /usr/local* then: *sudo chmod -R u+w /usr/local* and finally: *brew link autoconf* – mpemburn Dec 09 '13 at 14:15
28

"Cannot find autoconf" - Install autoconf and retry.

sudo port install autoconf but you need Xcode and MacPorts as far as I know.

Annika Backstrom
  • 13,937
  • 6
  • 46
  • 52
Narcis Radu
  • 2,519
  • 22
  • 33
1

For me, I had not agreed to the Xcode license :-

$ sudo /usr/bin/m4 --version


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS: