The recommended way to use jlrs is to install Julia via official binaries. jlrs attempts to detect Julia automatically by running which julia (Linux/macOS) or where julia (Windows).
Manual Configuration via JLRS_JULIA_DIR
If automatic detection fails or you need to use a specific Julia installation, set the JLRS_JULIA_DIR environment variable to the root directory of your Julia installation (the directory containing the bin folder).
- Linux:
jlrs looks for headers at $JLRS_JULIA_DIR/include/julia/julia.h and the library at $JLRS_JULIA_DIR/lib/libjulia.so. - macOS: Uses the same paths as Linux.
- Windows:
jlrs looks for the executable via where julia. You can override this with JLRS_JULIA_DIR.
Library Search Path (Linux/macOS)
To ensure libjulia.so (Linux) or libjulia.dylib (macOS) can be loaded, you must add the Julia library directory to your system's library search path:
- Linux: Add
/path/to/julia-x.y.z/lib to LD_LIBRARY_PATH. - macOS: Add
/path/to/julia-x.y.z/lib to DYLD_LIBRARY_PATH.
Windows Setup
Ensure the Julia bin folder is added to your Path environment variable so that julia.exe is discoverable.