dbalatero / levenshtein-ffi

Fast string edit distance computation, using the Damerau-Levenshtein algorithm.
BSD 2-Clause "Simplified" License
149 stars 24 forks source link

Error on install for Windows #8

Open hathawayj opened 9 years ago

hathawayj commented 9 years ago

I cannot get this package to install on Windows 10. I am also a newbie to Ruby. Any help is appreciated. Does it have something to do with 64 and 32 bit?

c:\rubydev>gem install levenshtein-ffi Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing levenshtein-ffi: ERROR: Failed to build gem native extension.

C:/tools/ruby21/bin/ruby.exe extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" generating levenshtein-x64-mingw32.def compiling levenshtein.c linking shared-object levenshtein.so Cannot export Init_levenshtein: symbol not defined collect2.exe: error: ld returned 1 exit status make: *\ [levenshtein.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/levenshtein-ffi-1.1.0 for inspection. Results logged to C:/tools/ruby21/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/levenshtein-ffi-1.1.0/gem_make.out

WilliamSBunin commented 6 years ago

Did you ever figure out a way for this to work?