liblinear-ruby-swig icon indicating copy to clipboard operation
liblinear-ruby-swig copied to clipboard

32-bit architecture problem?

Open hohyon-ryu opened this issue 13 years ago • 1 comments

Hi,

I could get liblinear run very well on 64-bit Ubuntu 11.04, but I cannot get it to work on 32-bit Ubuntu 10.10 (Amazon EC-2 small). I got the following error:

./liblinear.so: ./liblinear.so: wrong ELF class: ELFCLASS64 - ./liblinear.so (LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
    from ./linear.rb:1
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'

How can I get it to work on a 32-bit processor?

Thank you!

hohyon-ryu avatar Jun 16 '11 21:06 hohyon-ryu

I don't have access to a 32bit machine, you can take a look at the Makefile at https://github.com/tomz/liblinear-ruby-swig/blob/master/ext/Makefile and search for '64'

tomz avatar Jun 20 '11 21:06 tomz