红宝石loaderror inotify [英] ruby loaderror inotify

查看:122
本文介绍了红宝石loaderror inotify的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从一台Linux机器上工作 - 当我键入require'inotify'时,从irb获得以下错误。



欣赏任何帮助/指针。

lockquote

irb(main):001: 0> require'inotify'
LoadError:没有这样的文件加载 - inotify
from:29:in require'
from< internal:lib / ruby​​gems / custom_require> 29:在
需要'
from(irb):1
from / usr / bin / irb:12:in''




  irb(main):002:0> Gem.path 
=> [/home/johnq/.gem/ruby/1.9.1,/usr/lib/ruby/gems/1.9.1]
irb(main):003:0>
johnq $ gem list

***本地GEMS ***

抽象(1.0.0)
actionmailer(3.1.1,3.0。 9)
actionpack(3.1.1,3.0.9)
activemodel(3.1.1,3.0.9)
activerecord(3.1.1,3.0.9)
activeresource( (3.1.1,3.0.9)
activesupport(3.1.1,3.0.9)
arel(2.2.1,2.0.10)
builder(3.0.0,2.1.2)
bundler(1.0.21,1.0.15)
cgi_multipart_eof_fix(2.5.0)
守护进程(1.1.4)
erubis(2.7.0,2.6.6)
fastthread(1.0.7)
ffi(1.0.10)
gem_plugin(0.2.3)
远足(1.2.1)
i18n(0.6.0,0.5。 0)
json(1.6.1)
mail(2.3.0,2.2.19)
mime-types(1.17.2,1.16)
minitest(2.7.0, 1.6.0)
multi_json(1.0.3)
mysql(2.8.1)
polyglot(0.3.2,0.3.1)
rack(1.3.5,1.2。 3)
rack-cache(1.1)
机架安装(0.8.3,0.6.14)
rack-ssl(1.3.2)
rack-test(0.6。 1,0.5.7)
rails(3.1.1,3.0.9)
railties(3.1.1,3.0.9)
rake(0.9.2.2,0.8.7)
rb-inotify(0.8.8)
rdoc(3.11,3.6.1,2.5.8)$ b $ (2.0.3)
thor(0.14.6)
tilt(1.3.3)
树梢(1.4.10,1.4.9)
tzinfo(0.3.30 ,0.3.28)
johnq $ irb
irb(main):001:0>需要'rb-inotify'
=> true

johnq $ gem remove rb-inotify
错误:执行gem时(RuntimeError)
未知命令删除
johnq $ man gem
没有手动输入宝石

johnq $ sudo gem卸载rb-inotify
密码:
成功卸载rb-inotify-0.8.8
johnq $ irb
irb(主):001:0>需要'inotify'
LoadError:不需要加载这样的文件 - 从< internal:lib / ruby​​gems / custom_require> inotify
:29:在'require'
from< internal:lib / ruby​​gems / custom_require> 29:在'require'$ b $ from(irb):1
from / usr / bin / irb:12:in< main>'
irb ):002:0>
johnq $ gem environment
RubyGems环境:
- RUBYGEMS版本:1.3.7
- RUBY VERSION:1.9.2(2011-07-09 patchlevel 290)[x86_64-linux ]
- 安装目录:/usr/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE:/ usr / bin / ruby​​
- 可执行目录:/ usr / bin
- RUBYGEMS平台:
- ruby​​
- x86_64-linux
- 创业板路径:
- /usr/lib/ruby/gems/1.9.1
- / home / johnq / .gem / ruby​​ / 1.9.1
- GEM配置:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- 远程来源:
- http://rubygems.org/


解决方案

Linux inotify有几个gem前端。请参阅 ruby​​gems.org 。你必须找出你的代码依赖哪一个。



ruby​​-inotify 似乎是个不错的选择。

I am working from a Linux machine - I get the following error from irb when I type require 'inotify'.

Appreciate any help/pointers.

irb(main):001:0> require 'inotify' LoadError: no such file to load -- inotify from :29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire' from (irb):1 from /usr/bin/irb:12:in `'

    irb(main):002:0> Gem.path
=> ["/home/johnq/.gem/ruby/1.9.1", "/usr/lib/ruby/gems/1.9.1"]
irb(main):003:0> 
johnq$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.1.1, 3.0.9)
actionpack (3.1.1, 3.0.9)
activemodel (3.1.1, 3.0.9)
activerecord (3.1.1, 3.0.9)
activeresource (3.1.1, 3.0.9)
activesupport (3.1.1, 3.0.9)
arel (2.2.1, 2.0.10)
builder (3.0.0, 2.1.2)
bundler (1.0.21, 1.0.15)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.4)
erubis (2.7.0, 2.6.6)
fastthread (1.0.7)
ffi (1.0.10)
gem_plugin (0.2.3)
hike (1.2.1)
i18n (0.6.0, 0.5.0)
json (1.6.1)
mail (2.3.0, 2.2.19)
mime-types (1.17.2, 1.16)
minitest (2.7.0, 1.6.0)
multi_json (1.0.3)
mysql (2.8.1)
polyglot (0.3.2, 0.3.1)
rack (1.3.5, 1.2.3)
rack-cache (1.1)
rack-mount (0.8.3, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.1.1, 3.0.9)
railties (3.1.1, 3.0.9)
rake (0.9.2.2, 0.8.7)
rb-inotify (0.8.8)
rdoc (3.11, 3.6.1, 2.5.8)
sprockets (2.0.3)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10, 1.4.9)
tzinfo (0.3.30, 0.3.28)
johnq$ irb
irb(main):001:0> require 'rb-inotify'
=> true

johnq$ gem remove rb-inotify
ERROR:  While executing gem ... (RuntimeError)
    Unknown command remove
johnq$ man gem
No manual entry for gem

johnq$ sudo gem uninstall rb-inotify
Password: 
Successfully uninstalled rb-inotify-0.8.8
johnq$ irb
irb(main):001:0> require 'inotify'
LoadError: no such file to load -- inotify
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):1
    from /usr/bin/irb:12:in `<main>'
irb(main):002:0> 
johnq$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.9.1
     - /home/johnq/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

解决方案

There are several gem front-ends for Linux inotify. See rubygems.org. You'll have to find out which one your code relies on.

ruby-inotify seems to be a good candidate.

这篇关于红宝石loaderror inotify的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆