I am running with issue while installing iconv ruby gem
Ruby version:
1.ruby 2.0.0p643 (2015-02-25) [i386-mingw32]
2. Environment 64 bit window machine.
I tried below commands:
1. gem install iconv
2. Download iconv lib and run command: gem install iconv -- --with-curl-lib=C:\Users\Admin\Downloads\mingw64\lib --with-curl-include=C:\Users\Admin\Downloads\mingw64\include
Please help me on how to setup.
Error Message:
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-curl-lib=C:\Users\Admin\Downloads\mingw
64\lib --with-curl-include=C:\Users\Admin\Downloads\mingw64\include'
This could take a while...
ERROR: Error installing iconv:
ERROR: Failed to build gem native extension.
current directory: C:/RUBY200/lib/ruby/gems/2.0.0/gems/iconv-1.0.4/ext/iconv
C:/RUBY200/bin/ruby.exe -r ./siteconf20160604-1700-1r150om.rb extconf.rb --with-
curl-lib=C:\Users\Admin\Downloads\mingw64\lib --with-curl-include=C:\Users\Admin
\Downloads\mingw64\include
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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/RUBY200/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/
--enable-config-charset
--disable-config-charset
--with-config-charset
--without-config-charset
--with-iconvlib
--without-iconvlib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/RUBY200/lib/ruby/gems/2.0.0/extensions/x86-mingw32/2.0.0/iconv-1.0.4/mkmf.l
og
extconf failed, exit code 1
Gem files will remain installed in C:/RUBY200/lib/ruby/gems/2.0.0/gems/iconv-1.0
.4 for inspection.
Results logged to C:/RUBY200/lib/ruby/gems/2.0.0/extensions/x86-mingw32/2.0.0/ic
onv-1.0.4/gem_make.out