Pastebin

Paste #507: ruby postgresql

< previous paste - next paste>

Pasted by tdn

Download View as text

(tdn@bart) (07-04-22 16:22) (P:0 L:1) [1]                              [ 16:22:35 up 9 days, 15:34,  2 users,  load average: 0.43, 0.36, 0.36]
~ $ sudo gem install postgres-pr
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed postgres-pr-0.4.0
(tdn@bart) (07-04-22 16:24) (P:0 L:1) [0]                              [ 16:24:04 up 9 days, 15:35,  2 users,  load average: 2.47, 1.02, 0.58]
~ $ sudo gem install postgres
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install postgres
checking for cygwin32_socket() in -lwsock32... no
checking for socket() in -lsocket... no
checking for gethostbyname() in -linet... no
checking for gethostbyname() in -lnsl... yes
checking for sys/un.h... yes
checking for socket()... yes
checking for hsterror()... no
checking for gethostname()... yes
checking for PQsetdbLogin() in -lpq... yes
checking for PQsetClientEncoding()... yes
checking for pg_encoding_to_char()... yes
checking for PQescapeString()... yes
creating Makefile

make
gcc -fPIC   -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_SYS_UN_H -DHAVE_SOCKET -DHAVE_GETHOSTNAME -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQESCAPESTRING  -c postgres.c
postgres.c:18:22: error: libpq-fe.h: No such file or directory
postgres.c:19:70: error: libpq/libpq-fs.h: No such file or directory
postgres.c:35: error: expected ‘)’ before ‘*’ token
postgres.c:44: error: expected specifier-qualifier-list before ‘PGconn’
postgres.c:49: error: expected ‘)’ before ‘*’ token
postgres.c: In function ‘free_pgconn’:
postgres.c:54: error: expected declaration specifiers before ‘PGconn’
postgres.c: In function ‘pgconn_s_connect’:
postgres.c:69: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:69: error: (Each undeclared identifier is reported only once
postgres.c:69: error: for each function it appears in.)
postgres.c:69: error: ‘conn’ undeclared (first use in this function)
postgres.c:112: error: ‘CONNECTION_BAD’ undeclared (first use in this function)
postgres.c:113: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: At top level:
postgres.c:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
postgres.c:257: error: expected identifier or ‘(’ before ‘{’ token
postgres.c:283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
postgres.c:286: error: expected identifier or ‘(’ before ‘{’ token
postgres.c: In function ‘pgconn_exec’:
postgres.c:298: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:298: error: ‘conn’ undeclared (first use in this function)
postgres.c:299: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:299: error: ‘result’ undeclared (first use in this function)
postgres.c:307: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c:312: error: ‘PGRES_TUPLES_OK’ undeclared (first use in this function)
postgres.c:313: error: ‘PGRES_COPY_OUT’ undeclared (first use in this function)
postgres.c:314: error: ‘PGRES_COPY_IN’ undeclared (first use in this function)
postgres.c:315: error: ‘PGRES_EMPTY_QUERY’ undeclared (first use in this function)
postgres.c:316: error: ‘PGRES_COMMAND_OK’ undeclared (first use in this function)
postgres.c:319: error: ‘PGRES_BAD_RESPONSE’ undeclared (first use in this function)
postgres.c:320: error: ‘PGRES_FATAL_ERROR’ undeclared (first use in this function)
postgres.c:321: error: ‘PGRES_NONFATAL_ERROR’ undeclared (first use in this function)
postgres.c:322: warning: assignment makes pointer from integer without a cast
postgres.c: In function ‘pgconn_async_exec’:
postgres.c:336: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:336: error: ‘conn’ undeclared (first use in this function)
postgres.c:337: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:337: error: ‘result’ undeclared (first use in this function)
postgres.c:352: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c:369: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c:380: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c:385: error: ‘PGRES_TUPLES_OK’ undeclared (first use in this function)
postgres.c:386: error: ‘PGRES_COPY_OUT’ undeclared (first use in this function)
postgres.c:387: error: ‘PGRES_COPY_IN’ undeclared (first use in this function)
postgres.c:388: error: ‘PGRES_EMPTY_QUERY’ undeclared (first use in this function)
postgres.c:389: error: ‘PGRES_COMMAND_OK’ undeclared (first use in this function)
postgres.c:392: error: ‘PGRES_BAD_RESPONSE’ undeclared (first use in this function)
postgres.c:393: error: ‘PGRES_FATAL_ERROR’ undeclared (first use in this function)
postgres.c:394: error: ‘PGRES_NONFATAL_ERROR’ undeclared (first use in this function)
postgres.c:395: warning: assignment makes pointer from integer without a cast
postgres.c: In function ‘pgconn_get_notify’:
postgres.c:425: error: ‘PGnotify’ undeclared (first use in this function)
postgres.c:425: error: ‘notify’ undeclared (first use in this function)
postgres.c: In function ‘pgconn_insert_table’:
postgres.c:450: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:450: error: ‘conn’ undeclared (first use in this function)
postgres.c:451: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:451: error: ‘result’ undeclared (first use in this function)
postgres.c:471: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: In function ‘pgconn_getline’:
postgres.c:511: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:511: error: ‘conn’ undeclared (first use in this function)
postgres.c: In function ‘pgconn_notifies’:
postgres.c:550: error: ‘PGnotify’ undeclared (first use in this function)
postgres.c:550: error: ‘notifies’ undeclared (first use in this function)
postgres.c: In function ‘pgconn_host’:
postgres.c:558: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_port’:
postgres.c:567: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_db’:
postgres.c:575: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_options’:
postgres.c:584: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_tty’:
postgres.c:593: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_user’:
postgres.c:602: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘pgconn_error’:
postgres.c:619: warning: initialization makes pointer from integer without a cast
postgres.c: In function ‘free_pgresult’:
postgres.c:669: error: expected declaration specifiers before ‘PGresult’
postgres.c: In function ‘fetch_pgresult’:
postgres.c:676: error: expected declaration specifiers before ‘PGresult’
postgres.c:682: warning: initialization makes pointer from integer without a cast
postgres.c: At top level:
postgres.c:693: error: conflicting types for ‘pgresult_new’
postgres.c:317: error: previous implicit declaration of ‘pgresult_new’ was here
postgres.c: In function ‘pgresult_new’:
postgres.c:693: error: expected declaration specifiers before ‘PGresult’
postgres.c:695: warning: passing argument 2 of ‘rb_data_object_alloc’ makes pointer from integer without a cast
postgres.c: In function ‘pgresult_result’:
postgres.c:712: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:712: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_each’:
postgres.c:736: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:736: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_aref’:
postgres.c:760: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:760: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_fields’:
postgres.c:795: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:795: error: ‘result’ undeclared (first use in this function)
postgres.c:803: warning: passing argument 1 of ‘rb_tainted_str_new2’ makes pointer from integer without a cast
postgres.c: In function ‘pgresult_fieldname’:
postgres.c:832: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:832: error: ‘result’ undeclared (first use in this function)
postgres.c:840: warning: assignment makes pointer from integer without a cast
postgres.c: In function ‘pgresult_type’:
postgres.c:863: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:863: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_size’:
postgres.c:879: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:879: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_getvalue’:
postgres.c:895: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:895: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_getlength’:
postgres.c:914: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:914: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_getisnull’:
postgres.c:932: error: ‘PGresult’ undeclared (first use in this function)
postgres.c:932: error: ‘result’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_print’:
postgres.c:953: error: ‘PQprintOpt’ undeclared (first use in this function)
postgres.c:953: error: expected ‘;’ before ‘po’
postgres.c:959: error: ‘po’ undeclared (first use in this function)
postgres.c: In function ‘pgresult_cmdtuples’:
postgres.c:1015: warning: passing argument 1 of ‘strtol’ makes pointer from integer without a cast
postgres.c: In function ‘pgresult_cmdstatus’:
postgres.c:1023: warning: passing argument 1 of ‘rb_tainted_str_new2’ makes pointer from integer without a cast
postgres.c: In function ‘pgconn_loimport’:
postgres.c:1060: error: ‘Oid’ undeclared (first use in this function)
postgres.c:1060: error: expected ‘;’ before ‘lo_oid’
postgres.c:1062: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:1062: error: ‘conn’ undeclared (first use in this function)
postgres.c:1066: error: ‘lo_oid’ undeclared (first use in this function)
postgres.c:1068: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: In function ‘pgconn_loexport’:
postgres.c:1077: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:1077: error: ‘conn’ undeclared (first use in this function)
postgres.c:1087: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: In function ‘pgconn_locreate’:
postgres.c:1098: error: ‘Oid’ undeclared (first use in this function)
postgres.c:1098: error: expected ‘;’ before ‘lo_oid’
postgres.c:1101: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:1101: error: ‘conn’ undeclared (first use in this function)
postgres.c:1104: error: ‘INV_READ’ undeclared (first use in this function)
postgres.c:1111: error: ‘lo_oid’ undeclared (first use in this function)
postgres.c: In function ‘pgconn_loopen’:
postgres.c:1125: error: ‘Oid’ undeclared (first use in this function)
postgres.c:1125: error: expected ‘;’ before ‘lo_oid’
postgres.c:1128: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:1128: error: ‘conn’ undeclared (first use in this function)
postgres.c:1132: error: ‘lo_oid’ undeclared (first use in this function)
postgres.c:1133: error: ‘INV_READ’ undeclared (first use in this function)
postgres.c: In function ‘pgconn_lounlink’:
postgres.c:1156: error: ‘PGconn’ undeclared (first use in this function)
postgres.c:1156: error: ‘conn’ undeclared (first use in this function)
postgres.c: In function ‘free_pglarge’:
postgres.c:1173: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c:1174: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1174: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: At top level:
postgres.c:1181: error: conflicting types for ‘pglarge_new’
postgres.c:1070: error: previous implicit declaration of ‘pglarge_new’ was here
postgres.c: In function ‘pglarge_new’:
postgres.c:1181: error: expected declaration specifiers before ‘PGconn’
postgres.c:1182: error: expected declaration specifiers before ‘Oid’
postgres.c:1189: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1190: error: ‘PGlarge’ has no member named ‘lo_oid’
postgres.c:1191: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_oid’:
postgres.c:1202: error: ‘PGlarge’ has no member named ‘lo_oid’
postgres.c: In function ‘pglarge_open’:
postgres.c:1217: error: ‘INV_READ’ undeclared (first use in this function)
postgres.c:1223: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1223: error: ‘PGlarge’ has no member named ‘lo_oid’
postgres.c:1226: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c:1228: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_close’:
postgres.c:1237: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1237: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_tell’:
postgres.c:1252: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1252: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘loread_all’:
postgres.c:1270: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1270: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_read’:
postgres.c:1304: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1304: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_write’:
postgres.c:1324: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1324: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_seek’:
postgres.c:1338: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1338: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_size’:
postgres.c:1352: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1352: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c:1356: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1356: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c:1360: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1360: error: ‘PGlarge’ has no member named ‘lo_fd’
postgres.c: In function ‘pglarge_export’:
postgres.c:1375: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1375: error: ‘PGlarge’ has no member named ‘lo_oid’
postgres.c:1376: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1376: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: In function ‘pglarge_unlink’:
postgres.c:1388: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1388: error: ‘PGlarge’ has no member named ‘lo_oid’
postgres.c:1389: error: ‘PGlarge’ has no member named ‘pgconn’
postgres.c:1389: warning: passing argument 2 of ‘rb_raise’ makes pointer from integer without a cast
postgres.c: In function ‘Init_postgres’:
postgres.c:1418: error: ‘CONNECTION_OK’ undeclared (first use in this function)
postgres.c:1419: error: ‘CONNECTION_BAD’ undeclared (first use in this function)
postgres.c:1476: error: ‘INV_WRITE’ undeclared (first use in this function)
postgres.c:1477: error: ‘INV_READ’ undeclared (first use in this function)
postgres.c:1486: error: ‘PGRES_EMPTY_QUERY’ undeclared (first use in this function)
postgres.c:1487: error: ‘PGRES_COMMAND_OK’ undeclared (first use in this function)
postgres.c:1488: error: ‘PGRES_TUPLES_OK’ undeclared (first use in this function)
postgres.c:1489: error: ‘PGRES_COPY_OUT’ undeclared (first use in this function)
postgres.c:1490: error: ‘PGRES_COPY_IN’ undeclared (first use in this function)
postgres.c:1491: error: ‘PGRES_BAD_RESPONSE’ undeclared (first use in this function)
postgres.c:1492: error: ‘PGRES_NONFATAL_ERROR’ undeclared (first use in this function)
postgres.c:1493: error: ‘PGRES_FATAL_ERROR’ undeclared (first use in this function)
make: *** [postgres.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/postgres-0.7.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/postgres-0.7.1/gem_make.out
(tdn@bart) (07-04-22 16:26) (P:0 L:1) [1]                              [ 16:26:11 up 9 days, 15:37,  2 users,  load average: 1.55, 1.24, 0.72]
~ $

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.