-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.gem/ruby/2.3.0/gems/listen-3.0.3/lib/listen/adapter/linux.rb:30:in `require': cannot load such file -- rb-inotify (LoadError) #45
Comments
Thanks for filing this @GabLeRoux. I was unable to reproduce, but I'm using a mac rather than linux, so possibly that's the difference. Also my gem version is higher than yours:
Everything else is the same. Does upgrading |
Well I usually have a lot of problems installing gems using system $ ruby --version
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] $ gem --version
2.6.8 $ gem install github-markdown-preview
Building native extensions. This could take a while...
ERROR: Error installing github-markdown-preview:
ERROR: Failed to build gem native extension.
current directory: /home/gableroux/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/home/gableroux/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20170102-28261-1l5jhv7.rb extconf.rb
creating Makefile
current directory: /home/gableroux/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /home/gableroux/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function)
} else if (klass == rb_cBignum) {
^~~~~~~~~~
generator.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
make: *** [Makefile:242: generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/gableroux/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to /home/gableroux/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out Package can also be installed from the $ sudo aura -A ruby-github-markdown-preview
aura >>= Determining dependencies...
aura >>= Dependency checking failed for these reasons:
The dependency `ruby-github-markdown` could not be found. You may need to search for a package to satisfy it. At least, building it myself did work in the end. $ git clone git@github.com:dmarcotte/github-markdown-preview.git
$ cd github-markdown-preview
$ rbenv install 2.4.0
$ rbenv local 2.4.0
$ rbenv local
$ ruby --version
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
$ gem --version
2.6.8
$ bundle install
$ bundle exec bin/github-markdown-preview readme.md 🌮 🎉 Initial problem isn't really solved but it's ok for me, feel free to close this issue ;) |
Thanks @GabLeRoux. Glad you got sorted, though it's too bad you hit the bump in the first place. Thanks for your patience, and hope the previews serve you well. |
I had this problem too, using the Not a ruby guy, but it turns out this problem only occurs if there are multiple versions of rb-inotify installed (with my setup at least, and I was using debian:8, ubuntu:16.04, and the So following the instructions:
On a clean system has a chance of creating this issue. Since rb-inotify may have already been installed as a older version, and running However,
On a clean system will not. So while this can be solved on a "clean" system, I still don't know the solution on a normal system. |
@andyneff Did you try using I don't think I can help you much here, I just tried again with the above commands (#45 (comment)) on a new system with the above commands, I had some errors on Macos, see #46, but I managed to get it working again. It installed |
@GabLeRoux If |
Just installed the gem and having the following error:
https://github.com/guard/listen/blob/v3.0.8/lib/listen/adapter/linux.rb#L30
Points to:
https://github.com/nex3/rb-inotify
That's probably an issue with https://github.com/guard/listen though.
The text was updated successfully, but these errors were encountered: