gpt4 book ai didi

ruby-on-rails - 安装 Apache Passenger,未找到 Ruby 开发 header

转载 作者:行者123 更新时间:2023-12-04 06:19:59 24 4
gpt4 key购买 nike

我有一个需要托管在 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

最佳答案

如果像我一样,您正在运行 apt 包 ruby​​1.9.1 而不是 1.8 然后安装 ruby​​1.9.1-dev

sudo apt-get install ruby1.9.1-dev

这对我有用。希望能帮助到你。

关于ruby-on-rails - 安装 Apache Passenger,未找到 Ruby 开发 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9334984/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com