Since Ruby 2.1, curses was removed from Ruby standard library. 😟 If you have trouble installing curses gem, follow the instructions below.
Arch Linux
pacman -S base-devel
gem install curses
MSYS2 (Windows)
pacman -S base-devel gcc gmp-devel libcrypt-devel ncurses-devel
gem install curses
DevKit (Windows)
- Download ncurses Windows port. x86
- Unzip to anywhere, for example
C:\ncurses
.
- Run
gem install curses --platform=ruby -- --with-ncurses-dir="C:\ncurses"
(Replace C:\ncurses
with wherever you extracted it).
- Now when we
require 'curses'
we get The specified module could not be found
because libncursesw6.dll
can't be found.
- To fix this copy the contents of
C:\ncurses\bin
to somewhere in your path.
- Done!