|
|
Problems compiling PHP
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
Took the plunge this weekend and installed the latest version of Developer Tools. Actually I installed the original version that came with the first Mac OS X CD's. Got errors compiling, so I D/L and installed the latest version - it gave me errors at the end of the installation. I was trying to compile/install the latest version of PHP with some fairly simple instructions I found in several locations. - but I got errors every time during the test compile. I am no programmer but looking at the short error list it gave me it appears that GCC is not found, and some other items that look to be compiler related were missing.
Do I need to somehow "enable" the tools or am I missing something?
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Yes, you are missing something You don't need to enable anything after you installed. You might like to try posting the error message instead of just saying "It doesn't work", which isn't terribly helpful. Also, this would be more at home under the OS X - Unix forum
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
You know you can't win for loosing on this board. 90% of the time queries go unanswered, then if I do post a long drawn out msg complete with error msgs, etc - then no one even reads it much less replies (hahaha...whats a reply). I have learned that when it comes to posting on BBS it is best to be succinct and to the point, and if all possible post where the most people are going. Sure it would be grand if everything was categorized - unfortunately all the people conglomerate - so you try to find a category your subject fits into and post.
Well anyway - thanks for the reply...you have been most helpful.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Mar 2001
Location: New Orleans
Status:
Offline
|
|
I've experienced this same problem...let me see if if I can get it
here it is:
./configure --with-mysql=/usr/local --with-apxs=/usr/sbin/apxs \
--with-zlib=/usr -> --with-zlib=/usr
loading cache ./config.cache
checking host system type... powerpc-apple-darwin1.4
checking target system type... powerpc-apple-darwin1.4
checking build system type... powerpc-apple-darwin1.4
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) no
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[c1-1f058:/mysql/mysql-3.23.38] clarkson%
|
G4 Cube Owner :-)
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
YOU GOT IT!!!! EXACTLY!!! All those "missing" lines in the error report. So what's the solution?
Thanks for the USEFUL reply.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
Here's the actual report I get:
./configure \
-> --with-xml \
-> --with-zlib \
-> --with-apxs=/usr/sbin/spxs
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
Updated php_version.h
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... powerpc-apple-darwin1.4
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status:
Offline
|
|
Bluez - in the future, it'd be really helpful to at least post the error messages you get if you have problems. A "it doesnt work" doesnnt even help us, even though we'd like to help.
Anyway,
Looks like it cant find the gcc / cc compiler (which are installed by the Developers tools.
Check /usr/bin - see if cc is located in there. If you installed Developer tools right, then cc should be located in that folder. (Or at least it is on my OSX workstation).
If its there, then the config file must be looking in the wrong place for it. If it's not there, then the Dev tools must've not installed right.
-tim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|