Warbler - 没有这样的文件来加载错误

发布于 2024-10-12 21:06:25 字数 3238 浏览 4 评论 0原文

我按照此处的指南将Redmine安装到Tomcat,但我正在运行运行 Warbler 时遇到问题。当我尝试运行时,

ruby /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble config

出现此错误,

/var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:10:in `require': no such file to load -- warbler (LoadError) 
from /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:10

我四处搜索,发现这是由于不需要 ruby​​gems 引起的。当我尝试修复此问题并运行时,

ruby -rubygems /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble config

我现在遇到此错误

warble aborted!
no such file to load -- /var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack-1.0.5.jar
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

当我使用 --trace 运行最后一个命令时,我得到此

warble aborted!
no such file to load -- /var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack-1.0.5.jar
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack.rb:6
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/config.rb:254:in `default_jar_files'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/config.rb:140:in `initialize'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/task.rb:47:in `new'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/task.rb:47:in `initialize'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:25:in `new'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:25:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:68:in `run'
/var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:11

文件 /var/lib/gems/1.8/gems/jruby-rack-1.0.5 /lib/jruby-rack-1.0.5.jar 存在,所以我不确定为什么它会遇到问题。

这是 gem list 的输出,以防万一它有用。

abstract (1.0.0)
actionmailer (3.0.3, 2.3.5)
actionpack (3.0.3, 2.3.5)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.5)
activerecord-jdbc-adapter (1.1.1)
activerecord-jdbcmysql-adapter (1.1.1)
activeresource (3.0.3, 2.3.5)
activesupport (3.0.3, 2.3.5)
arel (2.0.7)
bouncy-castle-java (1.5.0145.2)
builder (3.0.0, 2.1.2)
bundler (1.0.7)
cgi_multipart_eof_fix (2.5.0)
daemon_controller (0.2.5)
daemons (1.1.0)
erubis (2.6.6)
fastthread (1.0.7)
file-tail (1.0.5)
gdata (1.1.1)
gem_plugin (0.2.3)
gruff (0.3.6)
i18n (0.5.0, 0.4.2)
jdbc-mysql (5.1.13)
jruby-jars (1.5.6)
jruby-openssl (0.7.2)
jruby-rack (1.0.5)
mail (2.2.14)
mime-types (1.16)
mongrel (1.1.5)
mysql (2.8.1)
passenger (3.0.2)
polyglot (0.3.1)
rack (1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.3, 2.3.5)
railties (3.0.3)
rake (0.8.7)
rmagick (2.13.1)
rubyzip (0.9.4)
spruz (0.2.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.24)
warbler (1.2.1)

I am following the guide located here to install Redmine to Tomcat, but I am running into problems running Warbler. When I try running

ruby /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble config

I get this error

/var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:10:in `require': no such file to load -- warbler (LoadError) 
from /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:10

I searched around and found that this is caused by not requiring rubygems. When I try to fix this and run

ruby -rubygems /var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble config

I now run into this error

warble aborted!
no such file to load -- /var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack-1.0.5.jar
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'

When I run the last command with --trace I get this

warble aborted!
no such file to load -- /var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack-1.0.5.jar
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack.rb:6
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/config.rb:254:in `default_jar_files'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/config.rb:140:in `initialize'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/task.rb:47:in `new'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/task.rb:47:in `initialize'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:25:in `new'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:25:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/var/lib/gems/1.8/gems/warbler-1.2.1/lib/warbler/application.rb:68:in `run'
/var/lib/gems/1.8/gems/warbler-1.2.1/bin/warble:11

The file /var/lib/gems/1.8/gems/jruby-rack-1.0.5/lib/jruby-rack-1.0.5.jar exists, so I'm not sure why it is running into problems.

Here is the output of gem list, just in case it is useful.

abstract (1.0.0)
actionmailer (3.0.3, 2.3.5)
actionpack (3.0.3, 2.3.5)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.5)
activerecord-jdbc-adapter (1.1.1)
activerecord-jdbcmysql-adapter (1.1.1)
activeresource (3.0.3, 2.3.5)
activesupport (3.0.3, 2.3.5)
arel (2.0.7)
bouncy-castle-java (1.5.0145.2)
builder (3.0.0, 2.1.2)
bundler (1.0.7)
cgi_multipart_eof_fix (2.5.0)
daemon_controller (0.2.5)
daemons (1.1.0)
erubis (2.6.6)
fastthread (1.0.7)
file-tail (1.0.5)
gdata (1.1.1)
gem_plugin (0.2.3)
gruff (0.3.6)
i18n (0.5.0, 0.4.2)
jdbc-mysql (5.1.13)
jruby-jars (1.5.6)
jruby-openssl (0.7.2)
jruby-rack (1.0.5)
mail (2.2.14)
mime-types (1.16)
mongrel (1.1.5)
mysql (2.8.1)
passenger (3.0.2)
polyglot (0.3.1)
rack (1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.3, 2.3.5)
railties (3.0.3)
rake (0.8.7)
rmagick (2.13.1)
rubyzip (0.9.4)
spruz (0.2.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.24)
warbler (1.2.1)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一场春暖 2024-10-19 21:06:25

一种临时解决方案是使用旧版本的 jruby-rack:

gem uninstall jruby-rack

如果删除此 gem,将无法满足一个或多个依赖项。
继续卸载吗? [Yn]

类型 Y

gem install jruby-rack -v 1.0.3

A temporary solution is to use an older version of jruby-rack:

gem uninstall jruby-rack

If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]

Type Y

gem install jruby-rack -v 1.0.3

望她远 2024-10-19 21:06:25

或者只是使用

gem install jruby-rack --pre

并在 Gemfile 中设置

gem 'jruby-rack', '~> 1.0.6.beta'

Or just use

gem install jruby-rack --pre

and set in your Gemfile

gem 'jruby-rack', '~> 1.0.6.beta'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文