我读了《用Rails的敏捷Web开发》一书,停在关于Apache/Passenger 的第16.1章。我需要安装gem passenger和apache2-module。 gem 已成功安装,但我不能对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.
有什么问题?
最佳答案
我有一些问题,可以在Centos和Redhat上使用此命令解决:
yum install curl-devel
和在Debian和Ubuntu中:apt-get install libcurl-dev
关于mysql - Linux Mint与Rails + Apache/Passenger和MySql,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18433175/