質問編集履歴

1

shorten the code

2016/03/04 08:05

投稿

Moto_hero
Moto_hero

スコア7

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- /Users/takayanagimotohiro/.rbenv/versions/2.1.3/bin/ruby extconf.rb --with-pg-config=/usr/pgsql-9.4/bin/pg_config
21
+ /Users/[username]/.rbenv/versions/2.1.3/bin/ruby extconf.rb --with-pg-config=/usr/pgsql-9.4/bin/pg_config
22
22
 
23
23
  Using config values from /usr/pgsql-9.4/bin/pg_config
24
24
 
@@ -34,87 +34,13 @@
34
34
 
35
35
  *** extconf.rb failed ***
36
36
 
37
- Could not create Makefile due to some reason, probably lack of necessary
38
-
39
- libraries and/or headers. Check the mkmf.log file for more details. You may
40
-
41
- need configuration options.
42
-
43
-
44
-
45
- Provided configuration options:
46
-
47
- --with-opt-dir
48
-
49
- --without-opt-dir
50
-
51
- --with-opt-include
52
-
53
- --without-opt-include=${opt-dir}/include
54
-
55
- --with-opt-lib
56
-
57
- --without-opt-lib=${opt-dir}/lib
58
-
59
- --with-make-prog
60
-
61
- --without-make-prog
62
-
63
- --srcdir=.
64
-
65
- --curdir
66
-
67
- --ruby=/Users/takayanagimotohiro/.rbenv/versions/2.1.3/bin/ruby
68
-
69
- --with-pg
70
-
71
- --without-pg
72
-
73
- --enable-windows-cross
74
-
75
- --disable-windows-cross
76
-
77
- --with-pg-config
78
-
79
- --with-pg-dir
80
-
81
- --without-pg-dir
82
-
83
- --with-pg-include
84
-
85
- --without-pg-include=${pg-dir}/include
86
-
87
- --with-pg-lib
88
-
89
- --without-pg-lib=${pg-dir}/lib
90
-
91
37
 
92
38
 
93
39
  extconf failed, exit code 1
94
40
 
95
41
 
96
42
 
97
- Gem files will remain installed in /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/pg-0.18.4 for inspection.
98
43
 
99
- Results logged to /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-15/2.1.0-static/pg-0.18.4/gem_make.out
100
-
101
- Using tilt 1.4.1
102
-
103
- Using sass 3.2.19
104
-
105
- Using spring 1.6.4
106
-
107
- Using rdoc 4.2.2
108
-
109
- Using tzinfo 1.2.2
110
-
111
- Using rack-test 0.6.3
112
-
113
- Using treetop 1.4.15
114
-
115
- Using coffee-script 2.4.1
116
-
117
- Using uglifier 2.7.2
118
44
 
119
45
  An error occurred while installing pg (0.18.4), and Bundler cannot continue.
120
46
 
@@ -122,34 +48,8 @@
122
48
 
123
49
  run bundle exec spring binstub --all
124
50
 
125
- /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local/Cellar in PATH, mode 040777
51
+ /Users/[username]/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local/Cellar in PATH, mode 040777
126
52
 
127
- /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:354:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'pg' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)
128
53
 
129
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:330:in `each'
130
54
 
131
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:330:in `verify_gemfile_dependencies_are_found!'
132
-
133
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:199:in `start'
134
-
135
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:183:in `resolve'
136
-
137
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/definition.rb:198:in `resolve'
138
-
139
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'
140
-
141
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in `specs_for'
142
-
143
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/definition.rb:171:in `requested_specs'
144
-
145
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in `requested_specs'
146
-
147
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:in `setup'
148
-
149
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'
150
-
151
- from /Users/takayanagimotohiro/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'
152
-
153
- from /Users/takayanagimotohiro/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
154
-
155
- from /Users/takayanagimotohiro/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
55
+ /Users/[username]/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:354:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'pg' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)