Я пытаюсь установить библиотеку картографических проекций PROJ.4 (http://trac.osgeo.org/proj/wiki/WikiStart#Download) в Mac OS 10.7.2. Я скачал файл .tar.gz и приступил к работе ./configure.
Процесс завершается со следующими ошибками:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Файл config.log содержит следующую информацию:
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 129 tasks, 746 threads, 2 processors
Load average: 5.68, Mach factor: 0.30
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/R.framework/Resources
PATH: /usr/local/texlive/2011/bin/universal-darwin
PATH: /Developer/usr/bin
PATH: /Library/Frameworks/GDAL.framework/Programs
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /usr/texbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1995: checking for a BSD-compatible install
configure:2051: result: /usr/bin/install -c
configure:2062: checking whether build environment is sane
configure:2105: result: yes
configure:2133: checking for a thread-safe mkdir -p
configure:2172: result: ./install-sh -c -d
configure:2185: checking for gawk
configure:2215: result: no
configure:2185: checking for mawk
configure:2215: result: no
configure:2185: checking for nawk
configure:2215: result: no
configure:2185: checking for awk
configure:2201: found /usr/bin/awk
configure:2212: result: awk
configure:2223: checking whether make sets $(MAKE)
configure:2244: result: yes
configure:2432: checking whether to enable maintainer-specific portions of Makefiles
configure:2441: result: no
configure:2505: checking for gcc
configure:2521: found /Developer/usr/bin/gcc
configure:2532: result: gcc
configure:2770: checking for C compiler version
configure:2777: gcc --version >&5
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2780: $? = 0
configure:2787: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
configure:2790: $? = 0
configure:2797: gcc -V >&5
gcc-4.2: argument to `-V' is missing
configure:2800: $? = 1
configure:2823: checking for C compiler default output file name
configure:2850: gcc conftest.c >&5
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
configure:2853: $? = 1
configure:2891: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "PROJ.4 Projections"
| #define PACKAGE_TARNAME "proj"
| #define PACKAGE_VERSION "4.7.0"
| #define PACKAGE_STRING "PROJ.4 Projections 4.7.0"
| #define PACKAGE_BUGREPORT "warmerdam@pobox.com"
| #define PACKAGE "proj"
| #define VERSION "4.7.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2898: error: C compiler cannot create executables
See `config.log' for more details.
Поскольку одно из сообщений об ошибке было "ld:библиотека не найдена для -lcrt1.10.6.o ", я попытался реализовать решение, показанное здесь Ошибка в проекте xcode: ld: библиотека не найдена для -lcrt1.10.6.o , в частности, добавив следующее в~ / .bash_profile:
export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/include
export LIBRARY_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/lib
Это не сработало, и я все еще получаю ту же проблему. Кроме того, ошибка "ошибка: компилятор C не может создавать исполняемые файлы", кажется, сохраняется во многих из моих попытокУ меня такая же проблема, когда я пытаюсь установить библиотеку rgdal в R с помощью командной строки.
Буду признателен за любую помощь!
Большое спасибо!