【问题标题】:Bundle: `require': cannot load such file -- thread/pool (LoadError)Bundle: `require': 无法加载这样的文件 -- 线程/池 (LoadError)
【发布时间】:2017-01-11 10:23:30
【问题描述】:

我在尝试运行此名为 CiscoBruter (https://github.com/R3dy/ciscobruter/) 的代码时遇到问题,我收到这些错误。

/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- thread/pool (LoadError)
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./ciscobruter.rb:6:in `<main>'

运行“捆绑安装”时,这是代码

  Fetching git://github.com/meh/ruby-thread.git
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using hitimes 1.2.4
Using coderay 1.1.1
Using method_source 0.8.2
Using slop 3.6.0
Using ruby-progressbar 1.8.1
Using thread 0.2.2 from git://github.com/meh/ruby-thread.git (at master@d0e99c2)
Using bundler 1.12.5
Using timers 4.1.1
Using pry 0.10.4
Using celluloid-essentials 0.20.5
Using celluloid-extras 0.20.5
Using celluloid-fsm 0.20.5
Using celluloid-pool 0.20.5
Using celluloid-supervision 0.20.6
Using celluloid 0.17.3
Bundle complete! 4 Gemfile dependencies, 15 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
root@HaroonB-HomeUbuntu:/var/www/DisHack/ciscobruter# bundle sho
Gems included by the bundle:
  * bundler (1.12.5)
  * celluloid (0.17.3)
  * celluloid-essentials (0.20.5)
  * celluloid-extras (0.20.5)
  * celluloid-fsm (0.20.5)
  * celluloid-pool (0.20.5)
  * celluloid-supervision (0.20.6)
  * coderay (1.1.1)
  * hitimes (1.2.4)
  * method_source (0.8.2)
  * pry (0.10.4)
  * ruby-progressbar (1.8.1)
  * slop (3.6.0)
  * thread (0.2.2 d0e99c2)
  * timers (4.1.1)

请有人帮助我并解释我做错了什么?

提前致谢

【问题讨论】:

  • thread/pool 肯定存在这里 github.com/meh/ruby-thread/blob/master/lib/thread/pool.rb 并且您已经安装了线程 gem。请注意,该 gem 并未针对 Ruby 2.3 进行测试,因此它可能不兼容。
  • 非常感谢马特!我安装了它,它可以正常工作。 :)
  • 你安装了什么?
  • 我做了“gem install thread”,然后是“gem install pool”。它奏效了。
  • 对,但是您已经使用捆绑程序安装了它们。这是打包程序错误吗?

标签: ruby git rubygems bundler


【解决方案1】:

已修复!通过运行这些命令

gem install thread

gem install pool

【讨论】:

    猜你喜欢
    • 2015-03-25
    • 1970-01-01
    • 1970-01-01
    • 2023-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-01
    相关资源
    最近更新 更多