Installation
Currently, Conjure Oxide is installed either by building from source or by downloading a nightly release.
Building From Source
Dependencies
The following dependencies are required to build and use Conjure Oxide:
- Conjure including solvers.
- Conjure is currently required for some components of Conjure Oxide. This is something that will change in the future as Conjure Oxide becomes more independent.
- Ensure that Conjure is placed early in your PATH to avoid conflicts with ImageMagick’s
conjurecommand!
- Clang and libclang.
- CMake.
- Rust installed using rustup.
Building
- Clone the repository:
git clone https://github.com/conjure-cp/conjure-oxide.git cd conjure-oxide - Run the install command to install
conjure-oxide(this may take some time):cargo install --path crates/conjure-cp-cli - Verify
conjure-oxideis installed and working by running a command:conjure-oxide --help
Downloading a Nightly Release
- Download the appropriate archive from the latest nightly release.
- Make sure you choose the correct archive for your system. Conjure Oxide currently supports ARM-based macOS (
aarch64-darwin) and x86-based Linux (x86_64-linux-gnu). - Make sure you choose the correct archive containing the dependencies you need:
- If you do not have Conjure or solvers on your system, download the archive for your system ending with
with-solvers. - If you have the solvers on your system but not Conjure, download the archive for your system ending with
with-conjure. - If you have both Conjure and the solvers on your system, download the archive for your system ending with
standalone.
- If you do not have Conjure or solvers on your system, download the archive for your system ending with
- Make sure you choose the correct archive for your system. Conjure Oxide currently supports ARM-based macOS (
- Extract the archive using your preferred method.
- Open a terminal in the extracted directory and run a test command:
./conjure-oxide --help
- If you are on macOS, you may run into a problem with binaries being blocked from running. If this is the case, run the following command in the extracted directory:
xattr -dr com.apple.quarantine . - If you would like these commands to be available everywhere on your system, copy the binaries into a directory which is in your PATH.
Troubleshooting
Unknown command: conjure-oxide
Check the path at which cargo install places binaries (see cargo-install(1)) and ensure it’s in your PATH environment variable. You may need to restart your shell for it to pick up these changes.
ImageMagick Conflicts
If the conjure command that is part of ImageMagick conflicts with your Conjure installation, ensure that the directory containing Conjure binaries is earlier in your PATH than the directory containing ImageMagick binaries.
macOS Quarantine
If you are running into problems on macOS, make sure you remove the quarantine attribute from all pre-built binaries using the following command in their containing directory:
xattr -dr com.apple.quarantine .