Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Trying to replace PHP with new PHP

Trying to replace PHP with new PHP
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 17, 2004, 07:33 PM
 
HI,

I compiled successfully PHP and got it all working. However, I needed to add some more options when configuring (the configure part before make and make install) However, when I retry, the make process seems to go by too fast and the new PHP binary doesn't replace the old one. I know this because the phpinfo() page still shows the old configure options.

Anyone know how to recompile and make sure it rewrites the old one?

THanks!
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Nov 17, 2004, 08:55 PM
 
Originally posted by timmerk:
HI,

I compiled successfully PHP and got it all working. However, I needed to add some more options when configuring (the configure part before make and make install) However, when I retry, the make process seems to go by too fast and the new PHP binary doesn't replace the old one. I know this because the phpinfo() page still shows the old configure options.

Anyone know how to recompile and make sure it rewrites the old one?

THanks!
navigate to the build folder and type

>make distclean

before you run the configure and make commands
Computer thez nohhh...
     
timmerk  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 17, 2004, 09:21 PM
 
Thanks, but all it says when I try it is:

mac:~/desktop/php-4.3.9 timmerk$ sudo make distclean
sudo: Can't get working directory!
make: getcwd: : No such file or directory
make: *** No rule to make target `distclean'. Stop.

Without sudo, it just says permission denied.

Any ideas? Thanks!
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Nov 18, 2004, 02:23 AM
 
Originally posted by Simon Mundy:
navigate to the build folder and type

>make distclean

before you run the configure and make commands
How about

>make clean
Computer thez nohhh...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2