Я хочу начать работу с geodjango, и для этого мне нужно установить gdal. Я использую MacOS 10.8.3 Для того, чтобы сделать это с варевом, как сообщили в документации GeoDjango, но я получаю следующее сообщение об ошибке:Домашний сбой с ошибкой на «команда« gcc »не удалось с статусом выхода 1» ошибка
$brew install gdal
==> Downloading http://download.osgeo.org/gdal/1.10.0/gdal-1.10.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/gdal-1.10.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gdal/1.10.0 --mandir=/usr/local/Cellar/gdal/1.10.0/share/man --with-local=/usr/local/Cellar/gdal/1.10.0 --with-threads --with-libtool -
==> make
==> make install
==> /Users/Lucas/.virtualenvs/geotest/bin/python setup.py install --prefix=/usr/local/Cellar/gdal/1.10.0 --record=installed.txt --single-version-externally-managed
gcc-4.2 -bundle -undefined dynamic_lookup -g -L/usr/local/opt/sqlite/lib -lsqlite3 -I/usr/local/opt/sqlite/include -arch x86_64 build/temp.macosx-10.6-intel-2.7/extensions/gdalconst_wrap.o -L../../.libs -L../../ -L/private/tmp/gdal-gOux/gdal-1.10.0/lib -lgdal -o build/lib.macosx-10.6-intel-2.7/osgeo/_gdalconst.so
Your Xcode and or CLT are mis-configured. Try some or all of the following:
xcodebuild -license
sudo xcode-select -switch /path/to/Xcode.app
error: command 'gcc-4.2' failed with exit status 1
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
These open issues may also help:
https://github.com/mxcl/homebrew/issues/19845
https://github.com/mxcl/homebrew/issues/20373
https://github.com/mxcl/homebrew/pull/20457
Как сообщил я сделал:
xcodebuild -license
и договорились к лицензии, затем:
sudo xcode-select -switch /Applications/Xcode.app
Я также проверил проблемы, но ни один из них не был полезен.
У меня установлен Xcode 4.6.3 и сварился много других формул в прошлом без каких-либо проблем.
Когда я бегу заваривания врача, я получаю:
$brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
/Applications/Postgres.app/Contents/MacOS/bin/gdal-config
/Applications/Postgres.app/Contents/MacOS/bin/geos-config
/Applications/Postgres.app/Contents/MacOS/bin/uuid-config
/Applications/Postgres.app/Contents/MacOS/bin/xml2-config
Я не хочу, чтобы удалить postgres.app из моего пути, как это необходимо для CLI конфигурации postgres.app, как описано здесь: http://postgresapp.com/documentation#toc_1
О питона из библиотеки, я попытался удалить их с помощью:
PATH=$(echo $PATH |sed 's/\/Library\/Frameworks\/Python.framework\/Versions\/2.7\/bin//')
, как советовали здесь: https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-directory-from-%24path-483463/. Но он ничего не удалял с пути.
Так вот я не установка GDAL ...
Также этот вопрос. Дайте мне знать, если вы найдете решение/решение проблемы. – sixthgear
Конечно, пожалуйста, ответьте на мой вопрос, если сначала найдете ответ. – ltbesh