-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Installing curses gem
salmarko edited this page Jan 19, 2023
·
6 revisions
Since Ruby 2.1, curses was removed from Ruby standard library. 😟 If you have trouble installing curses gem, follow the instructions below.
pacman -S base-devel
gem install curses
pacman -S base-devel gcc gmp-devel libcrypt-devel ncurses-devel
gem install curses
- Download ncurses Windows port. x86
- Unzip to anywhere, for example
C:\ncurses
. - Run
gem install curses --platform=ruby -- --with-ncurses-dir="C:\ncurses"
(ReplaceC:\ncurses
with wherever you extracted it). - Now when we
require 'curses'
we getThe specified module could not be found
becauselibncursesw6.dll
can't be found. - To fix this copy the contents of
C:\ncurses\bin
to somewhere in your path. - Done!