Skip to content

Instantly share code, notes, and snippets.

@brixen
Created December 17, 2011 05:58
Show Gist options
  • Save brixen/1489400 to your computer and use it in GitHub Desktop.
Save brixen/1489400 to your computer and use it in GitHub Desktop.
sasha:rubinius brian$ rbx -X19 -S gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/source/rubinius/rubinius/bin/rbx extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... yes
checking for PQisthreadsafe()... yes
checking for PQprepare()... yes
checking for PQexecParams()... yes
checking for PQescapeString()... yes
checking for PQescapeStringConn()... yes
checking for PQgetCancel()... yes
checking for lo_create()... yes
checking for pg_encoding_to_char()... yes
checking for PQsetClientEncoding()... yes
checking for rb_encdb_alias()... no
checking for rb_enc_alias()... no
checking for struct pgNotify.extra in libpq-fe.h... yes
checking for unistd.h... yes
creating extconf.h
creating Makefile
make
compiling compat.c
compiling pg.c
pg.c: In function ‘pgconn_get_client_encoding_as_rb_encoding’:
pg.c:3957: error: ‘st_data_t’ undeclared (first use in this function)
pg.c:3957: error: (Each undeclared identifier is reported only once
pg.c:3957: error: for each function it appears in.)
pg.c:3957: error: expected ‘)’ before ‘enc_id’
pg.c:3983: error: expected ‘)’ before ‘enc_id’
pg.c: In function ‘init_m17n’:
pg.c:4139: warning: assignment makes pointer from integer without a cast
make: *** [pg.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment