ruby – readline不工作在rvm – Ubuntu 11.10
发布时间:2020-12-16 19:51:01 所属栏目:百科 来源:网络整理
导读:我在我的ubropu 11.10上使用rvm.我的readline不工作,我尝试 ruby extconf.rb但它没有通过.输出如下: $ruby extconf.rb checking for tgetnum() in -lncurses... yeschecking for readline/readline.h... yeschecking for readline/history.h... yeschecking
我在我的ubropu 11.10上使用rvm.我的readline不工作,我尝试
ruby extconf.rb但它没有通过.输出如下:
$ruby extconf.rb 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 我试过安装libncurses5-dev&中的libreadline5-dev的 $sudo apt-get install libncurses5-dev libreadline5-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libreadline5-dev is not available,but is referred to by another package. This may mean that the package is missing,has been obsoleted,or is only available from another source However the following packages replace it: libreadline-gplv2-dev:i386 lib64readline-gplv2-dev:i386 libreadline-gplv2-dev E: Package 'libreadline5-dev' has no installation candidate 这里有什么问题?谁能帮忙? 解决方法
同样的问题在这里
Readline errors prevent me running rails console
在ubuntu下,您可以使用系统readline安装. rvm uninstall ${YOURUBYVERSION} sudo apt-get install libreadline-dev rvm install ${YOURUBYVERSION} --with-readline-dir=/usr/include/readline 用您所需的红宝石版本代替${YOURUBYVERSION}. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |