ISSUE: installing spl-token-cli

I am trying to install SPL token as explained in Solana Programming 10 > Creating and Minting Tokens
but I am facing this issue on terminal:

error**:** failed to compile spl-token-cli v4.1.1, intermediate artifacts can be found at /var/folders/40/tr3zfn414wx2lvsnt1zzrl_r0000gn/T/cargo-installLMv2iP.

To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Hi @Ngola

Can you confirm if you are following the official SPL token documentation for installing SPL token packages?
If yes can you please share the documentation url and your system os information.

I am following everything as the course. but I end up stucked on this issue.

thread β€˜main’ panicked at /Users/oficinadoras/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.11.9/src/lib.rs:1457:10:
Could not find protoc installation and this build crate cannot proceed without
this knowledge. If protoc is installed and this crate had trouble finding
it, you can set the PROTOC environment variable with the specific path to your
installed protoc binary.You could try running brew install protobuf or downloading it from https://github.com/protocolbuffers/protobuf/releases

Can you try running this command on your machine?

If you dont have brew installed on your machine you can install it as shown on their website https://brew.sh/

Yes, I already solved it. I didn’t have the Homebrew installed on the computer. It is done an I am going further in the course.