dock-substrate icon indicating copy to clipboard operation
dock-substrate copied to clipboard

Runing this commd `cargo build --release`

Open sagarjethi opened this issue 4 years ago • 2 comments

when running this command cargo build --release give the following error

error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `libc`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: aborting due to previous error

sagarjethi avatar Sep 13 '20 19:09 sagarjethi

if we are using a new server then you have to use the following command before cargo build --release it resolves error

sudo apt install build-essential

sudo apt install make clang pkg-config libssl-dev

sagarjethi avatar Sep 13 '20 19:09 sagarjethi

A PR with instructions in Readme is much appreciated. You can link to specific sections of this doc as well.

lovesh avatar Sep 14 '20 10:09 lovesh