image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old December 8th, 2001, 06:29 PM
Fahrvergnuugen's Avatar
I am the law!
 
Join Date: Apr 2001
Location: Galway, NY
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
Fahrvergnuugen is on a distinguished road
Problems compiling PHP

I had php working before, but I wanted to recompile it with GD support. I decided that while I was at it, I might as well upgrade Apache too.

I followed the instructions from stepwise:
first built GD
http://www.stepwise.com/Articles/Wor...-06-12.01.html
then apache and PHP
http://www.stepwise.com/Articles/Wor...-10-11.01.html

Everything went smoothly until I got the make install step for PHP. It errors out when trying to:
Quote:
[activating module `php4' in /etc/httpd/httpd.conf]
cp libs/libphp4.so /usr/libexec/httpd/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory

apxs:Break: Command failed with rc=1
make[1]: *** [install-sapi] Error 1
make: *** [install-recursive] Error 1
the libphp4.so file does not exist in the libs directory...I'm assuming it was supposed to be generated during the make step? I've tried it over and over and I can't get it to work, always the same problem.

I tried downloading the source from www.php.net rather than the source provided by stepwise, and then tried compiling with the same instructions.
This errored out with
Quote:
/usr/bin/ld: -undefined error must be used when -twolevel_namespace is in effect
make[1]: *** [libphp4.la] Error 1
make: *** [all-recursive] Error 1
I received no errors when compiling and installing the jpeg, png and GD libraries.
In both cases I used
Quote:
./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs --with-gd --with-jpg --with-png
I found a precompiled libphp4.so binary on entropy.ch:
http://www.entropy.ch/software/macosx/php/#build
but this binary will not work with my upgraded version of apache.

So I either need to do one of two things:
1. Somehow restore my apache installation back to the default that came with 10.1

2. Figure out why PHP won't install per the instructions at stepwise

Am I just doing something really stupid? Anybody else have the same problem?
Any help or suggestions would be greatly appreciated.
__________________
-Paul Wieland______________
http://www.sickdimension.com
Dual G5 2.0Ghz / 2.5GB Ram / 620 GB HD / 23" CD
Reply With Quote
  #2  
Old December 8th, 2001, 10:48 PM
Fahrvergnuugen's Avatar
I am the law!
 
Join Date: Apr 2001
Location: Galway, NY
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
Fahrvergnuugen is on a distinguished road
Solved.
http://developer.apple.com/internet/macosx/php.html
__________________
-Paul Wieland______________
http://www.sickdimension.com
Dual G5 2.0Ghz / 2.5GB Ram / 620 GB HD / 23" CD
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with CRON running PHP scripts AGBlee1970 Unix & X11 3 July 11th, 2003 05:08 AM
php 4.2.3 from source make problems alligatorTim Design & Media 0 December 5th, 2002 09:10 PM
Enabling PHP in 10.2 Client sixthring Mac OS X System & Mac Software 2 October 28th, 2002 01:48 PM
PHP error reporting problems and missing php.ini meharrington Mac OS X System & Mac Software 1 September 14th, 2001 11:08 AM


All times are GMT -5. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.