Skip to content

Installation Failed on Windows #1

@Baneeishaque

Description

@Baneeishaque
D:\Programs\Codes\CMD_Ruby\colorls>gem install ruby-terminfo
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-terminfo:
		ERROR: Failed to build gem native extension.

current directory: D:/Programs/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-term
info-0.1.1
D:/Programs/Ruby24-x64/bin/ruby.exe -r ./siteconf20170728-4320-1nqzigx.rb extcon
f.rb
checking for setupterm() in -lncurses... no
checking for setupterm() in -lcurses... no
checking for rb_io_t in ruby.h,rubyio.h... yes
checking for rb_io_t.fd in ruby.h,rubyio.h... yes
checking for OpenFile.fd in ruby.h,rubyio.h... no
creating extconf.h
creating Makefile

current directory: D:/Programs/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-terminfo
-0.1.1
make "DESTDIR=" clean

current directory: D:/Programs/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ruby-terminfo
-0.1.1
make "DESTDIR="
generating terminfo-x64-mingw32.def
compiling terminfo.c
In file included from terminfo.c:33:0:
D:/Programs/Ruby24-x64/include/ruby-2.4.0/ruby/backward/rubyio.h:2:2: warning: #
warning use "ruby/io.h" instead of "rubyio.h" [-Wcpp]
 #warning use "ruby/io.h" instead of "rubyio.h"
  ^~~~~~~
terminfo.c:36:10: fatal error: curses.h: No such file or directory
 #include <curses.h>
		  ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:249: terminfo.o] Error 1

make failed, exit code 2

Gem files will remain installed in D:/Programs/Ruby24-x64/lib/ruby/gems/2.4.0/ge
ms/ruby-terminfo-0.1.1 for inspection.
Results logged to D:/Programs/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-ming
w32/2.4.0/ruby-terminfo-0.1.1/gem_make.out

D:\Programs\Codes\CMD_Ruby\colorls>

I already installed ncurses, This is the steps takes to install ncurses on MSYS2 :

prism@prism-PC MINGW64 ~
$ pacman -Syuu ncurses
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 msys is up to date
warning: ncurses-6.0.20170708-2 is up to date -- reinstalling
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) ncurses-6.0.20170708-2

Total Installed Size:  9.02 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [#####################] 100%
(1/1) checking package integrity                   [#####################] 100%
(1/1) loading package files                        [#####################] 100%
(1/1) checking for file conflicts                  [#####################] 100%
(1/1) checking available disk space                [#####################] 100%
:: Processing package changes...
(1/1) reinstalling ncurses                         [#####################] 100%

prism@prism-PC MINGW64 ~
$

The installation is success, but the above error appears on installation of term-info. MSYS2-packages
is the repository of available MSYS2 packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions