【问题标题】:Linux Mint with Rails + Apache/Passenger and MySql带有 Rails + Apache/Passenger 和 MySql 的 Linux Mint
【发布时间】:2013-08-28 07:06:40
【问题描述】:

我读了《Agile Web Development with Rails》一书,停在第 16.1 章关于 Apache/Passenger。我需要安装 gem 乘客和 apache2-module。宝石已成功安装,但我不能告诉同样的 apache 模块。

终端:

~$passenger-install-apache2-module

Checking for required software...

 * Checking for GNU C compiler...
      Found: yes
      Location: /usr/bin/gcc
    ….
 * Checking for Curl development headers with SSL support...
      Found: no
      Error: Cannot find the `curl-config` command.
    ….
      Location of httpd: /usr/sbin/apache2
      Apache version: 2.2.22
 * Checking for Apache 2 development headers...
      Found: no
 * Checking for Apache Portable Runtime (APR) development headers...
      Found: no
 * Checking for Apache Portable Runtime Utility (APU) development headers...
      Found: no

    ….
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------

Installation instructions for required software

 * To install Curl development headers with SSL support:
   Please run apt-get (!!!) install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer.

 * To install Apache 2 development headers:
   Please install it with apt-get install apache2-threaded-dev

 * To install Apache Portable Runtime (APR) development headers:
   Please install it with apt-get install libapr1-dev

 * To install Apache Portable Runtime Utility (APU) development headers:
   Please install it with apt-get install libaprutil1-dev

好的,我试试安装这个必备软件,例如:

alexkd@Active-pc ~ $ sudo apt-get install libcurl4-openssl-dev
[sudo] password for alexkd: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcurl4-openssl-dev : Depends: libidn11-dev but it is not installable
                        Depends: libkrb5-dev but it is not installable
                        Depends: librtmp-dev but it is not installable
E: Unable to correct problems, you have held broken packages.

有什么问题?

【问题讨论】:

  • 你试过sudo apt-get update吗?你可能有一些破损的包裹。乘客提示还提供libcurl4-gnutls-dev 作为替代选项。
  • ~$ sudo apt-get update。在 19 秒内获取 803 kB (41,8 kB/s) 读取包列表...完成 W:GPG 错误:archive.ubuntu.com raring 发布:以下签名无效:BADSIG 40976EAF437D05B5 Ubuntu 存档自动签名密钥 。这个错误是什么意思?
  • 非常感谢,康纳!

标签: mysql ruby-on-rails linux apache passenger


【解决方案1】:

我有一些问题,我在 Centos 和 Redhat 上用这个命令解决它:

yum install curl-devel

在 Debian 和 Ubuntu 中:

apt-get install libcurl-dev

【讨论】:

    猜你喜欢
    • 2015-07-16
    • 1970-01-01
    • 1970-01-01
    • 2015-10-15
    • 1970-01-01
    • 2011-09-27
    • 2018-09-01
    • 1970-01-01
    • 2014-03-02
    相关资源
    最近更新 更多