Rails Installfest 出现问题,我该输入什么来解决问题?libreadline6-dev(问题)

Rails Installfest 出现问题,我该输入什么来解决问题?libreadline6-dev(问题)

我在使用 Installfest 的第一步时不断收到此错误。

该行是:

sudo apt-get install autoconf automake bison build-essential curl git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev

我收到:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘git’ instead of ‘git-core’
Note, selecting ‘libreadline-dev’ instead of ‘libreadline6-dev’
Note, selecting ‘libxslt1-dev’ instead of ‘libxslt-dev’
Note, selecting ‘libncurses5-dev’ instead of ‘ncurses-dev’
Package libreadline6 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

E: Package ‘libreadline6’ has no installation candidate

收到该消息后我输入:

dpkg --list|grep libreadline    (at the suggestion of someone online)

我被退回了:

ii libreadline7:amd64 7.0-3 amd64 GNU readline and history libraries, run-time libraries


该网站的链接如下,问题出现在步骤 1 中的代码中。如果有帮助的话,上面几行代码中的“libreadline7”实际上用红色突出显示。谢谢大家!

http://installfest.railsbridge.org/installfest/linux

答案1

我建议libreadline从命令中删除版本apt-get并使用通用版本 - libreadline-dev

因此完整的命令是

sudo apt-get install autoconf automake bison build-essential curl git-core \
libapr1 libaprutil1 libc6-dev libltdl-dev libreadline-dev libsqlite3-0 \ 
libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev \
libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev

然后关注InstallFest 指南

但我建议使用2.4.4Ruby步骤4(事实上标记稳定的在官方网站上)。

相关内容