tsloughter / erlup

Erlang toolchain installer
14 stars 2 forks source link

Fails in ./configure #21

Closed tsloughter closed 3 years ago

tsloughter commented 3 years ago

I have no idea what is going on. I get:

checking whether the C compiler works... no

when running a build with erlup. But if I go to the directory it is running the commands in and run the configure manually it works fine.

Likely related to my environment (Fedora 33) somehow... but either way figured I'd open an issue in case anyone else has seen similar.

rjcoelho commented 3 years ago

Same issue on aarch64 when doing erlup build OTP-21.3.8.5

tsloughter commented 3 years ago

@rjcoelho what OS?

rjcoelho commented 3 years ago

Linux @tsloughter

tsloughter commented 3 years ago

@rjcoelho what distro?

rjcoelho commented 3 years ago

Amazon Linux 2

tsloughter commented 3 years ago

Interesting, so also a Red Hat based distro.

rjcoelho commented 3 years ago

running configure manually (with same args) works just like the original post described

tsloughter commented 3 years ago

Ugh. I disabled SELinux, rebooted and it still happens. I have no idea how this is happening or even where to start.

tsloughter commented 3 years ago

Oh, I figured it out. It is the env_clear that was added to Command.

@lrascao what was the reason for adding that clearing?

I'll make a PR to remove it, but maybe there is an alternative solution to consider?