-
Notifications
You must be signed in to change notification settings - Fork 449
Description
I want to alter the README to fix a problem in the Ubuntu install isntructions. The README installations instructions for Libpostal do not work on the Ubuntu Docker Hub image ubuntu:22.04
. There is
My country is
US of A!
Here's how I'm using libpostal
I used it for address parsing on billions of addresses on PySpark and to subsequently perform geospatial analyses to construct a business knowledge graph of 3 billion nodes and 2.2 billion edges. I've been an enthusiast ever since! Now I use it for entity resolution in general.
Here's what I did
I am building a Libpotal Dockerfile. I ran the ubuntu:22.04
image and tried the Libpostal install instructions:
# Start from a Jupyter Docker Stacks version
# FROM continuumio/anaconda3:2024.02-1
FROM ubuntu:22.04
# Install system dependencies
RUN apt update && \
apt upgrade -y && \
apt install curl build-essential autoconf automake libtool pkg-config gmake git -y && \
rm -rf /var/lib/apt/lists/*
# Install Libpostal - a C library for parsing/normalizing street addresses around the world
RUN git clone https://github.com/openvenues/libpostal.git && \
cd libpostal && \
./bootstrap.sh && \
./configure --datadir=/tmp --disable-sse2 MODEL=senzing && \
make -j12 && \
make install && \
ldconfig
Here's what I got
First there is an exception because git
is not installed.
Next there is a build error because make is not found. I searched and it isn't in the image.
7.594 /bin/sh: 1: make: not found
Here's what I was expecting
- I expect to be able to clone git from the build instructions for Ubuntu.
- I expect make to build Libpostal :) I tried the
--disable-dependency-tracking
option it suggested and it still doesn't work.
Here's what I think could be improved
I am going to patch the README in a PR to fix these problems.