【发布时间】: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