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

Build/install on Mac OSX with NO sudo access #621

Open
Six0Six0 opened this issue Mar 25, 2023 · 1 comment
Open

Build/install on Mac OSX with NO sudo access #621

Six0Six0 opened this issue Mar 25, 2023 · 1 comment

Comments

@Six0Six0
Copy link

Hi!

Two questions:

  1. Is there a way to make install and specify a target directory for libpostal installation? I don't have sudo access on the Mac.
  2. Can I create a python package and pip install it using above target directory?
@2e0byo
Copy link

2e0byo commented Aug 22, 2023

Re. 2: the python package just needs to be able to find the library. If ldconfig -p | grep -i postal shows the library, you're good. You might be able to get away with just doing export LD_LIBRARY_PATH:/path/to/built/libpostal:$LD_LIBRARYPATH and skipping the install entirely.

Note that if you don't modify your LD_LIBRARY_PATH (or whatever else mac might call it) persistently, you'll have to set that env var every time you want to use the python library.

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