gpt4 book ai didi

ruby-on-rails - 无法安装乘客模块

转载 作者:数据小太阳 更新时间:2023-10-29 07:00:24 24 4
gpt4 key购买 nike

我正在尝试为 Rails 应用程序配置 passenger 和 Nginx。

我在执行乘客命令时遇到编译错误。

ruby 版本: ruby 2.3.1p112(2016-04-26 修订版 54768)[x86_64-linux]

Rails 版本 rails 4.2.6

错误信息:-

# passenger-install-nginx-module
/usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x7cab3c passenger-5.0.28> (NoMethodError)
from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
from /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.28/bin/passenger-install-nginx-module:33:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.1/bin/passenger-install-nginx-module:23:in `load'
from /usr/local/rvm/gems/ruby-2.3.1/bin/passenger-install-nginx-module:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

你能帮我解决这个问题吗?

最佳答案

如果还没有解决,可以试试:

gem update --system

然后再尝试编译。

关于ruby-on-rails - 无法安装乘客模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37291163/

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