| Article: |
PHP 4.3 and Mac OS X | |
| Subject: | CURL version stops installl | |
| Date: | 2003-01-23 09:19:31 | |
| From: | anonymous2 | |
|
When entering the configure line I get the error:
|
||
Showing messages 1 through 3 of 3.
-
CURL version stops installl
2003-01-24 14:45:49 Adam Trachtenberg |
[View]
-
CURL version stops installl
2003-01-31 07:48:29 mcollins@kuwago.com [View]
Thanks for taking a moment to consider my problem and offer advice. I followed your suggestion and used fink to install dlcompat-dev (the other two mentioned, dlcompat and dlcompat-shlibs, were also already installed by fink).
I still get the following error when I issue the ./configure command:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-apxs=/usr/sbin/apxs --with-curl=/sw
...etc
checking for cURL 7.9.8 or greater... configure: error: cURL version 7.9.8 or later is required to compile php with cURL support
I have also tried taking ou the option --prefix=/usr. Any other suggestions? -
CURL version stops install
2003-02-28 19:29:40 tychay [View]
You could try installing over Apple's curl binaries (this is what I do). I gave instructions in a post below.
The line:
checking for CURL in default path... found in /usr
occurs when the ./configure has "--with-curl" or "--with-curl=shared" (latter is unsported on Mac OS X). instead of "--with-curl=/sw". Thus, that line should not be output if youy have "--with-curl=/sw".
Note:
--prefix=/usr
is only for targeting the make install. It shouldn't affect the configure
The version of curl I install against is 7.10.3 from fink. I am using "curl-ssl", "curl-ssl-dev", and "curl-ssl-shlibs" packages. You definitely need either the "curl-dev" or "curl-ssl-dev", and the library is in "curl-shlibs" or "curl-ssl-shlibs" so you'll need that too. I don't think the "curl" or "curl-ssl" is needed, but it doesn't hurt to have it also.
Unfortunately, I also smash Apple's installation of curl on my machines with my own, so I can't be 100% sure that PHP isn't accidentally linking against that.
I hope this helps,
terry chay
tychay at php dot net



So, you need to manually add the /sw directory to point PHP and cURL 7.10. Once I did that, I got an error that essentially boiled down to "can't locate file for: -ldl" I did some poking around and the short answer is: I didn't have a necessary library installed.
Using fink to install "dlcompat-dev" fixed the problem. (I already had dlcompat and dlcompat-shlibs installed.) Once I did that, PHP compiled with cURL just fine. (Well, it did give a warning about /lib not being found, but that's harmless.)
Let me know if this fixes your problem or if you're still stuck.