要使用 readline 函式,您需要安裝 libreadline。您可以在 GNU Readline 專案的首頁 » http://cnswww.cns.cwru.edu/~chet/readline/rltop.html 找到 libreadline。它由 Chet Ramey 維護,他也是 Bash 的作者。
您也可以將這些函式與 libedit 函式庫一起使用,libedit 函式庫是 readline 函式庫的非 GPL 替代方案。libedit 函式庫是 BSD 授權的,可以從 » http://www.thrysoee.dk/editline/ 下載。