简体   繁体   English

鞋子4-LoadError:没有要加载的此类文件-捆绑程序/安装程序

[英]Shoes 4 - LoadError: no such file to load — bundler/setup

I'm very new to Ubuntu and I'm having some trouble figuring out this issue I'm having with Ruby and the latest edition of Shoes straight from Github. 我是Ubuntu的新手,在解决这个问题时遇到了一些麻烦,我在Ruby和直接来自Github 的最新版Shoes中遇到了这个问题。

It lists JRuby and JDK as its dependencies - I'm pretty certain I've got JRuby and JDK installed properly (the latter in the form of OpenJDK, both 7 and 8). 它列出了JRuby和JDK作为其依赖项-我敢肯定我已经正确安装了JRuby和JDK(后者以OpenJDK的形式,分别是7和8)。 I've gotten up to the point of successfully (I think) installing Shoes. 我已经准备成功(我认为)安装鞋。 But when I try to run Shoes on one of its sample apps, I get this error: 但是,当我尝试在其示例应用程序之一上运行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

I've looked into similar errors that people have encountered, but none of them are for Shoes specifically and I haven't been able to figure out what exactly I'm doing wrong here. 我调查了人们遇到的类似错误,但是这些错误都不是专门针对Shoes的,因此我无法弄清楚我到底在做什么错。

Can someone point me in the right direction toward figuring out these errors or recommend a solution? 有人可以为我指出正确的方向,以找出这些错误或建议解决方案吗? If more information is necessary, I'll post it. 如果需要更多信息,我将其发布。

I had the same problem using warbler with a non-Shoes app. 使用非鞋类应用程序的warbler ,我遇到了同样的问题。 I was able to work around the problem by adding the following lines before the require 'bundler/setup' line: 我可以通过 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'

In your case (a Shoes app) there appears to be a few different require 'bundler/setup' lines. 在您的情况(鞋类应用程序)中,似乎有一些不同的require 'bundler/setup'行。 Maybe try placing the above at the top of your script first, before hacking the gem... 也许尝试把上面的脚本首先顶部,黑客宝石之前...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.jruby.embed.EvalFailedException:(LoadError)没有要加载的文件 - org.jruby.embed.EvalFailedException: (LoadError) no such file to load JRuby / Warbler导致没有此类文件要加载— bundler / dep_proxy - JRuby / Warbler results in no such file to load — bundler/dep_proxy 使用JRuby从Java执行Ruby脚本会导致“ LoadError:没有要加载的此类文件……” - Executing a Ruby script from Java using JRuby results in 'LoadError: no such file to load …' Heroku-如何解决“无法加载此类文件-工头/ cli(LoadError)”的问题? -[Java,Windows,Ruby-on-rails] - Heroku - How to fix “cannot load such file — foreman/cli (LoadError)” ? - [Java, Windows, Ruby-on-rails] 如何设置CLASSPATH来加载相对于jar文件的资源? - How to setup the CLASSPATH to load resources relative to the jar file? 执行已编译的Rails Warbler JAR文件时出现LoadError - LoadError when executing compiled Rails Warbler JAR file Sinatra Jruby Heroku - jruby:没有这样的文件或目录 - trinidad(LoadError) - Sinatra Jruby Heroku - jruby: No such file or directory — trinidad (LoadError) 以编程方式设置.fxml文件 - Setup .fxml file programmatically 在Inno Setup中运行Java文件 - Run java file in inno setup 如何将文件作为参数传递给使用JAR Bundler创建的Java应用程序? - How do I pass a file as argument to my Java application created using JAR Bundler?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM