huydx / facy

command line power tool for facebook
MIT License
239 stars 30 forks source link

Cannot load rmagick gem #22

Closed yuvadm closed 10 years ago

yuvadm commented 10 years ago

Installed the usual way (no errors), all gems installed successfully to local ~/.gem then:

$ facy

  _/ ____\____    ____ ___.__.
  \   __\__  \ _/ ___<   |  |
   |  |   / __ \  \___\___  |
    |__|  (____  /\___  > ____|
                \/     \/\/  
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- rmagick (LoadError)
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /home/yuval/.gem/ruby/2.1.0/gems/facy-1.2.9/lib/facy.rb:12:in `block in <top (required)>'
    from /home/yuval/.gem/ruby/2.1.0/gems/facy-1.2.9/lib/facy.rb:12:in `each'
    from /home/yuval/.gem/ruby/2.1.0/gems/facy-1.2.9/lib/facy.rb:12:in `<top (required)>'
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /home/yuval/.gem/ruby/2.1.0/gems/facy-1.2.9/bin/facy:13:in `<top (required)>'
    from /home/yuval/.gem/ruby/2.1.0/bin/facy:23:in `load'
    from /home/yuval/.gem/ruby/2.1.0/bin/facy:23:in `<main>'

Also:

$ ruby -v -rrmagick -e 'puts Magick::Version, Magick::Magick_version'
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rmagick (LoadError)
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
$ pacman -Q imagemagick
imagemagick 6.8.9.6-1

This is a fully updated Arch Linux system, all gems have also been updated as well.

bietiekay commented 10 years ago

got the same problem on debian wheezy

dstapp commented 10 years ago

Same Problem with OS X 10.9 & Ruby 2.0.0-p353 installed via RVM.

yuvadm commented 10 years ago

I found some vague mentions of rmagick being unmaintained. Perhaps anotther imagemagick binding library is needed, though I'm really unfamiliar with the ruby ecosystem.

zookee1 commented 10 years ago

same problem on ubuntu 12.04. I tried different stuff like "gem uninstall rmagick" => "apt-get install librmagick-ruby", but nothing seems to work. :(

huydx commented 10 years ago

Hi guy, thank you for the report. Rmagick is quite hard to install in variate of systems. @yuvadm it apparently that you're using imagemagick 6.8.9, can you show me your version of rmagick

gem list | grep rmagick

if it exist, can you try

ruby -e "require 'rmagick'"

and see that if any errors.

Imagemagick is only used for view image purpose, which is quite useless in my opinion In the next release I will make imagemagick require optional.

yuvadm commented 10 years ago

@huydx -

$ gem list | grep rmagick
rmagick (2.13.3)
$ ruby -e "require 'rmagick'"
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rmagick (LoadError)
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'
huydx commented 10 years ago

@yuvadm what about ruby -e "require 'RMagick'" with capital

yuvadm commented 10 years ago

@huydx yep that works

dstapp commented 10 years ago
AP-dprandzioch:~:%  ruby -e "require 'rmagick'"
/Users/dprandzioch/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rmagick (LoadError)
    from /Users/dprandzioch/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'

AP-dprandzioch:~:%  ruby -e "require 'RMagick'"

. Seems to be an issue related to case sensitivity in the operating system. Anyway, "RMagick" should work for all OSes?!

huydx commented 10 years ago

@yuvadm @dprandzioch yay that's the point. I will fix it in the next release, please hang on guys :+1:

yuvadm commented 10 years ago

@huydx awesome mate, thanks.

dstapp commented 10 years ago

@huydx perfect! looking forward to use your tool ;-)

huydx commented 10 years ago

@yuvadm @dprandzioch I've fixed that in beta version. Can you guys try this version

gem install facy -v 1.2.10.rc1 --pre

and take a look

yuvadm commented 10 years ago

@huydx yep, that seems to work

huydx commented 10 years ago

@yuvadm great, so I've just released the official version 1.2.10