微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用Rails + Apache / Passenger和MySql的Linux Mint

我读了一本书“ 使用Rails进行敏捷Web开发 ”,并在第16.1章关于Apache / Passenger停下来了。 我需要安装gem旅客和apache2模块。 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

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

如何使用Nginx,Passenger,Sinatra创build多个位置

独angular兽vs独立后面的Nginx

乘客产生了许多机架应用程序

如何使用Passenger在Apache下设置Sinatra应用程序?

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐