Пытаюсь скомпилировать Mapnik на OSX 10.8
Итак, после того, как я клонировал репозиторий Github, я запускаю команду configure следующим образом: ./configure
и получаю сообщение об ошибке: Checking for C++ library icuuc... no
Could not find required header or shared library for icuuc
и позже: Exiting... the following required dependencies were not found:
- icuuc (ICU C++ library | configure with ICU_LIBS & ICU_INCLUDES or use ICU_LIB_NAME to specify custom lib name | more info: http://site.icu-project.org/)
Поиск решения в области устранения неполадок Mapnik: https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting
Говорит: Solution: If g++ is available then ICU must be in a custom location so set the paths to the libs and includes - ie. ICU_LIBS=/usr/local/lib and ICU_INCLUDES=/usr/local/include.
Запустив g++
из командной строки, я получаю: i686-apple-darwin11-llvm-g++-4.2: no input files
Итак, это означает, что g++ доступен, но я понятия не имею, как установить пути, чтобы configure мог их найти.
Библиотеки ICU были установлены по умолчанию или с доморощенным, не уверен, что.
terminal: brew install icu4c
Warning: icu4c-51.1 already installed
Поиск каталога установки icu4c:terminal: mdfind icu4c
/usr/local/Cellar/icu4c
./configure
безуспешно. - person Levi Roberts   schedule 14.08.2013export ICU_LIBS ICU_INCLUDES
. - person Etan Reisner   schedule 14.08.2013ICU_LIBS=/usr/local/Cellar/icu4c/51.1/lib
‹br›ICU_INCLUDES=/usr/local/Cellar/icu4c/51.1/include
./configure
- person Levi Roberts   schedule 14.08.2013