【发布时间】:2012-02-17 20:32:10
【问题描述】:
我有一个需要在 Apache 上托管的 RoR 应用程序,所以我一直在尝试安装 Apache Passenger。当我运行以下命令时:
sudo passenger-install-apache2-module
我明白了:
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* Ruby development headers... not found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/bin/rake
* rack... found
* Apache 2... found at /usr/sbin/apache2
* Apache 2 development headers... found at /usr/bin/apxs2
* Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config
* Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config
所以它要求我运行以下命令:
sudo apt-get install ruby1.8-dev
我已经这样做了,结果如下
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby1.8-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
所以当我跑步时:
sudo passenger-install-apache2-module
我得到相同的结果要求我运行:
sudo apt-get install ruby1.8-dev
【问题讨论】:
-
你能试试更高版本的 ruby 吗?还是用 rvm 安装?
-
您下载了哪个版本的 Enterprise Ruby?另外我假设您正在使用一些基于 Debian 的 Linux 发行版:Ubuntu?薄荷?请澄清-我将在虚拟中尝试所有这些。我正在运行 Ubuntu、Mint 和 Ubuntu 服务器 - 乘客安装从来没有任何问题....
标签: ruby-on-rails apache apache2 passenger