Closed esteblock closed 1 year ago
When trying:
cd docker
bash build.sh
I get this error while installing soroban-cli
> [ 9/11] RUN cargo install --locked --version 0.6.0 soroban-cli:
#12 0.473 Updating crates.io index
#12 160.1 Downloading crates ...
#12 161.1 Downloaded soroban-cli v0.6.0
#12 161.3 Installing soroban-cli v0.6.0
.
.
.
.
.#12 175.6 Compiling serde v1.0.152
#12 175.8 Compiling serde_derive v1.0.152
#12 176.0 error: linker `cc` not found
#12 176.0 |
#12 176.0 = note: No such file or directory (os error 2)
#12 176.0
#12 176.0 error: could not compile `quote` due to previous error
#12 176.0 warning: build failed, waiting for other jobs to finish...
#12 176.1 error: could not compile `syn` due to previous error
#12 176.1 error: could not compile `libc` due to previous error
#12 176.1 error: could not compile `proc-macro2` due to previous error
#12 176.3 error: could not compile `serde_derive` due to previous error
#12 176.3 error: could not compile `serde` due to previous error
#12 176.3 error: failed to compile `soroban-cli v0.6.0`, intermediate artifacts can be found at `/tmp/cargo-installHGvkgm`
------
process "/bin/sh -c cargo install --locked --version 0.6.0 soroban-cli" did not complete successfully: exit code: 101
When trying:
cd docker bash build.sh
I get this error while installing soroban-cli
> [ 9/11] RUN cargo install --locked --version 0.6.0 soroban-cli: #12 0.473 Updating crates.io index #12 160.1 Downloading crates ... #12 161.1 Downloaded soroban-cli v0.6.0 #12 161.3 Installing soroban-cli v0.6.0 . . . . .#12 175.6 Compiling serde v1.0.152 #12 175.8 Compiling serde_derive v1.0.152 #12 176.0 error: linker `cc` not found #12 176.0 | #12 176.0 = note: No such file or directory (os error 2) #12 176.0 #12 176.0 error: could not compile `quote` due to previous error #12 176.0 warning: build failed, waiting for other jobs to finish... #12 176.1 error: could not compile `syn` due to previous error #12 176.1 error: could not compile `libc` due to previous error #12 176.1 error: could not compile `proc-macro2` due to previous error #12 176.3 error: could not compile `serde_derive` due to previous error #12 176.3 error: could not compile `serde` due to previous error #12 176.3 error: failed to compile `soroban-cli v0.6.0`, intermediate artifacts can be found at `/tmp/cargo-installHGvkgm` ------ process "/bin/sh -c cargo install --locked --version 0.6.0 soroban-cli" did not complete successfully: exit code: 101
Solved by installing build-essential
Docker compose might not be really needed. Until now is ok enough. However I'm not able to try it all due to #89
Ready for review! Thanks!
Fixes #89
As introduced in https://github.com/stellar/soroban-example-dapp/issues/89, this PR (draft) introduces the creation of a Docker image with all the necessary dependencies (depending on the current release https://soroban.stellar.org/docs/reference/releases)
Tasks: