Skip to content

Instantly share code, notes, and snippets.

@mrichman
Created May 4, 2009 17:44
Show Gist options
  • Save mrichman/106573 to your computer and use it in GitHub Desktop.
Save mrichman/106573 to your computer and use it in GitHub Desktop.
$sudo gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQconnectionUsedPassword()... no
checking for PQisthreadsafe()... no
checking for PQprepare()... no
checking for PQexecParams()... no
checking for PQescapeString()... no
checking for PQescapeStringConn()... no
checking for lo_create()... no
checking for pg_encoding_to_char()... yes
checking for PQsetClientEncoding()... no
creating Makefile
make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PG_ENCODING_TO_CHAR -I/opt/local/include -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c compat.c
In file included from compat.c:16:
compat.h:38:2: error: #error PostgreSQL client version too old, requires 7.3 or later.
In file included from compat.c:16:
compat.h:66: error: conflicting types for ‘pg_encoding_to_char’
/opt/local/include/libpq-fe.h:518: error: previous declaration of ‘pg_encoding_to_char’ was here
compat.h:69: error: conflicting types for ‘PQconnectionNeedsPassword’
/opt/local/include/libpq-fe.h:266: error: previous declaration of ‘PQconnectionNeedsPassword’ was here
compat.h:70: error: conflicting types for ‘PQconnectionUsedPassword’
/opt/local/include/libpq-fe.h:267: error: previous declaration of ‘PQconnectionUsedPassword’ was here
In file included from compat.c:16:
compat.h:38:2: error: #error PostgreSQLcompat.h:121: error: redefinition of typedef ‘PQnoticeReceiver’
c/opt/local/include/libpq-fe.h:136: error: previous declaration of ‘PQnoticeReceiver’ was here
liencompat.h:125: error: redeclaration of enumerator ‘PQERRORS_TERSE’
t v/opt/local/include/libpq-fe.h:97: error: previous definition of ‘PQERRORS_TERSE’ was heree
rscompat.h:126: error: redeclaration of enumerator ‘PQERRORS_DEFAULT’io
n/opt/local/include/libpq-fe.h:98: error: previous definition of ‘PQERRORS_DEFAULT’ was here
tocompat.h:128: error: redeclaration of enumerator ‘PQERRORS_VERBOSE’o
ol/opt/local/include/libpq-fe.h:100: error: previous definition of ‘PQERRORS_VERBOSE’ was hered
, rcompat.h:128: error: conflicting types for ‘PGVerbosity’e
qu/opt/local/include/libpq-fe.h:100: error: previous declaration of ‘PGVerbosity’ was here
ircompat.h:132: error: redeclaration of enumerator ‘PQTRANS_IDLE’e
s/opt/local/include/libpq-fe.h:88: error: previous definition of ‘PQTRANS_IDLE’ was here 7.3
orcompat.h:133: error: redeclaration of enumerator ‘PQTRANS_ACTIVE’
lat/opt/local/include/libpq-fe.h:89: error: previous definition of ‘PQTRANS_ACTIVE’ was here
er.
compat.h:134: error: redeclaration of enumerator ‘PQTRANS_INTRANS’
/opt/local/include/libpq-fe.h:90: error: previous definition of ‘PQTRANS_INTRANS’ was here
compat.h:135: error: redeclaration of enumerator ‘PQTRANS_INERROR’
/opt/local/include/libpq-fe.h:91: error: previous definition of ‘PQTRANS_INERROR’ was hereIn file included from compat.c:16:
compat.h:66: error: conflicting types for ‘pg_encoding_to_char’
compat.h:137: error: redeclaration of enumerator ‘PQTRANS_UNKNOWN’
/opt/local/include/libpq-fe.h:518: error: previous declaration of ‘pg_encoding_to_char’ was here
/opt/local/include/libpq-fe.h:93: error: previous definition of ‘PQTRANS_UNKNOWN’ was here
compat.h:137: error: conflicting types for ‘PGTransactionStatusType’
compat.h:69: error: conflicting types for ‘PQconnectionNeedsPassword’
/opt/local/include/libpq-fe.h:93: error: previous declaration of ‘PGTransactionStatusType’ was here
/opt/local/include/libpq-fe.h:266: error: previous declaration of ‘PQconnectionNeedsPassword’ was here
compat.h:70: error: conflicting types for ‘PQconnectionUsedPassword’
compat.h:142: error: conflicting types for ‘PQtransactionStatus’/opt/local/include/libpq-fe.h:267: error: previous declaration of ‘PQconnectionUsedPassword’ was here
/opt/local/include/libpq-fe.h:258: error: previous declaration of ‘PQtransactionStatus’ was here
compat.h:143: error: conflicting types for ‘PQparameterStatus’
/opt/local/include/libpq-fe.h:260: error: previous declaration of ‘PQparameterStatus’ was here
compat.h:121: error: redefinition of typedef ‘PQnoticeReceiver’
/opt/local/include/libpq-fe.h:136: error: previous declaration of ‘PQnoticeReceiver’ was herecompat.h:157: error: conflicting types for ‘PQsetErrorVerbosity’
/opt/local/include/libpq-fe.h:279: error: previous declaration of ‘PQsetErrorVerbosity’ was here
compat.h:125: error: redeclaration of enumerator ‘PQERRORS_TERSE’
/opt/local/include/libpq-fe.h:97: error: previous definition of ‘PQERRORS_TERSE’ was here
compat.h:126: error: redeclaration of enumerator ‘PQERRORS_DEFAULT’
/opt/local/include/libpq-fe.h:98: error: previous definition of ‘PQERRORS_DEFAULT’ was here
compat.h:169:2: compat.h:128: error: redeclaration of enumerator ‘PQERRORS_VERBOSE’error:
#error uns/opt/local/include/libpq-fe.h:100: error: previous definition of ‘PQERRORS_VERBOSE’ was hereu
pportcompat.h:128: error: conflicting types for ‘PGVerbosity’e
d pos/opt/local/include/libpq-fe.h:100: error: previous declaration of ‘PGVerbosity’ was heretg
resqlcompat.h:132: error: redeclaration of enumerator ‘PQTRANS_IDLE’
ver/opt/local/include/libpq-fe.h:88: error: previous definition of ‘PQTRANS_IDLE’ was heresio
n, compat.h:133: error: redeclaration of enumerator ‘PQTRANS_ACTIVE’re
qui/opt/local/include/libpq-fe.h:89: error: previous definition of ‘PQTRANS_ACTIVE’ was herere
s 7.3 compat.h:134: error: redeclaration of enumerator ‘PQTRANS_INTRANS’o
r l/opt/local/include/libpq-fe.h:90: error: previous definition of ‘PQTRANS_INTRANS’ was herea
ter.
compat.h:135: error: redeclaration of enumerator ‘PQTRANS_INERROR’
/opt/local/include/libpq-fe.h:91: error: previous definition of ‘PQTRANS_INERROR’ was here
compat.h:137: error: redeclaration of enumerator ‘PQTRANS_UNKNOWN’
/opt/local/include/libpq-fe.h:93: error: previous definition of ‘PQTRANS_UNKNOWN’ was here
compat.h:137: error: conflicting types for ‘PGTransactionStatusType’
/opt/local/include/libpq-fe.h:93: error: previous declaration of ‘PGTransactionStatusType’ was here
compat.c: In function ‘PQsetClientEncoding’:
compat.c:21: error: syntax error before ‘{’ token
compat.h:142: error: conflicting types for ‘PQtransactionStatus’
/opt/local/include/libpq-fe.h:258: error: previous declaration of ‘PQtransactionStatus’ was here
compat.h:143: error: conflicting types for ‘PQparameterStatus’
/opt/local/include/libpq-fe.h:260: error: previous declaration of ‘PQparameterStatus’ was here
compat.h:157: error: conflicting types for ‘PQsetErrorVerbosity’
/opt/local/include/libpq-fe.h:279: error: previous declaration of ‘PQsetErrorVerbosity’ was here
compat.h:169:2: error: #error unsupporcompat.c:282: error: storage class specified for parameter ‘query’
tedcompat.c:282: error: parameter ‘query’ is initialized
postgcompat.c:286: error: syntax error before ‘if’r
esql version, requcompat.c:341: error: parameter ‘target’ is initializedi
rcompat.c:341: error: ‘to’ undeclared (first use in this function)e
s 7.3compat.c:341: error: (Each undeclared identifier is reported only once
compat.c:341: error: for each function it appears in.)or
latcompat.c:342: error: parameter ‘remaining’ is initializede
r.
compat.c:342: error: ‘length’ undeclared (first use in this function)
compat.c:344: error: syntax error before ‘while’
compat.c:396: error: syntax error before ‘len’
compat.c: In function ‘PQsetClientEncoding’:
compat.c:21: error: syntax error before ‘{’ token
compat.c:470: error: redefinition of parameter ‘i’
compat.c:390: error: previous definition of ‘i’ was here
compat.c:473: error: syntax error before ‘if’
compat.c:282: error: storage class specified for parameter ‘query’
compat.c:282: error: parameter ‘query’ is initialized
compat.c:286: error: syntax error before ‘if’
compat.c:341: error: parameter ‘target’ is initialized
compat.c:341: error: ‘to’ undeclared (first use in this function)
compat.c:341: error: (Each undeclared identifier is reported only once
compat.c:341: error: for each function it appears in.)
compat.c:342: error: parameter ‘remaining’ is initialized
compat.c:342: error: ‘length’ undeclared (first use in this function)
compat.c:344: error: syntax error before ‘while’
compat.c:396: error: syntax error before ‘len’
compat.c:470: error: redefinition of parameter ‘i’
compat.c:390: error: previous definition of ‘i’ was here
compat.c:473: error: syntax error before ‘if’
lipo: can't open input file: /var/tmp//cc1HJygC.out (No such file or directory)
make: *** [compat.o] Error 1
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/pg-0.8.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/pg-0.8.0/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment