Cross Compiling Error - cyjoelchen/php-sweph GitHub Wiki

If you receive a cross compiling error when running ./configure such as the below, see the linked issue for a possible workaround, which may be related to running a VM with a different architecture than the underlying host machine (e.g. x86 VM running on an ARM processor).

checking whether we are cross compiling... configure: error: in `/path/to/php-sweph':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

See this issue for a possible solution: