Hi - I compiled php as per diymacserver but I have not issued the 'make' command yet.
I stopped because I rememebered seeing some other options for compiling at phpmac.com.
I am interested in making additions like exiff, gd, jpg, png.
My question is:
seeing that i have already run Richard's compiling how do I go about making additions? Do I do it all over again this time including what I have left out? Or do I run the configure command and make just the additions that I left out? Then 'make' etc .
One more thing . . . . I am a photographer so it seems like I may make use of having:
% --with-gd \ (optional, requires jpeg + png)
% --with-jpeg-dir=/usr/local \ (optional)
% --with-png-dir=/usr/local \ (optional)
is /usr/local the right config if I have installed as per Richard's methods?
And then I read:
lib jpeg and png are [needed?] to enable jpeg and png support in GD Lib - you will need LibJPEG and LibPNG installed previously to enable GD
Where would I get these lib(raries)? and where would they have to go?
Many questions - many thanks. I sense I am getting closer to being freed from shared hosting.
tar -xzf libpng-1.2.5.tar.gz
cp scripts/makefile.darwin ./Makefile
make ZLIBINC=\\"/usr/lib\\" ZLIBLIB=\\"/usr/lib\\"
sudo make install
I haven't tested this I just found this info somewhere. Let me know if it works out for you !
Good luck...
PeterZwarich 03 Apr 2007
It's been awhile but I'm back at it. I did not try your suggested route. I installed the libraries (zlib and GD as well) with instructions (.pdf) from http://osx.topicdesk.com/downloads/.
This route went well. If you are installing GD and png libraries do not go past libpng 1.2.12.
Still have to install PHP and see if it all jives though.
Can I piggy back on this post to note a problem I've head with PEAR? I've tried to use go-pear.php several times and I cannot get it to install. The last time, I got this error message (a subset of the install process is also shown):
-------------------------------
The following PEAR packages are bundled with PHP: MDB2.
Would you like to install these as well? [Y/n] :
Loading zlib: ok
Downloading package: PEAR-stable……ok
Downloading package: Archive_Tar-stable….ok
Downloading package: Console_Getopt-stable….ok
Downloading package: Structures_Graph-stable….ok
Bootstrapping: PEAR……………….(remote) ok
Bootstrapping: Archive_Tar…………(remote) ok
Bootstrapping: Console_Getopt………(remote) ok
Downloading package: MDB2………….ok
Extracting installer………………ok
Fatal error: Call to undefined method PEAR_Error::set() in /private/tmp/go-pear.php on line 782
-------------------------------
Ideas? Suggestions? I've done several Google searches trying to find out what the problem is with no luck. I'm wondering if the PHP install generated warnings, but from what I saw it seemed to install correctly.
08 Mar 2007
Hi - I compiled php as per diymacserver but I have not issued the 'make' command yet.
I stopped because I rememebered seeing some other options for compiling at phpmac.com.
I am interested in making additions like exiff, gd, jpg, png.
My question is:
seeing that i have already run Richard's compiling how do I go about making additions? Do I do it all over again this time including what I have left out? Or do I run the configure command and make just the additions that I left out? Then 'make' etc .
One more thing . . . . I am a photographer so it seems like I may make use of having:
% --with-gd \ (optional, requires jpeg + png)
% --with-jpeg-dir=/usr/local \ (optional)
% --with-png-dir=/usr/local \ (optional)
is /usr/local the right config if I have installed as per Richard's methods?
And then I read:
lib jpeg and png are [needed?] to enable jpeg and png support in GD Lib - you will need LibJPEG and LibPNG installed previously to enable GD
Where would I get these lib(raries)? and where would they have to go?
Many questions - many thanks. I sense I am getting closer to being freed from shared hosting.
Peter
09 Mar 2007
You can use the built in --with-gd and the extra libraries.
For the optional jpeg en png libs you need, if you don't already have them, to do the following:
get ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
Get lib png from:
http://www.libpng.org/pub/png/libpng.html
I haven't tested this I just found this info somewhere. Let me know if it works out for you !
Good luck...
03 Apr 2007
It's been awhile but I'm back at it. I did not try your suggested route. I installed the libraries (zlib and GD as well) with instructions (.pdf) from http://osx.topicdesk.com/downloads/.
This route went well. If you are installing GD and png libraries do not go past libpng 1.2.12.
Still have to install PHP and see if it all jives though.
07 Apr 2007
Let me know how that works out for you !
26 Apr 2007
(cross-posting from the "Installing PHP" docs)
Can I piggy back on this post to note a problem I've head with PEAR? I've tried to use go-pear.php several times and I cannot get it to install. The last time, I got this error message (a subset of the install process is also shown):
-------------------------------
-------------------------------
Ideas? Suggestions? I've done several Google searches trying to find out what the problem is with no luck. I'm wondering if the PHP install generated warnings, but from what I saw it seemed to install correctly.