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

README:update install instructions for python's dyld setting #345

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ For example, `/opt/homebrew/Frameworks/Python.framework/Versions/3.12/lib/libpyt
export LLGO_LIB_PYTHON=/opt/homebrew/Frameworks/Python.framework/Versions/3.12/lib/python3.12
```

And in order for the dynamic linker to find Python correctly in other ways of installation (like Conda), you may need to set `DYLD_LIBRARY_PATH`.

For example, Python from Conda is usually installed in `/opt/anaconda3/envs/your_env_name`. So we need to set the location of its library to `DYLD_LIBRARY_PATH` like this:

```sh
export DYLD_LIBRARY_PATH=/opt/anaconda3/envs/your_env_name/lib:$DYLD_LIBRARY_PATH
```

Note that the file name must be written in a platform-independent format, using `python3.12` instead of `libpython3.12.dylib`.

Then you can run the demos:
Expand Down
Loading