kei500 / liblinear-ruby

MIT License
83 stars 8 forks source link

Error using gem on Windows #9

Open justjoehere opened 7 years ago

justjoehere commented 7 years ago

I have liblinear installed and accessible via the path. SWIG.exe is also accessible via the path.

I installed the gem via gem install 'liblinear-ruby' and did not have any errors.

Then in my file, I have require 'liblinear'

This resulted in the following error message: 2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire': 193: %1 is not a valid Win32 application. - C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/liblinear-ruby-1.0.2/liblinearswig.so (LoadError)`

I did verify that liblinearswig.so existed in the directory listed. It seems to fail to find the require 'liblinearswig' in C:\RailsInstaller\Ruby2.2.0\lib\ruby\gems\2.2.0\gems\liblinear-ruby-1.0.2\lib\liblinear.rb

Any help would be appreciated