Skip to content

Instantly share code, notes, and snippets.

@wxmn
Created June 6, 2011 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wxmn/1010292 to your computer and use it in GitHub Desktop.
Save wxmn/1010292 to your computer and use it in GitHub Desktop.
brew install geos errors (10.7)
# brew doctor output
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
# brew install output
Warning: You should upgrade to Xcode 3.2.3
==> Downloading http://download.osgeo.org/geos/geos-3.3.0.tar.bz2
File already downloaded and cached to /Users/wxmn/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/geos/3.3.0 --disable-debug --disable-dependency-tracking
configure: WARNING: unrecognized options: --disable-debug
checking build system type... i386-apple-darwin11.0.0
checking host system type... i386-apple-darwin11.0.0
checking target system type... i386-apple-darwin11.0.0
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... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/private/tmp/homebrew-geos-3.3.0-zERd/geos-3.3.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.
==> Exit Status: 77
http://github.com/mxcl/homebrew/blob/master/Library/Formula/geos.rb#L14
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: edc06da7d0a9c19cfc762b149239e6f2facf7b60
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit arrandale
OS X: 10.7
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 0 (2326 or newer recommended)
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -w -pipe -O3
CXXFLAGS: -w -pipe -O3
MAKEFLAGS: -j4
Error: Failed executing: ./configure --prefix=/usr/local/Cellar/geos/3.3.0 --disable-debug --disable-dependency-tracking
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
It looks like an autotools configure failed.
Consider re-running the install with '-vd' to keep 'config.log' around:
brew install -vd geos
Gist 'config.log' and any error output when reporting an issue.
Remember to include your config information: brew --config
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
# config.log output
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/geos/3.3.0 --disable-debug --disable-dependency-tracking
## --------- ##
## Platform. ##
## --------- ##
hostname = wxmn
uname -m = x86_64
uname -r = 11.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.0.0: Fri May 6 22:16:19 PDT 2011; root:xnu-1699.22.53~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.0.0: Fri May 6 22:16:19 PDT 2011; root:xnu-1699.22.53~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 167 tasks, 681 threads, 4 processors
Load average: 4.27, Mach factor: 0.50
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/wxmn/local/bin
PATH: /Users/wxmn/.ec2/bin
PATH: /Users/wxmn/.rvm/gems/ruby-1.9.2-p180/bin
PATH: /Users/wxmn/.rvm/gems/ruby-1.9.2-p180@global/bin
PATH: /Users/wxmn/.rvm/rubies/ruby-1.9.2-p180/bin
PATH: /Users/wxmn/.rvm/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /usr/local/share/python
PATH: /Users/wxmn/.ec2/bin
PATH: /Users/wxmn/.ec2/RDSCli-1.1.005/bin
PATH: /Users/wxmn/.rvm/gems/ruby-1.9.2-p180/bin
PATH: /Users/wxmn/.rvm/gems/ruby-1.9.2-p180@global/bin
PATH: /Users/wxmn/.rvm/rubies/ruby-1.9.2-p180/bin
PATH: /Users/wxmn/.rvm/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /usr/local/share/python
PATH: /Users/wxmn/.ec2/bin
PATH: /usr/local/Library/Contributions/examples
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2591: checking build system type
configure:2605: result: i386-apple-darwin11.0.0
configure:2625: checking host system type
configure:2638: result: i386-apple-darwin11.0.0
configure:2658: checking target system type
configure:2671: result: i386-apple-darwin11.0.0
configure:2733: checking for a BSD-compatible install
configure:2801: result: /usr/bin/install -c
configure:2812: checking whether build environment is sane
configure:2862: result: yes
configure:3003: checking for a thread-safe mkdir -p
configure:3042: result: ./install-sh -c -d
configure:3055: checking for gawk
configure:3085: result: no
configure:3055: checking for mawk
configure:3085: result: no
configure:3055: checking for nawk
configure:3085: result: no
configure:3055: checking for awk
configure:3071: found /usr/bin/awk
configure:3082: result: awk
configure:3093: checking whether make sets $(MAKE)
configure:3115: result: yes
configure:3187: checking whether to enable maintainer-specific portions of Makefiles
configure:3196: result: no
configure:3261: checking for gcc
configure:3288: result: /Developer/usr/bin/gcc
configure:3517: checking for C compiler version
configure:3526: /Developer/usr/bin/gcc --version >&5
configure:3537: $? = 0
configure:3526: /Developer/usr/bin/gcc -v >&5
configure:3537: $? = 0
configure:3526: /Developer/usr/bin/gcc -V >&5
configure:3537: $? = 0
configure:3526: /Developer/usr/bin/gcc -qversion >&5
configure:3537: $? = 0
configure:3557: checking whether the C compiler works
configure:3579: /Developer/usr/bin/gcc -w -pipe -O3 conftest.c >&5
configure:3583: $? = 0
configure:3621: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3626: error: in `/private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0':
configure:3630: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-apple-darwin11.0.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/Developer/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -w -pipe -O3'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=' -w -pipe -O3'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/Developer/usr/bin/g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-apple-darwin11.0.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=/Developer/usr/bin/gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i386-apple-darwin11.0.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run tar'
AM_CFLAGS=''
AM_CXXFLAGS=''
AR=''
AS=''
AUTOCONF='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run autoconf'
AUTOHEADER='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run autoheader'
AUTOMAKE='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run automake-1.11'
AWK='awk'
CAPI_INTERFACE_AGE='7'
CAPI_INTERFACE_CURRENT='8'
CAPI_INTERFACE_REVISION='0'
CAPI_VERSION='1.7.0'
CAPI_VERSION_MAJOR='1'
CAPI_VERSION_MINOR='7'
CAPI_VERSION_PATCH='0'
CC='/Developer/usr/bin/gcc'
CCDEPMODE=''
CFLAGS=' -w -pipe -O3'
CPP=''
CPPFLAGS=''
CXX='/Developer/usr/bin/g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=' -w -pipe -O3'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_PHP_FALSE=''
ENABLE_PHP_TRUE=''
ENABLE_PYTHON_FALSE=''
ENABLE_PYTHON_TRUE=''
ENABLE_RUBY_FALSE=''
ENABLE_RUBY_TRUE=''
ENABLE_SWIG_FALSE=''
ENABLE_SWIG_TRUE=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_PHP_FALSE=''
HAVE_PHP_TRUE=''
HAVE_PHP_UNIT_FALSE=''
HAVE_PHP_UNIT_TRUE=''
INLINE_FLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTERFACE_AGE=''
INTERFACE_CURRENT=''
INTERFACE_REVISION=''
JTS_PORT='1.12.0'
LD='/Developer/usr/bin/gcc'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/missing --run makeinfo'
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='geos'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PHP=''
PHPUNIT=''
PHP_CONFIG=''
PYTHON=''
PYTHON_CPPFLAGS=''
PYTHON_EXEC_PREFIX=''
PYTHON_EXTRA_LIBS=''
PYTHON_LDFLAGS=''
PYTHON_PLATFORM=''
PYTHON_PREFIX=''
PYTHON_SITE_PKG=''
PYTHON_VERSION=''
RANLIB=''
RUBY=''
RUBY_BIN_DIR=''
RUBY_EXTENSION_DIR=''
RUBY_INCLUDE_DIR=''
RUBY_LIB_DIR=''
RUBY_SHARED_LIB=''
RUBY_SO_NAME=''
RUBY_VERSION='ruby-1.9.2-p180'
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SWIG=''
SWIG_LIB=''
SWIG_PYTHON_CPPFLAGS=''
SWIG_PYTHON_OPT=''
VERSION='3.3.0'
VERSION_MAJOR='3'
VERSION_MINOR='3'
VERSION_PATCH='0'
ac_ct_CC='/Developer/usr/bin/gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i386-apple-darwin11.0.0'
build_alias=''
build_cpu='i386'
build_os='darwin11.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin11.0.0'
host_alias=''
host_cpu='i386'
host_os='darwin11.0.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /private/tmp/homebrew-geos-3.3.0-EYcP/geos-3.3.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='/bin/echo'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir=''
pkgpythondir=''
prefix='/usr/local/Cellar/geos/3.3.0'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir=''
pythondir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i386-apple-darwin11.0.0'
target_alias=''
target_cpu='i386'
target_os='darwin11.0.0'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
@calvinchengx
Copy link

Hi, did you manage to solve this problem?
I am having trouble installing geos with brew and have the exact same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment