The Fix for those Silly FreeBSD PHP Ports PHP_AUTOCONF Errors

August 27, 2007 · 10 comments

If you’ve also been running into those PHP_AUTOCONF errors when trying to build php modules on FreeBSD, then you’ll be interested in this. The following two commands fixed the problem for me:

ln -s /usr/local/bin/autoheader-2.59 /usr/local/bin/autoheader259
ln -s /usr/local/bin/autoconf-2.59 /usr/local/bin/autoconf259

The error message I was getting is as follows:

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script

05-October-2007 Update

If you’re seeing this problem again with autoconf 2.61 and php 5.2.4 on FreeBSD 6.2, the new fix is to run these commands (assuming you are using a c shell):

setenv PHP_AUTOCONF autoconf-2.61
setenv PHP_AUTOHEADER autoheader-2.61

  • Facebook
  • Twitter
  • StumbleUpon
  • Reddit
  • Digg
  • Google Bookmarks
  • FriendFeed
  • LinkedIn
  • Fark
  • del.icio.us
  • Live
  • email
  • Print
  • PDF

RSS RSS via Email Twitter Facebook Please subscribe so you'll get tomorrow's post!

{ 10 comments }

1 Required October 1, 2007 at 3:57 pm

Thank you! I just want to know, who pressed the wrong button for the port?!

2 x October 16, 2007 at 9:29 am

Thanks. I needed this tip. Here is a small improvement:

setenv PHP_AUTOCONF autoconf
setenv PHP_AUTOHEADER autoheader

Regards,
OE

3 zeroreturn November 5, 2007 at 7:57 am

I saw the same error while installing PHP, but then I understood that this is not a problem with freebsd ports.

What I did next was: “pkg_info | grep php”
There was php5-5.1.6_3 package already, so I did “pkg_delete php5-5.1.6_3″ and started “make install clean” in the ports folder. The port was installed smoothly.

4 George September 3, 2008 at 10:08 am

Thanks X, I like your fix better actually.

5 simoncpu September 16, 2008 at 1:44 am

Thanks!!! This really helped me a lot.

6 Frederique Rijsdijk March 25, 2009 at 9:11 am

Nice one! I wasted some time on this, was not expecting such a simple fix. Worked nicely for me. Btw, my case was php 4.4.9 on FreeBSD 6.3.

7 George Donnelly March 25, 2009 at 9:14 am

Glad it was helpful. :)

8 Rajesh April 12, 2009 at 8:44 am

I am configuring ffmpegphp on my domain mysolutions.phonecare.in.
I downloaded the file and unzipped in home/mysolutions.phonecare.in/ffmpeg-php-0.5.0
Now when I try to run phpize, I get this error “Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.”

9 base August 21, 2009 at 7:37 am

Thanks X!
made the manual links before, but still errors using portupgrade
setenv PHP_AUTOCONF autoconf
setenv PHP_AUTOHEADER autoheader
did the trick for me too!!

10 avinas September 8, 2009 at 2:36 am

hello to all
i am also facing problem from PHP_AUTOCONF and also tried to suggestion ,but i still have problem
please any one help me

Comments on this entry are closed.

Previous post:

Next post: