All you need to do is run opam install curses If it doesn't work, run opam depext conf-pkg-config and try opam install curses again. If the code doesn't build, run make clean and try again.