gpt4 book ai didi

ruby-on-rails - 使用 Rubber : 'libapache2-mod-passenger' was not found 部署

转载 作者:数据小太阳 更新时间:2023-10-29 07:59:47 26 4
gpt4 key购买 nike

我正在关注 Ryan Bates 的 Rails Cast 到 deploy a Rails app to EC2 with Rubber .在出现此错误之前,一切似乎都很顺利。我该如何解决这个问题?

** [out :: production.foo.com] Ign https://oss-binaries.phusionpassenger.com precise/main Translation-en
** [out :: production.foo.com] Fetched 60.6 kB in 2s (25.7 kB/s)
** [out :: production.foo.com] Reading package lists...
** [out :: production.foo.com]
** [out :: production.foo.com] Reading package lists...
** [out :: production.foo.com]
** [out :: production.foo.com] Building dependency tree...
** [out :: production.foo.com]
** [out :: production.foo.com] Reading state information...
** [out :: production.foo.com]
** [out :: production.foo.com] E
** [out :: production.foo.com] :
** [out :: production.foo.com] Version '1:4.0.48-1~precise1' for 'libapache2-mod-passenger' was not found
** [out :: production.foo.com]
command finished in 10387ms
failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\'' bash -l /tmp/install_packages postfix build-essential git-core libxslt-dev ntp postgresql-client libpq-dev subversion curl autoconf bison ruby zlib1g-dev libssl-dev libreadline6-dev libxml2-dev libyaml-dev apache2 libapache2-mod-proxy-html libcurl4-openssl-dev libapache2-mod-xsendfile apache2-mpm-prefork apache2-prefork-dev libapache2-mod-passenger=1:4.0.48-1~`lsb_release -sc`1 collectd libperl-dev monit postgresql-9.1 openjdk-7-jdk unzip python-django python-django-tagging python-cairo python-memcache memcached uwsgi uwsgi-plugin-python uwsgi-plugin-http sqlite3 bzr zip mongodb-10gen haproxy ec2-ami-tools'" on production.foo.com

我的rubber.yml:

app_name: My_App

app_user: app

admin_email: "root@#{full_host}"

timezone: US/Western

domain: foo.com

cloud_providers:
aws:

region: us-west-2

access_key: MYACCESSKEYXX
secret_access_key: secret-keyXX
account: MYACCOUNTXXX

key_name: my-key-file
key_file: "#{Dir[(File.expand_path('~') rescue '/root') + '/.ec2/*' + cloud_providers.aws.key_name].first}"

image_type: t2.micro
image_id: ami-ef5e24df #this is a Ubuntu 12.04 precise EBS hvm 64-bit

尝试了 this question 中的建议,但没有帮助。我尝试在我的本地机器和亚马逊的实例中安装 libapache2-mod-passenger,但没有帮助。

我正在使用 Ruby 1.9.3 以避免其他问题

最佳答案

最终从 1:4.0.48-1~precise1 更改了乘客版本至 1:4.0.50-1~precise1rubber-passenger.yml这解决了问题。

关于ruby-on-rails - 使用 Rubber : 'libapache2-mod-passenger' was not found 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25560058/

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