gpt4 book ai didi

ruby-on-rails - 由于 unicorn ,bundle exec rails s 失败

转载 作者:行者123 更新时间:2023-12-04 19:14:51 28 4
gpt4 key购买 nike

我在环境中使用 ubuntu 16.04 和 rbenv。
成功安装 bundle 后,我尝试使用 bundle exec rails s 启动服务器但是我收到了以下错误

/home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/const.rb:21:in `require_relative': cannot load such file -- /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/version (LoadError)
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn/const.rb:21:in `<top (required)>'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:122:in `require_relative'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:122:in `block in <top (required)>'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:121:in `each'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/lib/unicorn.rb:121:in `<top (required)>'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:91:in `require'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:86:in `each'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:86:in `block in require'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:75:in `each'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/runtime.rb:75:in `require'
from /home/mario/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler.rb:107:in `require'
from /home/mario/prayer-portal/config/application.rb:7:in `<top (required)>'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:79:in `require'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:76:in `server'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/mario/prayer-portal/vendor/bundle/ruby/2.1.0/gems/railties-4.1.16/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

最佳答案

尝试通过“sudo bundle exec gem uninstall unicorn”卸载 gem,然后通过标准的“sudo bundle install”重新安装它。它将更新 unicorn 版本。

关于ruby-on-rails - 由于 unicorn ,bundle exec rails s 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41919455/

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