From 4e2acfe72498485aea5af04795ee6aa22496d83f Mon Sep 17 00:00:00 2001 From: ecx86 Date: Sat, 5 Nov 2016 21:09:49 -0400 Subject: [PATCH] add instructions for devkit --- Installing-curses-gem.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Installing-curses-gem.md b/Installing-curses-gem.md index bf9cb75..0a174f6 100644 --- a/Installing-curses-gem.md +++ b/Installing-curses-gem.md @@ -12,4 +12,12 @@ gem install curses ``` pacman -S base-devel gcc gmp-devel libcrypt-devel ncurses-devel gem install curses -``` \ No newline at end of file +``` + +## DevKit (Windows) +1. Download [ncurses Windows port](http://invisible-island.net/datafiles/release/mingw64.zip). [[x86]](http://invisible-island.net/datafiles/release/mingw32.zip) +2. Unzip to anywhere, for example `C:\ncurses`. +3. Run `gem install curses --platform=ruby -- --with-ncurses-dir="C:\ncurses"` (Replace `C:\ncurses` with wherever you extracted it). +4. Now when we `require 'curses'` we get `The specified module could not be found`. Opening up `curses.so` in a disassembler we see `libncursesw6.dll` is loaded. +5. To fix this copy the contents of `C:\ncurses\bin` to somewhere in your path. +6. Done! \ No newline at end of file