Installing ncurses for ruby on Windows

前端 未结 7 1997
不思量自难忘°
不思量自难忘° 2021-01-13 01:38

I am trying to install ncurses for ruby on windows. I have not installed ncurses before on my machine. I thought that having the \"ruby devkit\", it had asked for would be e

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 02:18

    Update: It seems like SourceForge no longer hosts NCurses binaries for Windows. This answer is effectively obsolete now. Sorry! (As of August 2015, the GNU NCurses Page lists a "new" v6.0 release, which is newer than the 0.9.1 version in my answer.)

    I finally got this to work (years after I needed it ...) without Cygwin, PDCurses, or manually building the NCurses source. The instructions are available on my blog. For reference:

    • Download the latest NCurses binaries (0.9.1) from SourceForge.
    • Unzip the files somewhere on your machine.
    • Find out where Ruby searches for libraries by running ruby -e 'puts $:'
    • Copy and paste ncurses.so and lib\ncurses.rb from the NCurses directory into the directory you picked. Place them both in the root directory.
    • Run your NCurses-enabled app.

    It works. Without PDCurses!

提交回复
热议问题