java - 鞋子 4 - LoadError : no such file to load -- bundler/setup

标签 java ruby ubuntu jruby shoes

我是 Ubuntu 的新手,我在解决我在使用 Ruby 和 the latest edition of Shoes 时遇到的这个问题时遇到了一些麻烦。直接来自 Github。

它列出了 JRuby 和 JDK 作为它的依赖项——我很确定我已经正确安装了 JRuby 和 JDK(后者以 OpenJDK 的形式,7 和 8)。我已经达到了成功(我认为)安装 Shoes 的地步。但是,当我尝试在其中一个示例应用程序上运行 Shoes 时,出现了这个错误:

LoadError: no such file to load -- bundler/setup
require at org/jruby/RubyKernel.java:1040
require at /usr/share/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
(root) at /home/deadman/Apps/shoes4/shoes-swt/bin/shoes-swt:6
load at org/jruby/RubyKernel.java:1059
(root) at /home/deadman/Apps/shoes4/bin/shoes-swt:5

我调查了人们遇到的类似错误,但没有一个是专门针对鞋子的,我无法弄清楚我到底做错了什么。

有人可以指出正确的方向来找出这些错误或推荐一个解决方案吗?如果需要更多信息,我会发布。

最佳答案

我在非 Shoes 应用程序中使用 warbler 时遇到了同样的问题。我能够通过在 require 'bundler/setup' 之前添加以下行来解决该问题:

require 'bundler/dep_proxy'
require 'bundler/index'
require 'bundler/match_platform'
require 'bundler/remote_specification'
require 'bundler/stub_specification'
require 'bundler/endpoint_specification'

在您的情况下(鞋子应用程序)似乎有一些不同的 require 'bundler/setup' 行。也许先尝试将上面的内容放在你的脚本的顶部,然后再破解 gem...

关于java - 鞋子 4 - LoadError : no such file to load -- bundler/setup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36254688/

相关文章:

java - MySQL 和 SQLite 类

ruby - 冒号(:) appears as forward slash (/) when creating file name

java - 使用语言启发式检查

java - 如何测试另一个包中父类(super class)的 protected 继承方法

Windows 7 64 位机器上的 Ruby 安装程序

ruby-on-rails - 在生产环境中运行 Rails 迁移

python - 如何从 Ubuntu Dash 运行 Python 脚本?

ubuntu - Ubuntu 中的 KVM 安装

ubuntu - wget 不工作

java - Weblogic消息驱动bean调用错误