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

Error using gem on Windows

Open justjoehere opened this issue 8 years ago • 0 comments

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:in require': 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

justjoehere avatar Aug 17 '17 19:08 justjoehere