cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: 7.9.5-pre4 tests on OS X 10.1.2

From: jonatan <jonatan_at_wineasy.se>
Date: Tue, 5 Mar 2002 18:41:23 +0100

>Is it possible this was using the newly compiled version of curl, along
>with the installed version of libcurl? I know under cygwin I've had
>trouble along these lines, and usually fix it by adding the newly
>compiled lib/.libs directory to the front of my path, before executing
>src/.libs/curl.exe...

i was actually not executing "src/.libs/curl", but "./src/curl", which
it turns out was causing the problem.

    [localhost:~/curl-7.9.5-pre4] jonatan% ./src/curl -H "a: b" 127.0.0.1
    curl: (6) Couldn't resolve host 'b'
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    ...

    [localhost:~/curl-7.9.5-pre4] jonatan% ./src/.libs/curl -H "a: b" 127.0.0.1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    ...

    [localhost:~/curl-7.9.5-pre4] jonatan% src/.libs/curl -H "a: b" 127.0.0.1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    ...

    [localhost:~/curl-7.9.5-pre4] jonatan% src/curl -H "a: b" 127.0.0.1
    src/curl: error: ~/curl-7.9.5-pre4/src
    /Users/jonatan/curl-7.9.5-pre4/src/.libs/curl does not exist
    This script is just a wrapper for curl.
    See the libtool documentation for more information.

this last one i don't understand. it claims ".../src/.libs/curl" does
not exist, but that file does exist.

i also tried adding lib/.libs to the front of my path, but that didn't
seem to change anything. i ran the following, i hope it's correct:

    setenv PATH ~/curl-7.9.5-pre4/lib/.libs:$PATH

it seems i also have an old version of curl (7.7.2) that was distributed
with the o/s.

    [localhost:~] jonatan% locate "curl" | grep "^/usr/"
    /usr/bin/curl
    /usr/local/bin/curl
    /usr/local/bin/curl-config
    /usr/local/include/curl
    /usr/local/include/curl/curl.h
    /usr/local/include/curl/[...]
    /usr/local/include/curl/types.h
    /usr/local/lib/libcurl.2.0.2.dylib
    /usr/local/lib/libcurl.2.dylib
    /usr/local/lib/libcurl.a
    /usr/local/lib/libcurl.dylib
    /usr/local/lib/libcurl.la
    /usr/local/man/man1/curl-config.1
    /usr/local/man/man1/curl.1
    /usr/local/man/man3/curl_easy_cleanup.3
    /usr/local/man/man3/[...]
    /usr/local/man/man3/libcurl.3
    /usr/share/man/man1/curl.1

perhaps that is interfering somehow. do all those files
in /usr/local/lib/ originate from 7.9.5-pre4?

so my setup is currently as follows:

    [localhost:~/curl-7.9.5-pre4] jonatan% curl -V
    curl 7.9.5-pre4 (powerpc-apple-darwin5.3) libcurl 7.9.5-pre4
    [localhost:~/curl-7.9.5-pre4] jonatan% ./src/curl -V
    curl 7.9.5-pre4 (powerpc-apple-darwin5.3) libcurl 7.9.5-pre4
    [localhost:~/curl-7.9.5-pre4] jonatan% ./src/.libs/curl -V
    curl 7.9.5-pre4 (powerpc-apple-darwin5.3) libcurl 7.9.5-pre4
    [localhost:~/curl-7.9.5-pre4] jonatan% /usr/local/bin/curl -V
    curl 7.9.5-pre4 (powerpc-apple-darwin5.3) libcurl 7.9.5-pre4
    [localhost:~/curl-7.9.5-pre4] jonatan% /usr/bin/curl -V
    curl 7.7.2 (powerpc-apple-darwin1.4) libcurl 7.7.2 (OpenSSL 0.9.6b)

hopefully you'll be able to make something out of all this...
Received on 2002-03-05