soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

can't install v20.3.4 on Sonoma 14.4.1

Open aristidesstaffieri opened this issue 10 months ago • 5 comments

What version are you using?

20.3.4

What did you do?

cargo install --locked soroban-cli --features opt

What did you expect to see?

successful install

What did you see instead?

failed to run custom build command for `openssl-sys v0.9.90

... truncated ...

  --- stderr
  make: *** read jobs pipe: Resource temporarily unavailable.  Stop.
  make: *** Waiting for unfinished jobs....
  thread 'main' panicked at /Users/aristidesstaffieri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-111.28.1+1.1.1w/src/lib.rs:506:13:



  Error building OpenSSL:
      Command: cd "/var/folders/wp/0dgpg2yx2c7cz5nrvlw6j6sc0000gn/T/cargo-installukLigy/release/build/openssl-sys-f839c01b257f2bbc/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=12,15 --jobserver-auth=12,15" "make" "build_libs"
      Exit status: exit status: 2

OpenSSL for me installed with homebrew and is at the homebrew path but another user has hit this with an openSSL install at the system path also. Related Discord thread - https://discord.com/channels/897514728459468821/1234885504017895476

aristidesstaffieri avatar May 01 '24 17:05 aristidesstaffieri

You can install cargo-binstall and then install using a pre-built binary: To install cargo-binstall

curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall -y soroban-cli

Much faster and better for CI.

willemneal avatar May 01 '24 19:05 willemneal

You can install cargo-binstall and then install using a pre-built binary: To install cargo-binstall

curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall -y soroban-cli

Much faster and better for CI.

Thanks!

aristidesstaffieri avatar May 02 '24 14:05 aristidesstaffieri

thanks @willemneal that worked for me as well

that comes without opt however and you cannot use it to deploy to testnet for example

gangov avatar May 07 '24 11:05 gangov

@gangov You're correct it won't be the most current release, but opt should be included when the release binaries are built! I'll look into that.

willemneal avatar May 07 '24 13:05 willemneal

thanks for looking into it. This is the message I get at the end when I try to deploy with the soroban cli:

soroban contract optimize --wasm soroban_token_contract.wasm
error: Must install with "opt" feature, e.g. `cargo install --locked soroban-cli --features opt

gangov avatar May 07 '24 13:05 gangov

You need to install the cli with --feature opt. Closing this bug.

janewang avatar Jun 28 '24 16:06 janewang