微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – passenger-install-apache2-module在ubuntu 12.04上失败

我已经为我的rails应用程序安装了宝石安装乘客.现在我试试乘客安装apache2模块.

我收到错误屏幕:

Installation instructions for required software

  • To install Apache 2 development headers:
    Please run apt-get install apache2-prefork-dev as root.
  • To install Apache Portable Runtime (APR) development headers:
    Please run apt-get install libapr1-dev as root.
  • To install Apache Portable Runtime Utility (APU) development headers:
    Please run apt-get install libaprutil1-dev as root.

当我运行sudo apt-get install apache2-prefork-dev时,我得到

The following packages have unmet dependencies: apache2-prefork-dev :
Depends: apache2.2-common (= 2.2.22-1ubuntu1) but 2.2.22-1ubuntu1.1 is
to be installed.
E: Unable to correct problems,you have held broken
packages.

当我运行sudo apt-get更新时,它不会解决任何问题.错误仍然存​​在.

解决方法

尝试
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade

然后重试安装apache,加上所有的dev包.您可能必须首先卸载apache.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐