postmodern / ffi-hunspell

Ruby FFI bindings for Hunspell.
MIT License
48 stars 24 forks source link

ffi-hunspell on Windows #28

Open jfaset opened 3 years ago

jfaset commented 3 years ago

Hello,

On Windows,

gem install ffi-hunspell ... gem install ffi --platform=ruby ... gem install ffi-hunspell

Successfully installed ffi-1.13.1-x64-mingw32

Successfully installed ffi-hunspell-0.5.0

require 'ffi/hunspell'

--> C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- ffi/hunspell (LoadError)

...

i_lib': Could not open library 'hunspell-1.7': Le module sp�cifi� est introuvable.\r (LoadError) . Could not open library 'hunspell-1.7.dll': Le module sp�cifi� est introuvable.\r . Could not open library 'libhunspell-1.7.so.0': Le module sp�cifi� est introuvable.\r . Could not open library 'libhunspell-1.7.so.0.dll': Le module sp�cifi� est introuvable.\r . Could not open library 'hunspell-1.6': Le module sp�cifi� est introuvable.\r

....

Could not open library 'libhunspell-1.2.so.0.dll': Le module sp�cifi� est introuvable.\r

===============

Shall I Give up ?

postmodern commented 3 years ago

Did you also install the hunspell DLL?

jfaset commented 3 years ago

Thank you very much for your answer.

I tried to add hunspellx64 from https://www.trichview.com/help-actions/hunspell.htm to C:\Ruby27-x64\lib\ruby\gems\2.7.0\gems\ffi-hunspell-0.5.0 and C:\Windows\SysWOW64. With the same error C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ffi-1.13.1-x64-mingw32/lib/ffi/library.rb:145:in `block in ffi_lib'

I give up. Perhaps I shall try again, one day, with Python. Thanks again.

Le sam. 28 nov. 2020 à 08:40, Postmodern notifications@github.com a écrit :

Did you also install the hunspell DLL?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/postmodern/ffi-hunspell/issues/28#issuecomment-735051745, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACN2DT6YXG4ZK3R7ECCAVILSSCSQBANCNFSM4UFH5X4A .

postmodern commented 3 years ago

I don't have much experience running Ruby on Windows. You might consider trying Windows Linux SubSystem (WLS) or running in a Linux VM with VMWare Player.

jfaset commented 3 years ago

Thank you for your help.

Le sam. 28 nov. 2020 à 17:51, Postmodern notifications@github.com a écrit :

I don't have much experience running Ruby on Windows. You might consider trying Windows Linux SubSystem (WLS) or running in a Linux VM with VMWare Player.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/postmodern/ffi-hunspell/issues/28#issuecomment-735255187, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACN2DT24U5UYE633TTWLQMLSSETCZANCNFSM4UFH5X4A .