Wie gebe ich LDFLAGS und CPPFLAGS für ./configure an?

Ich verwende einen Mac mit OS X 10.8.3. Ich versuche, cgminer 3.0.0 zu kompilieren. Bei meinem ersten Lauf von./configure Ich habe die Nachricht erhalten:

checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2

Also habe ich die neueste Version von libcurl mit Homebrew installiert:

brew install curl

Dasschien den Trick machen. Ich habe diese Nachricht erhalten:

downloaded: /Library/Caches/Homebrew/curl-7.30.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/curl/7.30.0
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

The libcurl provided by Leopard is too old for CouchDB to use.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/curl/lib
    CPPFLAGS: -I/usr/local/opt/curl/include

==> Summary
/usr/local/Cellar/curl/7.30.0: 75 files, 2.0M, built in 61 seconds

Okay, es ist installiert, aber nicht mit einem Link verbunden/usr/local, das ist okay für mich. Ich habe es versucht:

export LDFLAGS=-L/usr/local/opt/curl/lib
export CPPFLAGS=-I/usr/local/opt/curl/include
./configure

Aber ich habe die gleiche Nachricht erhalten:configure: error: Missing required libcurl dev >= 7.18.2

Also habe ich Folgendes versucht:

env LDFLAGS=-L/usr/local/opt/curl/lib CPPFLAGS=-I/usr/local/opt/curl/include ./configure

Ich erhalte immer noch die Meldung "Fehlende erforderliche libcurl". Irgendwelche Ideen?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage