我阅读了《使用 Rails 进行敏捷 Web 开发》一书,并在第 16.1 章关于 Apache/Passenger的文章中停下来。我需要安装 gem 乘客和 apache2-module。宝石已成功安装,但我无法说出关于 apache 模块的相同信息。
终端:
~ $ 乘客安装 apache2 模块
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.
有什么问题?