Ruby-on-Rails

Ubuntu 10.10 的軟體包問題和乘客要求

  • June 15, 2016

我正在嘗試讓乘客使用Ubuntu 10.10 (Maverick Meerkat),但我遇到了問題。乘客安裝程序似乎無法辨識虛擬包。我收到此錯誤:

程式碼:

passenger-install-apache2-module
...
* OpenSSL support for Ruby... not found
...

然後它說,執行這個:

* To install OpenSSL support for Ruby:
  Please run apt-get install libopenssl-ruby as root.

當我執行上述命令時,它指的是 libruby 包:

sudo apt-get install libopenssl-ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libruby' instead of 'libopenssl-ruby'
libruby is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.

當我查看 libruby 的詳細資訊時,它說它提供了 libopenssl-ruby:

程式碼:

Provides: libbigdecimal-ruby, libcurses-ruby, libdbm-ruby, libdl-ruby, libdrb-ruby, liberb-ruby, libgdbm-ruby, libiconv-ruby, libopenssl-ruby, libpty-ruby, libracc-runtime-ruby, libreadline-ruby, librexml-ruby, libsdbm-ruby, libstrscan-ruby, libsyslog-ruby, libtest-unit-ruby, libwebrick-ruby, libxmlrpc-ruby, libyaml-ruby, libzlib-ruby

當我重新執行乘客安裝程序時,它給出了同樣的錯誤:

程式碼:

passenger-install-apache2-module
...
* OpenSSL support for Ruby... not found
...

如果您需要更多資訊,請告訴我。我該如何解決?

安裝 Ruby 時,您可能沒有編譯 SSL 支持。這可能是因為您沒有先安裝libssl-devoropenssl軟體包。我建議安裝這些軟體包,然後重新編譯您的 Ruby 版本並重試。

引用自:https://serverfault.com/questions/217332