Page 1 of 1

installing php

Posted: Fri Jul 23, 2004 7:17 pm
by jrough
I have php-4.3.4 downloaded. I have MacOS 10.1.2.8
I have a directory unixapps/php-4.3.4
I cd to the php folder. I assume I don't have to do gunzip or tar because the folder is decompressed.

The following command is supposed to be a basic configuration however it doesn't work. I get the message command not found :

./configure --with-apxs

then I tried make and sudo make install. With make it also says command not installed. With sudo make install it asked me for the password and then it said command not found.

This was the apple developer site instructions. On another site it said install the Xtools. Since I have 1.2.8 I tried to download the xtools 1.2 and couldn't using Safari download perhaps the site is busy. do I need this before I do the above? Why are the commands not working?

Thanks,



:?:

Posted: Fri Jul 23, 2004 9:09 pm
by redmonkey
Do you actually have a configure script in the php directory? (you may have downloaded a precompiled version, where did you download it from?)

I don't know the specifics of the Mac OS but utilities such as 'make' may only be available to the 'root' user.

There is no point in trying to invoke 'make' without running the configure script first as the configure script generates the required make files.

I would suggest trying to build PHP under the root user. If it is still complaining about commands not found then you will need to download and install at least the basic set of build utilities.

Posted: Sat Jul 24, 2004 12:48 am
by lolpix
OS X 10.1 is an old build and it is quite lacking. Like I tell my mom, "Just upgrade the darn machine already!" ;) I am not even sure you can install Xcode on it. Give it another try though. Check out http://fink.sourceforge.net/ too. They have several versions of "automake" that should work, as well other fun goodies like a port of KDE for OS X.

Posted: Sat Jul 24, 2004 2:00 pm
by jrough
sorry, i don't think I'm ready for bungling around at the root level yet.

Correction, i don't have MacOS X.1 I have MacOS 10.2.8 my mistake.
i was thinking about waiting to purchase tiger instead of panther.
I could not download Xcode for the previous version from Apple site. It was 60 mb and I have a 56k modem. So I downloaded fink. I installed it FINK.
I tried the command:

./configure --with-apxs
and also
make
and I got the same reesult.

There is a build folder. What is that supposed to do?

What is fink supposed to do?
i got the php download from the macphp forum I think.
thanks,

Posted: Fri Jul 30, 2004 3:41 am
by lolpix
I use the entropy install for my sandbox, see http://www.entropy.ch/software/macosx/. This guy has created several installers for things like PHP, MySQL, and PostgreSQL. I am not sure I would use them in a tactical environment, but for practicing on a local machine they work great.

If you PM me with a mailing address I do not think Apple would mind too much if I mailed you a back up copy of the xcode freeware.