gpt4 book ai didi

ruby - Readline 在 rvm 中不工作 - Ubuntu 11.10

转载 作者:数据小太阳 更新时间:2023-10-29 06:40:04 24 4
gpt4 key购买 nike

我在我的 ubyntu 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} 替换为您想要的 ruby​​ 版本。

关于ruby - Readline 在 rvm 中不工作 - Ubuntu 11.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8666169/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com