I'm trying to install php on the new version of Apple OS X 10.3. A quick run of php -v shows the following
sh-2.05b# php -v
PHP 4.3.2 (cli) (built: Sep 13 2003 22:04:20)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
but running a phpinfo() shows that no mysql support was compiled. Well, being that I had just finished comiling and installing mysql 4.0.15a to /usr/local/mysql for local web development I decided to grab the latest php source and compile.
sh-2.05b# curl -O [url]http://us2.php.net/distributions/php-4.3.3.tar.gz[/url]
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 4458k 100 4458k 0 0 140k 0 0:00:31 0:00:31 0:00:00 147k
sh-2.05b# tar zxvf php-4.3.3.tar.gz
sh-2.05b# cd php-4.3.3.tar.gz
sh-2.05b# ./configure --with-mysql=/usr/local/mysql --with-apxs --with-xml --with-zlib
Configure then runs with no errors. I installed zlib before the default install path.
then comes "make"
sh-2.05b# make
and just like that poof any hopes of having a nice mobile cross-platform development enviroment are dashed like so many other hopes I've had in life.
ext/standard/dns.o && echo > ext/standard/dns.lo
/usr/local/src/php-4.3.3/ext/standard/dns.c: In function `zif_checkdnsrr':
/usr/local/src/php-4.3.3/ext/standard/dns.c:228: error: `T_MX' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:228: error: (Each undeclared identifier is reported only once
/usr/local/src/php-4.3.3/ext/standard/dns.c:228: error: for each function it appears in.)
/usr/local/src/php-4.3.3/ext/standard/dns.c:239: error: `T_A' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:240: error: `T_NS' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:242: error: `T_PTR' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:243: error: `T_ANY' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:244: error: `T_SOA' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:245: error: `T_CNAME' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:256: error: `C_IN' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c: In function `zif_getmxrr':
/usr/local/src/php-4.3.3/ext/standard/dns.c:288: error: `HEADER' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:288: error: `hp' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:317: error: `C_IN' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:317: error: `T_MX' undeclared (first use in this function)
/usr/local/src/php-4.3.3/ext/standard/dns.c:324: error: parse error before ')' token
make: *** [ext/standard/dns.lo] Error 1
to which I proceeded to take off my shoe, yell "motherf*****", and throw said shoe at the wall scaring the crap out of my dog.
So what do I do now? I've googled, recompiled, reconfigured, tried snapshots, tried php5 beta and nothing will get me up and running. What do I do?