The problem with installing seems to have to do with executables not in correct
bins.
I can go through the install process off the website, and compile the
executables in the **nim-0.17.0** directory, created by untarring the tarball.
Notes about installation from source
After downloading the compressed archive, extract its contents into the
desired installation directory.
Open a new terminal window, cd into the extracted directory, and execute
the following commands:
sh build.sh
bin/nim c koch
./koch tools
Configuring the PATH environment variable
The compiler and tool binaries live inside the bin directory. It is common
for Nim developers to include two directories in their PATH environment
variable:
the aforementioned bin directory
~/.nimble/bin (where ~ is the home directory)
I've had no luck setting the **PATH** that works, because it gives error
messages saying it can't see certain files(?).
When I set **PATH** like this:
$ export PATH=$PATH:~/nim-0.17.0/bin
when I try to compile a source file I get this:
~/nim> $ nim c --cc:clang --d:release x.nim
Hint: System[Processing]
Error: cannot open 'usr/local/lib/nim/system.nim'
I can run the nim executable like so, from **nim-0.17.0/bin/**:
~/nim-0.17.0/bin $ ./nim c --cc:clang --d:release ~/nim/<file>
where the **nim** directory holds my nim sources, but this is so inelegant!
Luckily, Manjaro and Antergos (both Arch Linux derivatives) have the latest
0.17.0 version in their repos, so I've just been using them (this is using
Virtual Box VMs). I even tried moving the executables around in the other
distros to match what I see in Manjaro, with no luck.
I am willing to help debug this if you give me detailed instructions to follow.