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

ruby-on-rails – passenger-install-apache2-module在ubuntu 12

发布时间:2020-12-16 20:06:50 所属栏目:百科 来源:网络整理
导读:我已经为我的rails应用程序安装了宝石安装乘客.现在我试试乘客安装apache2模块. 我收到错误屏幕: Installation instructions for required software To install Apache 2 development headers: Please run apt-get install apache2-prefork-dev as root. To
我已经为我的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.

(编辑:李大同)

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

    推荐文章
      热点阅读