Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Software Dependencies #1433

Closed
username-mike opened this issue Jan 1, 2024 · 2 comments
Closed

Installing Software Dependencies #1433

username-mike opened this issue Jan 1, 2024 · 2 comments

Comments

@username-mike
Copy link

username-mike commented Jan 1, 2024

We currently use pypostal to parse addresses within our crawlers (https://github.com/openvenues/pypostal). This software requires some C code to be installed. After installed the pre-requisites, the libpostal software needs the C libraries to be installed and set up. Is this something that can be set up to run in the Crawlab container (see the relevant section below). One other option I'm considering is running another container on my Ubuntu server with the libpostal API (https://github.com/johnlonganecker/libpostal-rest-docker), but I'm not sure if Crawlab would have access to the localhost API on my Ubuntu server. Let me know what you think would be a workable solution.

git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=[...some dir with a few GB of space...]
make
sudo make install
On Linux it's probably a good idea to run
sudo ldconfig

@tikazyq
Copy link
Collaborator

tikazyq commented Jan 3, 2024

Hi, you can actually enter the Docker container to manually install the required library.

docker exec -it <container_name> bash

# commands to install the library
...

@username-mike
Copy link
Author

This worked beautifully. Thanks for your help with this item!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants