On Jun 11, 2008, at 07:51 AM, ahmed nabel wrote:
What is wrong with using the one supplied by apple???? To me it makes no sense to install a second installation of apache when there is no gain, it only wastes disk space. Building for multiple architectures can be achieved a number of ways, the simplest way that should work for you is the following. # Add these three lines near the top of /private/etc/profile using pico (SEE: man pico) export LIBTOOLIZE=glibtoolize export MACOSX_DEPLOYMENT_TARGET=10.4 export PHPEXT_HOME=/usr/lib/php/extensions/no-debug-non-zts-20060613 Quit terminal and then run it, here's your configure command CFLAGS="-arch ppc -arch i386 -g -Os -pipe -no-cpp-precomp -pipe -no-cpp-precomp -arch i386 -arch x86_64" \ CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe " \ CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe " \ LDFLAGS="-arch i386 -arch x86_64 -lresolv" \ TEXI2HTML="/usr/bin/texi2html -subdir ." \ ./configure \ --disable-dependency-tracking \ --prefix=/usr \ --mandir=/usr/share/man \ --localstatedir=/var \ --infodir=/usr/share/info \ --enable-cli \ --enable-mods-shared=all \ --with-apxs2=/usr/sbin/apxs \ --with-kerberos=/usr \ --with-oci8=shared,/Applications/Oracle/ohome Do not issue "make install"!!!!! You are only interested in oci8.so and "find . -name oci8.so" will locate it, after a successful "make" command, this file gets copied to "/usr/lib/php/extensions/no-debug-non-zts-20060613/" Be sure it's build with 64bit support, use "file $(find . -name oci8.so)" to test it, if it is then copy it to. You can copy it with: cp oci8.so $PHPEXT_HOME/ Of course you would be better off using the exact same configure flags that apple used for your php and add "--disable-dependency-tracking" if it's not included along with adding the modules you want to add as "shared". An even better solution is you generate a clean build environment and build it there so you don't mess up your OS.
Stop using the finder to browse and search, you'll end up tainting and or corrupting the environment, see "man find". You built PHP, it may have broken apache, start by looking at "file /usr/libexec/apache2/libphp5.so" (Apple's apache module)
-- Dale |
Attachment:
PGP.sig
Description: This is a digitally signed message part
- References:
- php and Oracle client on mac - followup
- From: ahmed nabel
- Re: php and Oracle client on mac - followup
- From: BuildSmart
- php and Oracle client on mac - followup
- Prev by Date: Re: PHP Page Refuse to Display PHP content
- Next by Date: RE: PHP Page Refuse to Display PHP content
- Previous by thread: Re: php and Oracle client on mac - followup
- Next by thread: Re: php and Oracle client on mac - followup
- Index(es):