Jak określić ldflags i CPPFLAGS dla./ align = "left"/
Używam Mac z systemem OS X 10.8.3. Próbuję skompilować cgminer 3.0.0. Na moim pierwszym uruchomieniu ./configure
dostałem wiadomość:
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
Więc zainstalowałem najnowszą wersję libcurla używając homebrew:
brew install curl
Towydawało się zrobić sztuczkę. Dostałem tę wiadomość:
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
Ok, więc jest zainstalowany, ale nie symlinkowany do /usr/local
, to mi nie przeszkadza. Próbowałem tego:
export LDFLAGS=-L/usr/local/opt/curl/lib
export CPPFLAGS=-I/usr/local/opt/curl/include
./configure
Ale dostałem tę samą wiadomość: configure: error: Missing required libcurl dev >= 7.18.2
Więc próbowałem tego:
env LDFLAGS=-L/usr/local/opt/curl/lib CPPFLAGS=-I/usr/local/opt/curl/include ./configure
I ' m wciąż otrzymuję komunikat "Brak wymaganego libcurla". Jakieś pomysły?
1 answers
Po dokładniejszym dochodzeniu stwierdziłem, że plik configure
dla cgminer nie zwraca uwagi na LDFLAGS
lub CPPFLAGS
podczas testowania libcurl. Zamiast tego sprawdza LIBCURL_CFLAGS
i LIBCURL_LIBS
. Więc próbowałem:
export LIBCURL_CFLAGS=-I/usr/local/opt/curl/include
export LIBCURL_LIBS=-L/usr/local/opt/curl/lib
./configure
I mam:
checking for LIBCURL... yes
Reszta konfiguracji poszła bez zarzutu. Sukces!Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-04-26 23:20:49