ewbankkit/rust-amazonlinux

Need to install C/C++ compiler tool chain into Amazon Linux 2 builder image

ewbankkit opened this issue · 0 comments

$ cargo build --release
    Updating crates.io index
...
  Downloaded 243 crates (22.6 MB) in 2.24s (largest was `ring` at 5.3 MB)
   Compiling libc v0.2.74
   Compiling proc-macro2 v1.0.19
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

error: build failed