gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:03 25 4
gpt4 key购买 nike

我已经为我的 Rails 应用程序安装了 gem install passenger。现在我尝试 passenger-install-apache2-module

我收到错误屏幕:

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 update 时,它没有解决任何问题。错误仍然存​​在。

最佳答案

试试这个:

sudo apt-get install apache2-dev

我这样做了并且 passenger-install-apache2-module 能够通过提到的错误。

关于ruby-on-rails - passenger-install-apache2-module 在 ubuntu 12.04 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11792922/

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