Skip to content
Open
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
6 changes: 3 additions & 3 deletions docs/guides/install-c-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ export LD_LIBRARY_PATH=/path/to/dist/c/lib:$LD_LIBRARY_PATH
```
On MacOS:
```bash
export DYLD_LIBRARY_PATH=/path/to/dist/c/lib:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=/path/to/dist/c/lib:/path/to/python/lib:$DYLD_LIBRARY_PATH
```
Alternatively, you can set the runtime library path during compilation by adding
```
-Wl,-rpath,/path/to/dist/c/lib
-Wl,-rpath,/path/to/dist/c/lib -Wl,-rpath,/path/to/python/lib
```
to the compiler flags.
to the compiler flags. This ensures your program can find both the Qiskit library and the required Python libraries (such as libpython3.xx.dylib).

Now you can execute the binary:
```bash
Expand Down