Skip to content

Instantly share code, notes, and snippets.

@filipwodnicki
Created June 10, 2019 18:30
Show Gist options
  • Save filipwodnicki/dfde5a0fde56f3467863fa8bec8d8783 to your computer and use it in GitHub Desktop.
Save filipwodnicki/dfde5a0fde56f3467863fa8bec8d8783 to your computer and use it in GitHub Desktop.
install libpostal mac
# install libpostal v1.1-alpha. Environment: MacOS 10.14 Python 3.6
# libpostal library instructions didn't work for me, got error:
# ERR Error loading transliteration module, dir=(null) at libpostal_setup_datadir (libpostal.c:266) errno: No such file or directory
# Here is a workaround:
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=$(pwd)/my_data_dir --disable_data_download
./src/libpostal_data download all $(pwd)/my_data_dir
make -j4
sudo make install
# references:
# https://github.com/openvenues/libpostal
# https://github.com/openvenues/libpostal/issues/365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment