How to install curses gem on Windows - ruby

How to install curses gem on Windows?
I already tried to do everything mentioned in the answers from this question and still got the same error:
>E:\software\Ruby22\bin\gem install curses
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing curses:
ERROR: Failed to build gem native extension.
E:/software/Ruby22/bin/ruby.exe -r ./siteconf20160411-12372-2bgdm1.rb extconf.rb
checking for tgetent() in -ltinfo... no
checking for tgetent() in -ltermcap... no
checking for ncurses.h... no
checking for ncurses/curses.h... no
checking for ncursesw/curses.h... no
checking for curses_colr/curses.h... no
checking for curses.h... 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=E:/software/Ruby22/bin/$(RUBY_BASE_NAME)
--with-curses-dir
--without-curses-dir
--with-curses-include
--without-curses-include=${curses-dir}/include
--with-curses-lib
--without-curses-lib=${curses-dir}/lib
--with-ncurses-dir
--without-ncurses-dir
--with-ncurses-include
--without-ncurses-include=${ncurses-dir}/include
--with-ncurses-lib
--without-ncurses-lib=${ncurses-dir}/lib
--with-termcap-dir
--without-termcap-dir
--with-termcap-include
--without-termcap-include=${termcap-dir}/include
--with-termcap-lib
--without-termcap-lib=${termcap-dir}/lib
--with-tinfolib
--without-tinfolib
--with-termcaplib
--without-termcaplib
extconf failed, exit code 1
Gem files will remain installed in E:/software/Ruby22/lib/ruby/gems/2.2.0/gems/curses-1.0.2 for inspection.
Results logged to E:/software/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/curses-1.0.2/gem_make.out

Related

Iconv gem refuses to install on ruby 2.2 (windows)

While installing iconv on windows I get the following errors
following the advice of a users post here I tried the following after installing libconv http://gnuwin32.sourceforge.net/packages/libiconv.htm
gem install iconv -v '1.0.4' -- --with-iconv-dir=C:\Program Files (x86)\GnuWin32
I had no success, below are the output errors.
error in cmd
C:\Users\ALilland\Documents\macros\experiments\core_scripts\app>gem install iconv -v '1.0.4' -- --with-iconv-dir=C:\Program Files (x86)\GnuWin32
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-iconv-dir=C:\Program Files (x86)\GnuWin32'
This could take a while...
ERROR: Error installing iconv:
ERROR: Failed to build gem native extension.
C:/Ruby22/bin/ruby.exe -r ./siteconf20160919-12804-5eyr6.rb extconf.rb --with-iconv-dir=C:\Program Files (x86)\GnuWin32
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:/Ruby22/bin/$(RUBY_BASE_NAME)
--with-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--enable-config-charset
--disable-config-charset
--with-config-charset
--without-config-charset
--with-iconvlib
--without-iconvlib
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/iconv-1.0.4 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/iconv-1.0.4/gem_make.out
C:\Users\ALilland\Documents\macros\experiments\core_scripts\app>
gem_make.out
C:/Ruby22/bin/ruby.exe -r ./siteconf20160919-12804-5eyr6.rb extconf.rb --with-iconv-dir=C:\Program Files (x86)\GnuWin32
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:/Ruby22/bin/$(RUBY_BASE_NAME)
--with-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--enable-config-charset
--disable-config-charset
--with-config-charset
--without-config-charset
--with-iconvlib
--without-iconvlib
extconf failed, exit code 1
I solved this issue by,
Error while installing iconv on windows by ruby2.0.0
Tricky part was copying files from /include, /bin and /lib of /GnuWin32 quickly into /Ruby2.2.0/lib/ruby/gems/2.2.0/gems/iconv-1.0.4/ext/iconv when gem install goes to Building native extensions. This could take a while...
Hope this will help someone.

Failed to install charlock_holmes on Windows 8 due to missing zlib

I'm trying to install charlock_holmes on Windows 8, but I can't point it to a valid zlib binary. I tried vaiours dll's from Cygwin and from zlib.net, with no luck. The question is, how to link to zlib properly?
gem install charlock_holmes -- --with-icu-dir=D:\download\icu4c-4_0_1-Win64-msvc8\usr\local --with-icui18nlib=icuin --with-icudatalib=icudt --with-zlib=WHATHEVER_WONT_WORK
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing charlock_holmes:
ERROR: Failed to build gem native extension.
d:/bin/Ruby193/bin/ruby.exe extconf.rb --with-icu-dir=D:\download\icu4c-4_0_1-Win64-msvc8\usr\local --with-icui18nlib=icuin --with-icudatalib=icudt --with- zlib=WHATHEVER_WONT_WORK
checking for main() in -licuin... yes
checking for main() in -licuin... yes
checking for unicode/ucnv.h... yes
checking for main() in -lWHATHEVER_WONT_WORK... no
libz missing
*** 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=d:/bin/Ruby193/bin/ruby
--with-icu-dir
--with-icu-include
--without-icu-include=${icu-dir}/include
--with-icu-lib
--without-icu-lib=${icu-dir}/lib
--with-icui18nlib
--with-icui18nlib
--with-zlib
Gem files will remain installed in d:/bin/Ruby193/lib/ruby/gems/1.9.1/gems/charlock_holmes-0.7.3 for inspection.
Results logged to d:/bin/Ruby193/lib/ruby/gems/1.9.1/gems/charlock_holmes-0.7.3/ext/charlock_holmes/gem_make.out
libz.a goes to [devkit-dir]/mingw/lib, not [devkit-dir]/lib. Problem solved.

Could not create Makefile for some reason - Trying to install Ruby Gem

I'm having some trouble installing a Ruby Gem called Lingust for my Mac. I get the error message below and have no idea how to solve the issue. Any help would be greatly appreciated.
gem install github-linguist
Building native extensions. This could take a while...
ERROR: Error installing github-linguist:
ERROR: Failed to build gem native extension.
/Users/kanery/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -r./siteconf20151008-9054-b4exbs.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** 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=/Users/kanery/.rvm/rubies/ruby-2.0.0-p643/bin/ruby
--use-system-libraries
extconf failed, exit code 1
Gem files will remain installed in /Users/kanery/.rvm/gems/ruby-2.0.0-p643/gems/rugged-0.24.0b0 for inspection.
Reading the installation instructions of Rugged, you can see that both CMake and pkg-config are required. Looking at your error message, it seems like CMake is not installed on your system.
If you are using Homebrew, you can install it by running
brew install cmake
Or you can install it from the source following these instructions.

Installing Ruby Gem Not working on OSX 10.10 Yosemite

I am trying to install Github Linguist ruby gem through terminal in Mac .
I don't have enough points to upload image so please bear with me.
This is error it is showing when I install it in terminal :-
bash-3.2# gem install github-linguist
Building native extensions. This could take a while...
ERROR: Error installing github-linguist:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150321-444-15aw05d.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... no
ERROR: CMake is required to build Rugged.
* 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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--use-system-libraries
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/rugged-0.22.1b1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/rugged-0.22.1b1/gem_make.out
brew install cmake should do the trick
I know you are not asking how to manager Ruby's versions.
but starting to use RVM will help a lot.

Ruby missing taglib error

On my Ubuntu 14.04 I installed Ruby 2.2.0 using RVM.
I have installed the "taglib" using following command sudo apt-get install libtag1-dev.
However when I try to install a gem I get the following error:
> gem install stream2tracks
Building native extensions. This could take a while...
ERROR: Error installing stream2tracks:
ERROR: Failed to build gem native extension.
/home/dash/.rvm/rubies/ruby-2.2.0-dev/bin/ruby -r ./siteconf20150207-2313-h67sa7.rb extconf.rb
checking for ruby.h... yes
checking for taglib/tag_c.h... 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=/home/dash/.rvm/rubies/ruby-2.2.0-dev/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in /home/dash/.rvm/gems/ruby-2.2.0-dev/gems/taglib2-0.1.5 for inspection.
You need to install libtagc0-dev to get TagLib's C header (the one the gem is checking for).

Resources