0
나는 인터넷에서 발견 한 많은 다른 방법으로 gem install pg
에 노력했습니다. 그들은 모두 같은 오류를줍니다.Windows에 postgresSQL을 설치할 때 오류가 발생했습니다. "C 확장은 지원되지 않습니다."
가 나는 시도했다 :
gem install pg -- --with-pg-dir=C:\Program Files (x86)\PostgreSQL\9.3:
gem install pg -- --with-pg-dir=C:\Program Files\PostgreSQL\9.5:
gem install pg
는 Gemfile을 편집 한 후 bundle install
사용.
나는이 오류가 매 시간 : 어떤 도움이 apreciated 될 것이다
C:\laragon\www\ruby\Car-X>gem install pg Building native extensions. This could take a while... C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:56: warning: Tempfile#unlink or delete called on open file; ignoring ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/pg-0.18.4/ext C:/jruby-9.1.2.0/bin/jruby.exe -r ./siteconf20160629-8568-1ou7emz.rb extconf.rb NotImplementedError: C extensions are not supported
<top> at C:/jruby-9.1.2.0/lib/ruby/stdlib/mkmf.rb:1 require at org/jruby/RubyKernel.java:944 (root) at C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at extconf.rb:2
extconf failed, exit code 1
Gem files will remain installed in C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/pg-0.18.4 for inspection. Results logged to C:/jruby-9.1.2.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.3.0/pg-0.18.4/gem_make.out
.
'C :/jruby-9.1.2.0/lib/ruby / gems/shared/extensions/universal-java-1.8/2.3.0/pg-0.18.4/gem_make.out' 파일은 무엇입니까? –