Closed haxscramper closed 4 years ago
When installed on system with only clang compiler present choosenim fails to detect presence of C compiler.
clang
When installed via curl https://nim-lang.org/choosenim/init.sh -sSf | sh with clang in /usr/bin/clang I get following error:
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
/usr/bin/clang
Error: No C compiler found. Nim compiler requires a C compiler. ... Install clang or gcc using your favourite package manager.
even though whereis clang can find the compiler binary
whereis clang
> whereis clang clang: /usr/bin/clang /usr/lib/clang /usr/include/clang
Installing gcc compiler resolves the problem and nim is correctly installed.
gcc
Due to slightly misleading error I assumed that check for both clang & gcc is performed. This is not the case, so I will be closing the issue. Error message fix is in #218
When installed on system with only
clang
compiler present choosenim fails to detect presence of C compiler.When installed via
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
withclang
in/usr/bin/clang
I get following error:even though
whereis clang
can find the compiler binaryInstalling
gcc
compiler resolves the problem and nim is correctly installed.