1

我们正在 ubuntu 12.04 上为 ruby​​ 1.9.3 安装 readline。运行 extconf 时缺少一些文件:

$ ruby extconf.rb -- --with-readline-dir="$HOME/.rvm/usr"
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... no
checking for readline() in -ledit... no
checking for editline/readline.h... no

我们如何安装在运行 make install 之前丢失的最后 3 个文件?非常感谢。

4

1 回答 1

1

尝试libreadline5-dev为您的架构下载包,例如,从这里下载并手动安装。

sudo dpkg -i downloaded_package.deb

它应该可以帮助你。

于 2012-05-01T22:47:50.913 回答