【问题标题】:Rails. 'Bundle install' gives the 'bad interpreter: No such file or directory' error after Ruby version upgrade (Windows)导轨。 'Bundle install' 在 Ruby 版本升级 (Windows) 后给出了 'bad interpreter: No such file or directory' 错误
【发布时间】:2022-01-03 07:49:30
【问题描述】:

我已将 Ruby 版本从 2.5.x 升级到 2.6.x(并卸载 2.5.x 版本)。 现在我收到了bundle install 的错误(对于我现有的 Rails 项目):

bash: /c/Ruby25-x64/bin/bundle: C:/Ruby25-x64/bin/ruby.exe^M: bad interpreter: No such file or directory

我如何告诉捆绑器使用较新的 Ruby 版本?

操作系统 Windows 10。

【问题讨论】:

    标签: ruby-on-rails ruby bundler


    【解决方案1】:

    好的,我找到了解决办法。

    首先,不要使用git bash 终端,而是使用cmd.exe。这让我了解了为什么 bundle install 不起作用('mimemagic' gem 有问题)。

    我已经运行 bundle update,它安装了所有必要的 gem,现在一切正常。

    【讨论】:

      猜你喜欢
      • 2017-02-14
      • 2018-06-07
      • 2021-10-05
      • 2023-01-22
      • 1970-01-01
      • 2016-11-01
      • 2020-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多