I am trying to follow this tutorial which helps serve a catboost model using rust. The installation of the catboost package is proving to be a challenge here.
I have tried doing
cargo install --git "https://github.com/catboost/catboost"
which threw an error saying there are multiple packages namely catboost_rust_prediction_tutorial
, catboost-sys
and catboost
and that I should use
cargo install --git "https://github.com/catboost/catboost" <package_name>
So I installed catboost
and catboost-sys
using the above command. However when I try to build the rust crate with the tutorial code, I get an error
error: failed to run custom build command for `catboost-sys v0.1.0 (https://github.com/catboost/catboost#8ae16dec)`
Caused by:
process didn't exit successfully: `/Users/name/Desktop/catboost-prediction-api/target/debug/build/catboost-sys-8842a384b00a8c82/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /Users/name/.cargo/git/checkouts/catboost-113273d315325944/8ae16de/catboost/rust-package/catboost-sys/build.rs:34:13:
Failed to run build_native.py : Permission denied (os error 13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
How can I install and run this package? Can someone help me here?
I am using a M2 Mac, if that is relevant information here