我在我的ubyntu 11.10上使用rvm。我的readline不工作,我試過ruby extconf.rb
但它沒有通過。輸出爲波紋管:Readline不能在rvm工作 - Ubuntu 11.10
$ 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
這裏有什麼問題?誰能幫忙?
這對我有效,但是隻有在徹底刪除/ usr/local/rvm並從頭重新安裝rvm。看起來'rvm remove 1.9.2'不足以清除任何被緩存的內容。 – 2012-03-03 07:52:21