質問編集履歴

3

質問の改訂

2021/03/03 08:36

投稿

paserin
paserin

スコア4

test CHANGED
File without changes
test CHANGED
@@ -12,140 +12,6 @@
12
12
 
13
13
  ```
14
14
 
15
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
16
-
17
-
18
-
19
- /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/mkmf.log
20
-
21
-
22
-
23
- extconf failed, exit code 1
15
+ could not locate gemfile
24
-
25
-
26
-
27
- Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3 for inspection.
28
-
29
- Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/gem_make.out
30
-
31
-
32
-
33
- An error occurred while installing pg (1.2.3), and Bundler cannot continue.
34
-
35
- Make sure that `gem install pg -v '1.2.3' --source 'https://rubygems.org/'` succeeds before bundling.
36
-
37
-
38
-
39
- In Gemfile:
40
-
41
- pg
42
16
 
43
17
  ```
44
-
45
- gem install pg -v '1.2.3' --source 'https://rubygems.org/'の実行
46
-
47
- ```
48
-
49
- Building native extensions. This could take a while...
50
-
51
- ERROR: Error installing pg:
52
-
53
- ERROR: Failed to build gem native extension.
54
-
55
-
56
-
57
- current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3/ext
58
-
59
- /home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/ruby -I /home/ec2-user/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r ./siteconf20210303-8977-3cxl5j.rb extconf.rb
60
-
61
- checking for pg_config... no
62
-
63
- No pg_config... trying anyway. If building fails, please try again with
64
-
65
- --with-pg-config=/path/to/pg_config
66
-
67
- checking for libpq-fe.h... no
68
-
69
- Can't find the 'libpq-fe.h header
70
-
71
- *** extconf.rb failed ***
72
-
73
- Could not create Makefile due to some reason, probably lack of necessary
74
-
75
- libraries and/or headers. Check the mkmf.log file for more details. You may
76
-
77
- need configuration options.
78
-
79
-
80
-
81
- Provided configuration options:
82
-
83
- --with-opt-dir
84
-
85
- --without-opt-dir
86
-
87
- --with-opt-include
88
-
89
- --without-opt-include=${opt-dir}/include
90
-
91
- --with-opt-lib
92
-
93
- --without-opt-lib=${opt-dir}/lib
94
-
95
- --with-make-prog
96
-
97
- --without-make-prog
98
-
99
- --srcdir=.
100
-
101
- --curdir
102
-
103
- --ruby=/home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/$(RUBY_BASE_NAME)
104
-
105
- --with-pg
106
-
107
- --without-pg
108
-
109
- --enable-windows-cross
110
-
111
- --disable-windows-cross
112
-
113
- --with-pg-config
114
-
115
- --without-pg-config
116
-
117
- --with-pg_config
118
-
119
- --without-pg_config
120
-
121
- --with-pg-dir
122
-
123
- --without-pg-dir
124
-
125
- --with-pg-include
126
-
127
- --without-pg-include=${pg-dir}/include
128
-
129
- --with-pg-lib
130
-
131
- --without-pg-lib=${pg-dir}/lib
132
-
133
-
134
-
135
- To see why this extension failed to compile, please check the mkmf.log which can be found here:
136
-
137
-
138
-
139
- /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/mkmf.log
140
-
141
-
142
-
143
- extconf failed, exit code 1
144
-
145
-
146
-
147
- Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3 for inspection.
148
-
149
- Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/gem_make.out
150
-
151
- ```

2

詳細追加

2021/03/03 08:36

投稿

paserin
paserin

スコア4

test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,111 @@
41
41
  pg
42
42
 
43
43
  ```
44
+
45
+ gem install pg -v '1.2.3' --source 'https://rubygems.org/'の実行
46
+
47
+ ```
48
+
49
+ Building native extensions. This could take a while...
50
+
51
+ ERROR: Error installing pg:
52
+
53
+ ERROR: Failed to build gem native extension.
54
+
55
+
56
+
57
+ current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3/ext
58
+
59
+ /home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/ruby -I /home/ec2-user/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r ./siteconf20210303-8977-3cxl5j.rb extconf.rb
60
+
61
+ checking for pg_config... no
62
+
63
+ No pg_config... trying anyway. If building fails, please try again with
64
+
65
+ --with-pg-config=/path/to/pg_config
66
+
67
+ checking for libpq-fe.h... no
68
+
69
+ Can't find the 'libpq-fe.h header
70
+
71
+ *** extconf.rb failed ***
72
+
73
+ Could not create Makefile due to some reason, probably lack of necessary
74
+
75
+ libraries and/or headers. Check the mkmf.log file for more details. You may
76
+
77
+ need configuration options.
78
+
79
+
80
+
81
+ Provided configuration options:
82
+
83
+ --with-opt-dir
84
+
85
+ --without-opt-dir
86
+
87
+ --with-opt-include
88
+
89
+ --without-opt-include=${opt-dir}/include
90
+
91
+ --with-opt-lib
92
+
93
+ --without-opt-lib=${opt-dir}/lib
94
+
95
+ --with-make-prog
96
+
97
+ --without-make-prog
98
+
99
+ --srcdir=.
100
+
101
+ --curdir
102
+
103
+ --ruby=/home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/$(RUBY_BASE_NAME)
104
+
105
+ --with-pg
106
+
107
+ --without-pg
108
+
109
+ --enable-windows-cross
110
+
111
+ --disable-windows-cross
112
+
113
+ --with-pg-config
114
+
115
+ --without-pg-config
116
+
117
+ --with-pg_config
118
+
119
+ --without-pg_config
120
+
121
+ --with-pg-dir
122
+
123
+ --without-pg-dir
124
+
125
+ --with-pg-include
126
+
127
+ --without-pg-include=${pg-dir}/include
128
+
129
+ --with-pg-lib
130
+
131
+ --without-pg-lib=${pg-dir}/lib
132
+
133
+
134
+
135
+ To see why this extension failed to compile, please check the mkmf.log which can be found here:
136
+
137
+
138
+
139
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/mkmf.log
140
+
141
+
142
+
143
+ extconf failed, exit code 1
144
+
145
+
146
+
147
+ Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3 for inspection.
148
+
149
+ Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/gem_make.out
150
+
151
+ ```

1

エラーの修正

2021/03/03 08:25

投稿

paserin
paserin

スコア4

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,32 @@
12
12
 
13
13
  ```
14
14
 
15
+ To see why this extension failed to compile, please check the mkmf.log which can be found here:
16
+
17
+
18
+
19
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/mkmf.log
20
+
21
+
22
+
23
+ extconf failed, exit code 1
24
+
25
+
26
+
27
+ Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/pg-1.2.3 for inspection.
28
+
29
+ Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/pg-1.2.3/gem_make.out
30
+
31
+
32
+
33
+ An error occurred while installing pg (1.2.3), and Bundler cannot continue.
34
+
35
+ Make sure that `gem install pg -v '1.2.3' --source 'https://rubygems.org/'` succeeds before bundling.
36
+
37
+
38
+
15
- Could not locate Gemfile
39
+ In Gemfile:
40
+
41
+ pg
16
42
 
17
43
  ```