Here is the snippet of the error, I am really puzzled why I cannot install postgres.
clang: error: unsupported option '-V -isystem/opt/boxen/homebrew/include' clang: error: unknown argument: '-qversion’ any thoughts? thanks a lot This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by PostgreSQL configure 9.4.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --disable-debug --prefix=/opt/boxen/homebrew/Cellar/postgresql/9.4.0 --datadir=/opt/boxen/homebrew/Cellar/postgresql/9.4.0/share/postgresql --docdir=/opt/boxen/homebrew/Cellar/postgresql/9.4.0/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-ldap --with-openssl --with-pam --with-libxml --with-libxslt --with-tcl --with-tclconfig=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib --with-uuid=e2fs ## --------- ## ## Platform. ## ## --------- ## hostname = Jiris-MacBook-Pro.local uname -m = x86_64 uname -r = 14.1.0 uname -s = Darwin uname -v = Darwin Kernel Version 14.1.0: Fri Dec 5 06:49:27 PST 2014; root:xnu-2782.10.67~9/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 14.1.0: Fri Dec 5 06:49:27 PST 2014; root:xnu-2782.10.67~9/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available. 4 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 Primary memory available: 8.00 gigabytes Default processor set: 292 tasks, 1430 threads, 4 processors Load average: 2.32, Mach factor: 1.67 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/boxen/homebrew/Library/ENV/4.3 PATH: /opt/boxen/homebrew/opt/openssl/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2746: checking build system type configure:2760: result: x86_64-apple-darwin14.1.0 configure:2780: checking host system type configure:2793: result: x86_64-apple-darwin14.1.0 configure:2815: checking which template to use configure:2886: result: darwin configure:2981: checking whether to build with 64-bit integer date/time support configure:3010: result: yes configure:3017: checking whether NLS is wanted configure:3049: result: no configure:3057: checking for default port number configure:3082: result: 5432 configure:3473: checking for block size configure:3507: result: 8kB configure:3519: checking for segment size configure:3548: result: 1GB configure:3560: checking for WAL block size configure:3595: result: 8kB configure:3607: checking for WAL segment size configure:3642: result: 16MB configure:3797: checking for C compiler version configure:3806: clang --version >&5 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix configure:3817: $? = 0 configure:3806: clang -v >&5 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix configure:3817: $? = 0 configure:3806: clang -V >&5 clang: error: unsupported option '-V -isystem/opt/boxen/homebrew/include' configure:3817: $? = 1 configure:3806: clang -qversion >&5 clang: error: unknown argument: '-qversion' configure:3817: $? = 1 configure:3837: checking whether the C compiler works configure:3859: clang conftest.c >&5 configure:3863: $? = 0 configure:3911: result: yes configure:3914: checking for C compiler default output file name configure:3916: result: a.out configure:3922: checking for suffix of executables configure:3929: clang -o conftest conftest.c >&5 configure:3933: $? = 0 configure:3955: result: configure:3977: checking whether we are cross compiling configure:3985: clang -o conftest conftest.c >&5 configure:3989: $? = 0 configure:3996: ./conftest configure:4000: $? = 0 configure:4015: result: no configure:4020: checking for suffix of object files configure:4042: clang -c conftest.c >&5 configure:4046: $? = 0 configure:4067: result: o configure:4071: checking whether we are using the GNU C compiler configure:4090: clang -c conftest.c >&5 configure:4090: $? = 0 configure:4099: result: yes configure:4108: checking whether clang accepts -g configure:4128: clang -c -g conftest.c >&5 configure:4128: $? = 0 configure:4169: result: yes configure:4186: checking for clang option to accept ISO C89 configure:4249: clang -c -g -O2 conftest.c >&5 configure:4249: $? = 0 configure:4262: result: none needed configure:4300: clang -c -g -O2 conftest.c >&5 conftest.c:23:1: error: use of undeclared identifier 'choke' choke me ^ 1 error generated. configure:4300: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "PostgreSQL" | #define PACKAGE_TARNAME "postgresql" | #define PACKAGE_VERSION "9.4.0" | #define PACKAGE_STRING "PostgreSQL 9.4.0" | #define PACKAGE_BUGREPORT "pgsql-b...@postgresql.org" | #define PACKAGE_URL "" | #define PG_MAJORVERSION "9.4" | #define PG_VERSION "9.4.0" | #define USE_INTEGER_DATETIMES 1 | #define DEF_PGPORT 5432 | #define DEF_PGPORT_STR "5432" | #define BLCKSZ 8192 | #define RELSEG_SIZE 131072 | #define XLOG_BLCKSZ 8192 | #define XLOG_SEG_SIZE (16 * 1024 * 1024) | /* end confdefs.h. */ | | int | main () | { | #ifndef __INTEL_COMPILER | choke me | #endif | ; | return 0; | } configure:4322: clang -c -g -O2 conftest.c >&5 conftest.c:23:1: error: use of undeclared identifier 'choke' choke me ^ 1 error generated. configure:4322: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "PostgreSQL" | #define PACKAGE_TARNAME "postgresql" | #define PACKAGE_VERSION "9.4.0" | #define PACKAGE_STRING "PostgreSQL 9.4.0" | #define PACKAGE_BUGREPORT "pgsql-b...@postgresql.org" | #define PACKAGE_URL "" | #define PG_MAJORVERSION "9.4" | #define PG_VERSION "9.4.0" | #define USE_INTEGER_DATETIMES 1 | #define DEF_PGPORT 5432 | #define DEF_PGPORT_STR "5432" | #define BLCKSZ 8192 | #define RELSEG_SIZE 131072 | #define XLOG_BLCKSZ 8192 | #define XLOG_SEG_SIZE (16 * 1024 * 1024) | /* end confdefs.h. */ | | int | main () | { | #ifndef __SUNPRO_C | choke me | #endif | ; | return 0; | } configure:4373: checking whether clang supports -Wdeclaration-after-statement configure:4393: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement conftest.c >&5 configure:4393: $? = 0 configure:4402: result: yes configure:4408: checking whether clang supports -Wendif-labels configure:4428: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels conftest.c >&5 configure:4428: $? = 0 configure:4437: result: yes configure:4443: checking whether clang supports -Wmissing-format-attribute configure:4463: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute conftest.c >&5 configure:4463: $? = 0 configure:4472: result: yes configure:4479: checking whether clang supports -Wformat-security configure:4499: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security conftest.c >&5 configure:4499: $? = 0 configure:4508: result: yes configure:4515: checking whether clang supports -fno-strict-aliasing configure:4535: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing conftest.c >&5 configure:4535: $? = 0 configure:4544: result: yes configure:4551: checking whether clang supports -fwrapv configure:4571: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv conftest.c >&5 configure:4571: $? = 0 configure:4580: result: yes configure:4587: checking whether clang supports -fexcess-precision=standard configure:4607: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard conftest.c >&5 clang: error: unknown argument: '-fexcess-precision=standard' configure:4607: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "PostgreSQL" | #define PACKAGE_TARNAME "postgresql" | #define PACKAGE_VERSION "9.4.0" | #define PACKAGE_STRING "PostgreSQL 9.4.0" | #define PACKAGE_BUGREPORT "pgsql-b...@postgresql.org" | #define PACKAGE_URL "" | #define PG_MAJORVERSION "9.4" | #define PG_VERSION "9.4.0" | #define USE_INTEGER_DATETIMES 1 | #define DEF_PGPORT 5432 | #define DEF_PGPORT_STR "5432" | #define BLCKSZ 8192 | #define RELSEG_SIZE 131072 | #define XLOG_BLCKSZ 8192 | #define XLOG_SEG_SIZE (16 * 1024 * 1024) | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:4616: result: no configure:4623: checking whether clang supports -funroll-loops configure:4643: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -funroll-loops conftest.c >&5 configure:4643: $? = 0 configure:4652: result: yes configure:4658: checking whether clang supports -ftree-vectorize configure:4678: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -ftree-vectorize conftest.c >&5 configure:4678: $? = 0 configure:4687: result: yes configure:4879: checking whether the C compiler still works configure:4892: clang -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv conftest.c >&5 configure:4892: $? = 0 configure:4893: result: yes configure:4918: clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv conftest.c >&5 configure:4918: $? = 0 configure:4931: checking how to run the C preprocessor configure:4962: clang -E conftest.c configure:4962: $? = 0 configure:4976: clang -E conftest.c conftest.c:18:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^ 1 error generated. configure:4976: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "PostgreSQL" | #define PACKAGE_TARNAME "postgresql" | #define PACKAGE_VERSION "9.4.0" | #define PACKAGE_STRING "PostgreSQL 9.4.0" | #define PACKAGE_BUGREPORT "pgsql-b...@postgresql.org" | #define PACKAGE_URL "" | #define PG_MAJORVERSION "9.4" | #define PG_VERSION "9.4.0" | #define USE_INTEGER_DATETIMES 1 | #define DEF_PGPORT 5432 | #define DEF_PGPORT_STR "5432" | #define BLCKSZ 8192 | #define RELSEG_SIZE 131072 | #define XLOG_BLCKSZ 8192 | #define XLOG_SEG_SIZE (16 * 1024 * 1024) | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:5001: result: clang -E configure:5021: clang -E conftest.c configure:5021: $? = 0 configure:5035: clang -E conftest.c conftest.c:18:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^ 1 error generated. configure:5035: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "PostgreSQL" | #define PACKAGE_TARNAME "postgresql" | #define PACKAGE_VERSION "9.4.0" | #define PACKAGE_STRING "PostgreSQL 9.4.0" | #define PACKAGE_BUGREPORT "pgsql-b...@postgresql.org" | #define PACKAGE_URL "" | #define PG_MAJORVERSION "9.4" | #define PG_VERSION "9.4.0" | #define USE_INTEGER_DATETIMES 1 | #define DEF_PGPORT 5432 | #define DEF_PGPORT_STR "5432" | #define BLCKSZ 8192 | #define RELSEG_SIZE 131072 | #define XLOG_BLCKSZ 8192 | #define XLOG_SEG_SIZE (16 * 1024 * 1024) | /* end confdefs.h. */ | #include <ac_nonexistent.h>