質問編集履歴

3

mkmf.logの抜粋を変更しました。noやnot foundという言葉が入っている所を抜き出しましたが、これ以上となるとどこをやっていいのか分かりません。何回も申し訳ありません。

2020/02/03 23:57

投稿

yata_
yata_

スコア5

test CHANGED
File without changes
test CHANGED
@@ -36,84 +36,14 @@
36
36
 
37
37
  sh: /usr/pgsql-9.3/bin/pg_config: No such file or directory
38
38
 
39
- checking for libpq-fe.h... yes
40
-
41
- checking for libpq/libpq-fs.h... yes
42
-
43
- checking for pg_config_manual.h... yes
44
-
45
- checking for PQconnectdb() in -lpq... yes
46
-
47
- checking for PQconnectionUsedPassword()... yes
48
-
49
- checking for PQisthreadsafe()... yes
50
-
51
- checking for PQprepare()... yes
52
-
53
- checking for PQexecParams()... yes
54
-
55
- checking for PQescapeString()... yes
56
-
57
- checking for PQescapeStringConn()... yes
58
-
59
- checking for PQescapeLiteral()... yes
60
-
61
- checking for PQescapeIdentifier()... yes
62
-
63
- checking for PQgetCancel()... yes
64
-
65
- checking for lo_create()... yes
66
-
67
-
68
-
69
- > checking for pg_encoding_to_char()... yes
70
-
71
- checking for pg_char_to_encoding()... yes
72
-
73
- checking for PQsetClientEncoding()... yes
74
-
75
- checking for PQlibVersion()... yes
76
-
77
- checking for PQping()... yes
39
+ Yesと判定されたところは文字数削減のため省略。
78
-
79
- checking for PQsetSingleRowMode()... yes
40
+
80
-
81
- checking for PQconninfo()... yes
41
+
82
-
83
- checking for rb_encdb_alias()... yes
42
+
84
-
85
- checking for rb_enc_alias()... no
43
+ > checking for rb_enc_alias()... no
86
-
87
- checking for rb_thread_call_without_gvl()... yes
88
-
89
- checking for rb_thread_call_with_gvl()... yes
90
-
91
- checking for rb_thread_fd_select()... yes
92
44
 
93
45
  checking for rb_w32_wrap_io_handle()... no
94
46
 
95
- checking for rb_str_modify_expand()... yes
96
-
97
- checking for rb_hash_dup()... yes
98
-
99
- checking for PGRES_COPY_BOTH in libpq-fe.h... yes
100
-
101
- checking for PGRES_SINGLE_TUPLE in libpq-fe.h... yes
102
-
103
- checking for PG_DIAG_TABLE_NAME in libpq-fe.h... yes
104
-
105
- checking for struct pgNotify.extra in libpq-fe.h... yes
106
-
107
- checking for unistd.h... yes
108
-
109
- checking for inttypes.h... yes
110
-
111
- checking for ruby/st.h... yes
112
-
113
- checking for C99 variable length arrays... yes
114
-
115
- creating extconf.h
116
-
117
47
  creating Makefile
118
48
 
119
49
 
@@ -262,15 +192,15 @@
262
192
 
263
193
 
264
194
 
265
- > have_func: checking for PQconnectionUsedPassword()... -------------------- yes
195
+ > have_func: checking for rb_w32_wrap_io_handle()... -------------------- no
266
196
 
267
197
 
268
198
 
269
199
  > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
270
200
 
271
- conftest.c:13:57: error: use of undeclared identifier 'PQconnectionUsedPassword'
201
+ conftest.c:13:57: error: use of undeclared identifier 'rb_w32_wrap_io_handle'
272
-
202
+
273
- int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return !p; }
203
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_w32_wrap_io_handle; return !p; }
274
204
 
275
205
  ^
276
206
 
@@ -304,7 +234,7 @@
304
234
 
305
235
  12: }
306
236
 
307
- 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return !p; }
237
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_w32_wrap_io_handle; return !p; }
308
238
 
309
239
  /* end */
310
240
 
@@ -312,8 +242,48 @@
312
242
 
313
243
  > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
314
244
 
245
+ Undefined symbols for architecture x86_64:
246
+
247
+ "_rb_w32_wrap_io_handle", referenced from:
248
+
249
+ _t in conftest-1913e3.o
250
+
251
+ ld: symbol(s) not found for architecture x86_64
252
+
253
+ clang: error: linker command failed with exit code 1 (use -v to see invocation)
254
+
315
255
  checked program was:
316
256
 
257
+ 文字数削減のため、省略。
258
+
259
+ 13: extern void rb_w32_wrap_io_handle();
260
+
261
+ 14: int t(void) { rb_w32_wrap_io_handle(); return 0; }
262
+
263
+ /* end */
264
+
265
+
266
+
267
+ > ----------------------------------------
268
+
269
+
270
+
271
+ > have_func: checking for rb_enc_alias()... -------------------- no
272
+
273
+
274
+
275
+ > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
276
+
277
+ conftest.c:13:57: error: use of undeclared identifier 'rb_enc_alias'
278
+
279
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_alias; return !p; }
280
+
281
+ ^
282
+
283
+ 1 error generated.
284
+
285
+ checked program was:
286
+
317
287
  /* begin */
318
288
 
319
289
  1: #include "ruby.h"
@@ -340,15 +310,61 @@
340
310
 
341
311
  12: }
342
312
 
343
- 13: extern void PQconnectionUsedPassword();
344
-
345
- 14: int t(void) { PQconnectionUsedPassword(); return 0; }
313
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_alias; return !p; }
346
314
 
347
315
  /* end */
348
316
 
349
317
 
350
318
 
351
-
319
+ > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
320
+
321
+ Undefined symbols for architecture x86_64:
322
+
323
+ "_rb_enc_alias", referenced from:
324
+
325
+ _t in conftest-76f101.o
326
+
327
+ ld: symbol(s) not found for architecture x86_64
328
+
329
+ clang: error: linker command failed with exit code 1 (use -v to see invocation)
330
+
331
+ checked program was:
332
+
333
+ /* begin */
334
+
335
+ 1: #include "ruby.h"
336
+
337
+ 2:
338
+
339
+ 3: /*top*/
340
+
341
+ 4: extern int t(void);
342
+
343
+ 5: int main(int argc, char **argv)
344
+
345
+ 6: {
346
+
347
+ 7: if (argc > 1000000) {
348
+
349
+ 8: printf("%p", &t);
350
+
351
+ 9: }
352
+
353
+ 10:
354
+
355
+ 11: return 0;
356
+
357
+ 12: }
358
+
359
+ 13: extern void rb_enc_alias();
360
+
361
+ 14: int t(void) { rb_enc_alias(); return 0; }
362
+
363
+ /* end */
364
+
365
+
366
+
367
+ > --------------------
352
368
 
353
369
 
354
370
 

2

mkmf.logの加筆を行いました。コード内を「error」で検索するとこのエラーが何回も繰り返して出ている様に見えました。何回もお手数おかけしますが、改めてよろしくお願いします。

2020/02/03 23:57

投稿

yata_
yata_

スコア5

test CHANGED
File without changes
test CHANGED
@@ -258,84 +258,100 @@
258
258
 
259
259
 
260
260
 
261
- > extconf.h is:
261
+ > --------------------
262
+
263
+
264
+
265
+ > have_func: checking for PQconnectionUsedPassword()... -------------------- yes
266
+
267
+
268
+
269
+ > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
270
+
271
+ conftest.c:13:57: error: use of undeclared identifier 'PQconnectionUsedPassword'
272
+
273
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return !p; }
274
+
275
+ ^
276
+
277
+ 1 error generated.
278
+
279
+ checked program was:
262
280
 
263
281
  /* begin */
264
282
 
283
+ 1: #include "ruby.h"
284
+
285
+ 2:
286
+
265
- 1: #ifndef EXTCONF_H
287
+ 3: /*top*/
266
-
288
+
267
- 2: #define EXTCONF_H
289
+ 4: extern int t(void);
268
-
269
- 3: #define HAVE_PQCONNECTIONUSEDPASSWORD 1
290
+
270
-
271
- 4: #define HAVE_PQISTHREADSAFE 1
291
+ 5: int main(int argc, char **argv)
272
-
273
- 5: #define HAVE_PQPREPARE 1
292
+
274
-
275
- 6: #define HAVE_PQEXECPARAMS 1
293
+ 6: {
276
-
294
+
277
- 7: #define HAVE_PQESCAPESTRING 1
295
+ 7: if (argc > 1000000) {
278
-
296
+
279
- 8: #define HAVE_PQESCAPESTRINGCONN 1
297
+ 8: printf("%p", &t);
280
-
281
- 9: #define HAVE_PQESCAPELITERAL 1
298
+
282
-
283
- 10: #define HAVE_PQESCAPEIDENTIFIER 1
284
-
285
- 11: #define HAVE_PQGETCANCEL 1
286
-
287
- 12: #define HAVE_LO_CREATE 1
288
-
289
- 13: #define HAVE_PG_ENCODING_TO_CHAR 1
290
-
291
- 14: #define HAVE_PG_CHAR_TO_ENCODING 1
292
-
293
- 15: #define HAVE_PQSETCLIENTENCODING 1
294
-
295
- 16: #define HAVE_PQLIBVERSION 1
296
-
297
- 17: #define HAVE_PQPING 1
299
+ 9: }
298
-
299
- 18: #define HAVE_PQSETSINGLEROWMODE 1
300
+
300
-
301
- 19: #define HAVE_PQCONNINFO 1
302
-
303
- 20: #define HAVE_RB_ENCDB_ALIAS 1
304
-
305
- 21: #define HAVE_RB_THREAD_CALL_WITHOUT_GVL 1
306
-
307
- 22: #define HAVE_RB_THREAD_CALL_WITH_GVL 1
308
-
309
- 23: #define HAVE_RB_THREAD_FD_SELECT 1
310
-
311
- 24: #define HAVE_RB_STR_MODIFY_EXPAND 1
312
-
313
- 25: #define HAVE_RB_HASH_DUP 1
314
-
315
- 26: #define HAVE_CONST_PGRES_COPY_BOTH 1
316
-
317
- 27: #define HAVE_CONST_PGRES_SINGLE_TUPLE 1
318
-
319
- 28: #define HAVE_CONST_PG_DIAG_TABLE_NAME 1
320
-
321
- 29: #define HAVE_STRUCT_PGNOTIFY_EXTRA 1
322
-
323
- 30: #define HAVE_ST_EXTRA 1
301
+ 10:
324
-
325
- 31: #define HAVE_ST_NOTIFY_EXTRA 1
302
+
326
-
327
- 32: #define HAVE_UNISTD_H 1
328
-
329
- 33: #define HAVE_INTTYPES_H 1
330
-
331
- 34: #define HAVE_RUBY_ST_H 1
332
-
333
- 35: #define HAVE_VARIABLE_LENGTH_ARRAYS 1
334
-
335
- 36: #endif
303
+ 11: return 0;
304
+
305
+ 12: }
306
+
307
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return !p; }
336
308
 
337
309
  /* end */
338
310
 
311
+
312
+
313
+ > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpq -lruby.2.5.0 -lpq -lpthread -ldl -lobjc "
314
+
315
+ checked program was:
316
+
317
+ /* begin */
318
+
319
+ 1: #include "ruby.h"
320
+
321
+ 2:
322
+
323
+ 3: /*top*/
324
+
325
+ 4: extern int t(void);
326
+
327
+ 5: int main(int argc, char **argv)
328
+
329
+ 6: {
330
+
331
+ 7: if (argc > 1000000) {
332
+
333
+ 8: printf("%p", &t);
334
+
335
+ 9: }
336
+
337
+ 10:
338
+
339
+ 11: return 0;
340
+
341
+ 12: }
342
+
343
+ 13: extern void PQconnectionUsedPassword();
344
+
345
+ 14: int t(void) { PQconnectionUsedPassword(); return 0; }
346
+
347
+ /* end */
348
+
349
+
350
+
351
+
352
+
353
+
354
+
339
355
  ・sudo -u postgres psql⇨**これをやれ的な記事を見つけたのでやってみましたが、**
340
356
 
341
357
  > sudo: unknown user: postgres
@@ -380,7 +396,7 @@
380
396
 
381
397
 
382
398
 
383
- > 引用テキスト Warning: The database defined as "test" will be erased and
399
+ > Warning: The database defined as "test" will be erased and
384
400
 
385
401
  re-generated from your development database when you run "rake".
386
402
 
@@ -394,7 +410,7 @@
394
410
 
395
411
 
396
412
 
397
- > 引用テキストproduction:
413
+ > production:
398
414
 
399
415
  <<: *default
400
416
 

1

指摘していただいた点を修正しました。

2020/02/03 13:56

投稿

yata_
yata_

スコア5

test CHANGED
File without changes
test CHANGED
@@ -258,64 +258,84 @@
258
258
 
259
259
 
260
260
 
261
- > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -lruby.2.5.0 -lpthread -ldl -lobjc "
262
-
263
- checked program was:
261
+ > extconf.h is:
264
262
 
265
263
  /* begin */
266
264
 
265
+ 1: #ifndef EXTCONF_H
266
+
267
+ 2: #define EXTCONF_H
268
+
269
+ 3: #define HAVE_PQCONNECTIONUSEDPASSWORD 1
270
+
271
+ 4: #define HAVE_PQISTHREADSAFE 1
272
+
273
+ 5: #define HAVE_PQPREPARE 1
274
+
275
+ 6: #define HAVE_PQEXECPARAMS 1
276
+
277
+ 7: #define HAVE_PQESCAPESTRING 1
278
+
279
+ 8: #define HAVE_PQESCAPESTRINGCONN 1
280
+
281
+ 9: #define HAVE_PQESCAPELITERAL 1
282
+
283
+ 10: #define HAVE_PQESCAPEIDENTIFIER 1
284
+
267
- 1: #include "ruby.h"
285
+ 11: #define HAVE_PQGETCANCEL 1
268
-
286
+
269
- 2:
287
+ 12: #define HAVE_LO_CREATE 1
288
+
270
-
289
+ 13: #define HAVE_PG_ENCODING_TO_CHAR 1
290
+
291
+ 14: #define HAVE_PG_CHAR_TO_ENCODING 1
292
+
293
+ 15: #define HAVE_PQSETCLIENTENCODING 1
294
+
295
+ 16: #define HAVE_PQLIBVERSION 1
296
+
297
+ 17: #define HAVE_PQPING 1
298
+
299
+ 18: #define HAVE_PQSETSINGLEROWMODE 1
300
+
301
+ 19: #define HAVE_PQCONNINFO 1
302
+
303
+ 20: #define HAVE_RB_ENCDB_ALIAS 1
304
+
305
+ 21: #define HAVE_RB_THREAD_CALL_WITHOUT_GVL 1
306
+
307
+ 22: #define HAVE_RB_THREAD_CALL_WITH_GVL 1
308
+
309
+ 23: #define HAVE_RB_THREAD_FD_SELECT 1
310
+
311
+ 24: #define HAVE_RB_STR_MODIFY_EXPAND 1
312
+
313
+ 25: #define HAVE_RB_HASH_DUP 1
314
+
315
+ 26: #define HAVE_CONST_PGRES_COPY_BOTH 1
316
+
317
+ 27: #define HAVE_CONST_PGRES_SINGLE_TUPLE 1
318
+
319
+ 28: #define HAVE_CONST_PG_DIAG_TABLE_NAME 1
320
+
321
+ 29: #define HAVE_STRUCT_PGNOTIFY_EXTRA 1
322
+
323
+ 30: #define HAVE_ST_EXTRA 1
324
+
271
- 3: int main(int argc, char **argv)
325
+ 31: #define HAVE_ST_NOTIFY_EXTRA 1
326
+
272
-
327
+ 32: #define HAVE_UNISTD_H 1
328
+
329
+ 33: #define HAVE_INTTYPES_H 1
330
+
273
- 4: {
331
+ 34: #define HAVE_RUBY_ST_H 1
332
+
274
-
333
+ 35: #define HAVE_VARIABLE_LENGTH_ARRAYS 1
334
+
275
- 5: return 0;
335
+ 36: #endif
276
-
277
- 6: }
278
336
 
279
337
  /* end */
280
338
 
281
-
282
-
283
- > "clang -o conftest -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -L/usr/local/lib -L. -L/Users/yatayuki/.rbenv/versions/2.5.0/lib -fstack-protector -L/usr/local/lib -lruby.2.5.0 -Wl,-rpath,/usr/local/lib -lpthread -ldl -lobjc "
284
-
285
- checked program was:
286
-
287
- /* begin */
288
-
289
- 1: #include "ruby.h"
290
-
291
- 2:
292
-
293
- 3: int main() {return 0;}
294
-
295
- /* end */
296
-
297
-
298
-
299
- > find_header: checking for libpq-fe.h... -------------------- yes
300
-
301
-
302
-
303
- > "clang -E -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/x86_64-darwin18 -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby/backward -I/Users/yatayuki/.rbenv/versions/2.5.0/include/ruby-2.5.0 -I. -I/usr/local/include -I/Users/yatayuki/.rbenv/versions/2.5.0/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -Wno-error=shorten-64-to-32 -fno-common -pipe conftest.c -o conftest.i"
304
-
305
- checked program was:
306
-
307
- /* begin */
308
-
309
- 1: #include "ruby.h"
310
-
311
- 2:
312
-
313
- 3: #include <libpq-fe.h>
314
-
315
- /* end */
316
-
317
-
318
-
319
339
  ・sudo -u postgres psql⇨**これをやれ的な記事を見つけたのでやってみましたが、**
320
340
 
321
341
  > sudo: unknown user: postgres