rdp / google_hash

wrapper for google's hash functions, for ruby
BSD 3-Clause "New" or "Revised" License
92 stars 16 forks source link

can't install on ruby18 #12

Closed kostyasys closed 14 years ago

kostyasys commented 14 years ago
# gem install google_hash

Building native extensions.  This could take a while...
ERROR:  Error installing google_hash:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby18 extconf.rb
**\* extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby18
/usr/lib/ruby/gems/1.8/gems/sane-0.22.0/lib/sane/test.rb:2: undefined method `require_relative' for main:Object (NoMethodError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/sane-0.22.0/lib/sane.rb:9
        from /usr/lib/ruby/gems/1.8/gems/sane-0.22.0/lib/sane.rb:8:in`each'
        from /usr/lib/ruby/gems/1.8/gems/sane-0.22.0/lib/sane.rb:8
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
        from extconf.rb:4            
kostyasys commented 14 years ago

it was sane problem i have replaced require_relative by simple require and now all ok

rdp commented 14 years ago

interesting. It should work now...(newer sane version pushed)

kostyasys commented 14 years ago

why do you depend in sane just for gem installation ?

rdp commented 14 years ago

it makes it easier on me