petere / homebrew-postgresql

🐘 PostgreSQL formulae for the Homebrew package manager
295 stars 34 forks source link

Unable to install postgresql-9.6 in El Capitan #20

Closed fnando closed 7 years ago

fnando commented 8 years ago

The installation halts with this error message:

==> Installing postgresql-9.6 from petere/homebrew-postgresql
==> Cloning http://git.postgresql.org/git/postgresql.git
Updating /Library/Caches/Homebrew/postgresql-9.6--git
==> Checking out branch master
==> ./configure --prefix=/usr/local/Cellar/postgresql-9.6/HEAD --enable-dtrace --enable-nls --with-bonjour --with-gssapi --with-ldap --with-libxml --with-libxslt --with-open
==> make install-world
Last 15 lines from /Users/fnando/Library/Logs/Homebrew/postgresql-9.6/02.make:
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -bundle -multiply_defined suppress -Wl,-undefined,dynamic_lookup -o regress.so  regress.o -L../../../src/port -L../../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs   -bundle_loader ../../../src/backend/postgres
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  pg_regress.o pg_regress_main.o -L../../../src/port -L../../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs   -lpgcommon -lpgport -lintl -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm  -o pg_regress
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -L../../src/port -L../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs  -L../../src/port -lpgport  -bundle -bundle_loader ../../src/backend/postgres -o autoinc.so autoinc.o
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -L../../src/port -L../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs  -L../../src/port -lpgport  -bundle -bundle_loader ../../src/backend/postgres -o insert_username.so insert_username.o
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -L../../src/port -L../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs  -L../../src/port -lpgport  -bundle -bundle_loader ../../src/backend/postgres -o moddatetime.so moddatetime.o
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -L../../src/port -L../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs  -L../../src/port -lpgport  -bundle -bundle_loader ../../src/backend/postgres -o refint.so refint.o
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -L../../src/port -L../../src/common -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib  -L/usr/local/opt/gettext/lib -L/usr/local/opt/openldap/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/tcl-tk/lib -Wl,-dead_strip_dylibs  -L../../src/port -lpgport  -bundle -bundle_loader ../../src/backend/postgres -o timetravel.so timetravel.o
cp ../../../contrib/spi/refint.so refint.so
cp ../../../contrib/spi/autoinc.so autoinc.so
/usr/bin/install -c  pg_regress '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src/test/regress/pg_regress'
/bin/sh ../config/install-sh -c -d '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src'
/usr/bin/install -c -m 644 Makefile.global '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src/Makefile.global'
/usr/bin/install -c -m 644 Makefile.port '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src/Makefile.port'
/usr/bin/install -c -m 644 ./Makefile.shlib '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src/Makefile.shlib'
/usr/bin/install -c -m 644 ./nls-global.mk '/usr/local/Cellar/postgresql-9.6/HEAD/lib/pgxs/src/nls-global.mk'

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/petere/homebrew-postgresql/issues

The full debugging logging is available at https://gist.github.com/3e7e5b6d91e9e14c9707.

fnando commented 8 years ago

fwiw, postgresql-9.5 was installed without any errors.

petere commented 8 years ago

Looks like you don't have the DocBook DTD installed properly. Of course, that should be done automatically as part of the package dependencies, so it's not clear why that would fail.

The reason why 9.5 builds fine is that it uses the prebuilt documentation in the tarball. If you build 9.5 with --HEAD, it would probably fail the same way.

petere commented 7 years ago

This issue has become dormant. I'm closing it now, but feel free to reopen if there is more information.