Readline 在 rvm 中不起作用 - Ubuntu 11.10 [英] Readline not working in rvm - Ubuntu 11.10

查看:52
本文介绍了Readline 在 rvm 中不起作用 - Ubuntu 11.10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ubyntu 11.10 上使用 rvm.我的 readline 不起作用,我尝试了 ruby extconf.rb 但它没有通过.输出如下:

I am using rvm on my ubyntu 11.10. My readline is not working, I tried ruby extconf.rb but it is not passed. Output is bellow:

$ 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

I tried installing 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

这里有什么问题?有人可以帮忙吗?

What is the problem here? Can anyone help?

推荐答案

我得到了解决方案:

运行命令

rvm requirements

它显示了要求和依赖项.安装这些并在 rvm 上重新安装 ruby​​

It shows the requirements and dependencies. Install those and reinstall the ruby on rvm

rvm remove 1.9.2
rvm install 1.9.2

有效!

这篇关于Readline 在 rvm 中不起作用 - Ubuntu 11.10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆