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

前端之家收集整理的这篇文章主要介绍了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.

原文链接:https://www.f2er.com/ruby/272675.html

猜你在找的Ruby相关文章