Skip to content

Error using gem on Windows #9

@justjoehere

Description

@justjoehere

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions