configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'.
You could use
uname -m to get the architecure. For my case,
$ uname -m x86_64
Add compile option
add “–host=x86_64” at the end of compile command.