| Article: |
PHP 4.3 and Mac OS X | |
| Subject: | php set-up problem | |
| Date: | 2003-01-24 07:21:57 | |
| From: | anonymous2 | |
|
the "--prefix=/usr" returns a command not found response when I attemp to execute the following "--prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man". How do I get this to work? Also, I downloaded "Fink" to update xml and ldap resources. I don't think I was successful the command line returned that it could not locate "gd.h" anywhere in /sw/ . How do I install the proper "ldap" and "libxml" resources? |
||
Showing messages 1 through 1 of 1.
-
php set-up problem
2003-01-24 14:54:08 Adam Trachtenberg |
[View]



First, --prefix=/usr and so forth aren't commands to be executed directly. That's why you're getting the error. Instead, these are configuration directions (parameters) for the configuration program.
So, the line from the article you need to mimic is:
[benlev:~/php-4.3.0] adam% ./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var --mandir=/usr/share/man --with-apxs --with-zlib
As you see, we prefix those params with "./configure", cause we're calling the configure program.
Second, there's the issue of not being able to use LDAP and libXML. This is so new, it's hard for me to guess your exact problem. I do know "gd.h" is not a file for either of these extensions, but for the GD extension -- you should only see this if you pass in --with-gd. Try reading the earlier postings on this board and see if that helps solve the GD problem and you can get everything to work.