By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

php 4.3.10 and macosx

P: n/a
i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:

make
gcc -Iext/standard/ -I/Users/terryr/tmp/php-4.3.10/ext/standard/
-DPHP_ATOM_INC -I/Users/terryr/tmp/php-4.3.10/include
-I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
-I/Users/terryr/tmp/php-4.3.10/Zend
-I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
-no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
/Users/terryr/tmp/php-4.3.10/ext/standard/info.c -o ext/standard/info.o
&& echo > ext/standard/info.lo
gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
-I/Users/terryr/tmp/php-4.3.10/include
-I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
-I/Users/terryr/tmp/php-4.3.10/Zend
-I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
-no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
&& echo > Zend/zend_strtod.lo
/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c:239: parse error before
"uint32_t"

:-)^2
Jul 17 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Not sure.. But here is a great package i installed from on my X
machine..

http://www.entropy.ch/software/macosx/php/

Jul 17 '05 #2

P: n/a
pp*******@gmail.com wrote:
Not sure.. But here is a great package i installed from on my X
machine..

http://www.entropy.ch/software/macosx/php/

i had that...i am looking to upgrade to php4.3.10 on a macosx 10.2.8
installation. i am waiting for macosx 10.4 and am going to skip 10.3 for
financial reasons. so far all i have done is ruin what i had working.
where can i find folks who know more about macosx 10.2.8 and php-4.3.10?

:-)^2
Jul 17 '05 #3

P: n/a
On Fri, 07 Jan 2005 13:26:55 -0500
Terry Richards <sn******@bellsouth.net> wrote:

:pp*******@gmail.com wrote:
:> Not sure.. But here is a great package i installed from on my X
:> machine.. http://www.entropy.ch/software/macosx/php/
:>
:i had that...i am looking to upgrade to php4.3.10 on a macosx 10.2.8
:installation. i am waiting for macosx 10.4 and am going to skip 10.3
:for financial reasons. so far all i have done is ruin what i had
:working.
:where can i find folks who know more about macosx 10.2.8 and php-4.3.10?

What did you tell ./configure?

I have 4.1 working with Jaguar, I'll get a copy of 4.3 this weekend
and see what I can see. Can't do it sooner, sorry, the wife is busy
with the Mac.

--
Tony Reed
<tr***@altern.org>
Jul 17 '05 #4

P: n/a
Tony Reed wrote:
What did you tell ./configure?

from INSTALL in php-4.3.10:

../configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-mysql \
--with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

:-)^2
Jul 17 '05 #5

P: n/a
Terry Richards wrote:
Tony Reed wrote:
What did you tell ./configure?


from INSTALL in php-4.3.10:

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-mysql \
--with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

:-)^2

trying the above with php-5.0.3 i get:
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2
installation.

how do i direct to /sw/bin/xml2-config?

:-)^2
Jul 17 '05 #6

P: n/a
Terry Richards wrote:
Terry Richards wrote:
Tony Reed wrote:
What did you tell ./configure?

from INSTALL in php-4.3.10:

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-mysql \
--with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

:-)^2


trying the above with php-5.0.3 i get:
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2
installation.

how do i direct to /sw/bin/xml2-config?

:-)^2


Not that I know a thing about mac's, but maybe try --with-xml=/sw ? Are
the include files for xml2 in /sw/include and the library files in /sw/lib ?
Jul 17 '05 #7

P: n/a

What did you tell ./configure?

from INSTALL in php-4.3.10:

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-mysql \
--with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

trying the above with php-5.0.3 i get:
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2
installation.

how do i direct to /sw/bin/xml2-config?

:-)^2

Not that I know a thing about mac's, but maybe try --with-xml=/sw ? Are
the include files for xml2 in /sw/include and the library files in
/sw/lib ?

yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried
--with-xml=/sw/bin/xml2-config, which is where it is - no go.

:-)^2
Jul 17 '05 #8

P: n/a
Terry Richards wrote:

yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried
--with-xml=/sw/bin/xml2-config, which is where it is - no go.

:-)^2


Just --with-xml=/sw
You only give it the prefix of the path, which is just /sw. The
/bin/xml2-config is implied by configure (as are the /include/ and /lib/
when it compiles.)

So basically with that path you gave, you're telling to look in
/sw/bin/xml2-config/bin/xml2-config, which obviosuly doesn't exist.
Jul 17 '05 #9

P: n/a
In article <eA*******************@bignews1.bellsouth.net>,
Terry Richards <sn******@bellsouth.net> wrote:
i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:

make
gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
-I/Users/terryr/tmp/php-4.3.10/include
-I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
-I/Users/terryr/tmp/php-4.3.10/Zend
-I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
-no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
&& echo > Zend/zend_strtod.lo
:239: parse error before
"uint32_t"


Terry, I had a similar problem today and found a quick fix.

Please open "/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c" with your
favorite editor.

Make the following changes to line 131:

#if defined(__sparc__) || defined(__ppc__)

should read

#if defined(__sparc__)

Voilą!
Jul 17 '05 #10

P: n/a
In article
<no***************************@news-reader.wanadooportails.com>,
Michael Guitton <no*****@usenet.net> wrote:
In article <eA*******************@bignews1.bellsouth.net>,
Terry Richards <sn******@bellsouth.net> wrote:
i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting:

make
gcc -IZend/ -I/Users/terryr/tmp/php-4.3.10/Zend/ -DPHP_ATOM_INC
-I/Users/terryr/tmp/php-4.3.10/include
-I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10
-I/Users/terryr/tmp/php-4.3.10/Zend
-I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp
-no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c
/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c -o Zend/zend_strtod.o
&& echo > Zend/zend_strtod.lo
:239: parse error before
"uint32_t"


Terry, I had a similar problem today and found a quick fix.

Please open "/Users/terryr/tmp/php-4.3.10/Zend/zend_strtod.c" with your
favorite editor.

Make the following changes to line 131:

#if defined(__sparc__) || defined(__ppc__)

should read

#if defined(__sparc__)

Voilą!


There is another work-around:

http://bugs.php.net/bug.php?id=31160&edit=1
Jul 17 '05 #11

P: n/a
kicken wrote:
Terry Richards wrote:

> yes they are./sw/include/libxml2/libxml/ and /sw/lib/libxml.a; I tried

--with-xml=/sw/bin/xml2-config, which is where it is - no go.

:-)^2

Just --with-xml=/sw
You only give it the prefix of the path, which is just /sw. The
/bin/xml2-config is implied by configure (as are the /include/ and /lib/
when it compiles.)

So basically with that path you gave, you're telling to look in
/sw/bin/xml2-config/bin/xml2-config, which obviosuly doesn't exist.


i used --with-libxml-dir=/sw and it finished configuring
sure helps to read configure --help<crossed figingers>

:-)^2
Jul 17 '05 #12

P: n/a
when trying to use the fink hierarchy use the fink commander installer
for files if they exist on the fink library.

/sw is a fink directory.
jimt
In article <Yo******************@bignews6.bellsouth.net>, Terry
Richards <sn******@bellsouth.net> wrote:
Terry Richards wrote:
Tony Reed wrote:
What did you tell ./configure?


from INSTALL in php-4.3.10:

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-mysql \
--with-apache=/Users/terryr/Desktop/apachebuild/apache_1.3.33/

:-)^2

trying the above with php-5.0.3 i get:
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2
installation.

how do i direct to /sw/bin/xml2-config?

:-)^2

Jul 17 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.