我有很大的頭痛試圖安裝iconv寶石紅寶石。iconv安裝失敗ruby
gem install iconv -- --http-proxy http://login:[email protected]:8080 --with-iconv-dir=\D:\libiconv
結果是:
ERROR: Error installing iconv:
ERROR: Failed to build gem native extension.
current directory: D:/InstantRails/ruby/lib/ruby/gems/2.3.0/gems/iconv-1.0.4/ext/iconv D:/InstantRails/ruby/bin/ruby.exe -r ./siteconf20161020-2784-1sz8avf.rb extconf.rb --http-proxy http://bche:[email protected]:8080 --with-iconv-dir=D:/libiconv
checking for rb_enc_get() in ruby/encoding.h... yes
checking for rb_sys_fail_str() in ruby.h... yes
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
我已經下載了所有的源文件成爲可能。請幫助
日誌文件說什麼? – Jerry
命令:ruby腳本/服務器-e生產-p 999 – Bohdan
trace: D:/InstantRails/ruby/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:在'require'中:不能從D:/InstantRails/ruby/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:在'require' 中加載這樣的文件 - iconv(LoadError) /lib/ruby/gems/2.3.0/gems/activesupport-2.3.10/lib/active_support/inflector.rb:3:in'' from D:/ InstantRails/ruby/lib/ruby /site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in'require' from –
Bohdan