dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
681 stars 64 forks source link

choosenim fails to detect clang compiler on linux #217

Closed haxscramper closed 4 years ago

haxscramper commented 4 years ago

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 with clang in /usr/bin/clang I get following error:

     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
clang: /usr/bin/clang /usr/lib/clang /usr/include/clang

Installing gcc compiler resolves the problem and nim is correctly installed.

haxscramper commented 4 years ago

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