You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried following this tutorial but encountered an issue with the script for installing the Bonsol CLI.
The first problem was that the command cargo risczero install failed. After referring to the documentation here and changing the command to cargo risczero build-toolchain, the installation succeeded.
However, I was unable to resolve the second issue related to the command cargo install bonsol-cli --git https://github.com/anagrambuild/bonsol --features mac. The error messages are as follows:
Compiling walkdir v2.5.0
Compiling solana-rpc-client-api v1.18.22
Compiling prost-derive v0.12.6
Compiling solana-streamer v1.18.22
error: failed to run custom build command for `bonsol-schema v0.2.1 (/Users/jason/.cargo/git/checkouts/bonsol-8f7fbd4eaf931c69/5832e47/schemas-rust)`
Caused by:
process didn't exit successfully: `/var/folders/fw/81r2124972j2gfx2kywkzhnm0000gn/T/cargo-install1IyfQA/release/build/bonsol-schema-c67d8504dd0191b0/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at schemas-rust/build.rs:46:10:
Failed to execute flatc command: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bonsol-cli v0.2.1 (https://github.com/anagrambuild/bonsol#5832e476)`, intermediate artifacts can be found at `/var/folders/fw/81r2124972j2gfx2kywkzhnm0000gn/T/cargo-install1IyfQA`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Did I miss something before running this command?
The text was updated successfully, but these errors were encountered:
june-in-exile
changed the title
The commnad for "Install Bonsol CLI, Risc0 Toolchain" does not work for x86_64-apple-darwin.
The command for "Install Bonsol CLI, Risc0 Toolchain" does not work for x86_64-apple-darwin.
Dec 8, 2024
Sorry to hear you're running into this issue. The problem is that recently the flatbuffers generated code was removed from the repository in favor of using a build.rs which checks if there are changes to the generated code and calls into flatc to generate it if so. To fix this issue you'll need to install flatbuffers so that the builder generates the rust bindings.
I've been working for a while on a solution for developers on the bonsol repository so that the only requirement of the user is nix, however that is currently only supported on x86_64-linux systems, but I plan on expanding it to support both x86 and aarch64 linux and darwin systems eventually 🙂
I tried following this tutorial but encountered an issue with the script for installing the Bonsol CLI.
The first problem was that the command
cargo risczero install
failed. After referring to the documentation here and changing the command tocargo risczero build-toolchain
, the installation succeeded.However, I was unable to resolve the second issue related to the command
cargo install bonsol-cli --git https://github.com/anagrambuild/bonsol --features mac
. The error messages are as follows:Did I miss something before running this command?
The text was updated successfully, but these errors were encountered: