Skip to content

Instantly share code, notes, and snippets.

@edavey
Created March 7, 2012 16:41
Show Gist options
  • Save edavey/1994271 to your computer and use it in GitHub Desktop.
Save edavey/1994271 to your computer and use it in GitHub Desktop.
postgresql and homebrew woes
[0]edavey@ed-air:/usr/local/mysql$ brew install postgres [master] 16:39:31
==> Downloading http://ftp.postgresql.org/pub/source/v9.1.3/postgresql-9.1.3.tar.bz2
File already downloaded in /Users/edavey/Library/Caches/Homebrew
/Users/edavey/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/1.8/fileutils.rb:243: command not found: uuid-config --cflags
/Users/edavey/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/1.8/fileutils.rb:243: command not found: uuid-config --ldflags
/Users/edavey/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/1.8/fileutils.rb:243: command not found: uuid-config --libs
==> ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.1.3 --datadir=/usr/local/Cellar/postgresql/9.1.3/share/p
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking which template to use... darwin
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/llvm-gcc accepts -g... yes
checking for /usr/bin/llvm-gcc option to accept ISO C89... none needed
checking whether /usr/bin/llvm-gcc supports -Wdeclaration-after-statement... yes
checking whether /usr/bin/llvm-gcc supports -Wendif-labels... yes
checking whether /usr/bin/llvm-gcc supports -Wformat-security... yes
checking whether /usr/bin/llvm-gcc supports -fno-strict-aliasing... yes
checking whether /usr/bin/llvm-gcc supports -fwrapv... yes
checking whether /usr/bin/llvm-gcc supports -fexcess-precision=standard... no
checking whether the C compiler still works... yes
checking how to run the C preprocessor... /usr/bin/llvm-gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... yes
checking whether to build Python modules... yes
checking whether to build with GSSAPI support... yes
checking whether to build with Kerberos 5 support... yes
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... yes
checking whether to build with OpenSSL support... yes
checking whether to build with SELinux support... no
checking for xml2-config... xml2-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by GCC... /usr/bin/llvm-gcc
checking if the linker (/usr/bin/llvm-gcc) is GNU ld... no
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... no
checking for ar... ar
checking for tar... /usr/bin/tar
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for bison... /usr/bin/bison
configure: using bison (GNU Bison) 2.3
checking for flex... /usr/bin/flex
configure: using flex 2.5.35
checking for perl... /usr/bin/perl
configure: using perl 5.12.3
checking for Perl archlibexp... /System/Library/Perl/5.12/darwin-thread-multi-2level
checking for Perl privlibexp... /System/Library/Perl/5.12
checking for Perl useshrplib... true
checking for flags to link embedded Perl... '-arch x86_64' -fstack-protector -L/usr/local/lib -L/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lutil -lc
checking for python... /usr/bin/python
checking for Python distutils module... yes
checking Python configuration directory... /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
checking how to link an embedded Python application... -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation
checking whether Python is compiled with thread support... yes
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... none required
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... none required
checking for library containing fdatasync... none required
checking for library containing gethostbyname_r... no
checking for library containing shmget... none required
checking for library containing readline... -lreadline
checking for inflate in -lz... yes
checking for library containing gss_init_sec_context... -lgssapi_krb5
checking for library containing com_err... none required
checking for library containing krb5_sendauth... none required
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
checking for xmlSaveToBuffer in -lxml2... yes
checking for xsltCleanupGlobals in -lxslt... yes
checking for uuid_export in -lossp-uuid... no
checking for uuid_export in -luuid... no
configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/postgresql.rb#L60
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 599cc70f39417b67b5902642f09dbba13ab42ace
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.2
Kernel Architecture: x86_64
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2336
Clang: 3.0 build 211
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-357
/usr/bin/ruby => /Users/edavey/.rvm/rubies/ruby-1.8.7-p357/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /Users/edavey/.rvm/rubies/ruby-1.8.7-p357/bin/ruby
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.2/include -I/usr/include/libxml2
LDFLAGS: -L/usr/local/Cellar/readline/6.2.2/lib
MAKEFLAGS: -j4
Error: Failed executing: ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.1.3 --datadir=/usr/local/Cellar/postgresql/9.1.3/share/postgresql --docdir=/usr/local/Cellar/postgresql/9.1.3/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-ossp-uuid --with-python --with-perl ARCHFLAGS='-arch\ x86_64'
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/10247
https://github.com/mxcl/homebrew/issues/10675
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
We saved the configure log, please gist it if you report the issue:
~/Library/Logs/Homebrew/config.log
@ajbraus
Copy link

ajbraus commented May 22, 2012

I'm having this same problem. Did you find a fix?

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