openvenues / ruby_postal

Ruby bindings to libpostal for fast international address parsing/normalization
MIT License
141 stars 12 forks source link

Still Working? #13

Open sergimartnez opened 6 years ago

sergimartnez commented 6 years ago

gem install ruby_postal -v '1.0.0' Building native extensions. This could take a while... ERROR: Error installing ruby_postal: ERROR: Failed to build gem native extension.

current directory: /Users/Sergio/.rvm/gems/ruby-2.3.0/gems/ruby_postal-1.0.0/ext/expand

/Users/Sergio/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20180607-4024-1yofs34.rb extconf.rb creating Makefile

current directory: /Users/Sergio/.rvm/gems/ruby-2.3.0/gems/ruby_postal-1.0.0/ext/expand make "DESTDIR=" clean

current directory: /Users/Sergio/.rvm/gems/ruby-2.3.0/gems/ruby_postal-1.0.0/ext/expand make "DESTDIR=" compiling expand.c expand.c:1:10: fatal error: 'libpostal/libpostal.h' file not found

include <libpostal/libpostal.h>

     ^

1 error generated. make: *** [expand.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/Sergio/.rvm/gems/ruby-2.3.0/gems/ruby_postal-1.0.0 for inspection. Results logged to /Users/Sergio/.rvm/gems/ruby-2.3.0/extensions/x86_64-darwin-15/2.3.0/ruby_postal-1.0.0/gem_make.out

jesseclark commented 6 years ago

Did you install the libpostal C library first? https://github.com/openvenues/libpostal

opensourceame commented 5 years ago

I had this issue, I forgot to run make install after compiling libpostal. Hope this helps someone else.