我读了“使用Rails进行敏捷Web开发”这本书,并在第16.1章中关于Apache / Passenger 停止了。我需要安装gem passenger和apache2-module。 Gem已成功安装,但我无法告诉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.
有什么问题?
答案 0 :(得分:0)
我遇到了一些问题,我在Centos& amp; Redhat:
yum install curl-devel
和在Debian& Ubuntu:
apt-get install libcurl-dev