加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – libreadline5-dev在apt-cache中没有候选者

发布时间:2020-12-17 02:19:33 所属栏目:百科 来源:网络整理
导读:我想在厨师做这个: package("libreadline5-dev") do package_name "libreadline5-dev" retry_delay 2 retries 0 recipe_name "default" cookbook_name :"nginx-passenger" action :installend 它给出以下错误: ==========================================
我想在厨师做这个:

package("libreadline5-dev") do
  package_name "libreadline5-dev"
  retry_delay 2
  retries 0
  recipe_name "default"
  cookbook_name :"nginx-passenger"
  action :install
end

它给出以下错误:

================================================================================
Error executing action `install` on resource 'package[libreadline5-dev]'
================================================================================

Chef::Exceptions::Package
-------------------------
libreadline5-dev has no candidate in the apt-cache

Resource Declaration:
---------------------
# In /var/chef/cookbooks/nginx-passenger/recipes/default.rb

 15: package "libreadline5-dev"
 16: package "build-essential"

Compiled Resource:
------------------
# Declared in /var/chef/cookbooks/nginx-passenger/recipes/default.rb:15:in `from_file'

版本:

ruby1.8.7

厨师:10.16.2

ubuntu:12.04(EC2实例)

有人可以帮我解决这个问题吗?我试过this,但它没有解决问题.

解决方法

AFAIK,libreadline5-dev不再包含在Ubuntu 12.04中.

您可能希望尝试使用libreadline-dev.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读