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
The compiler and tool binaries live inside the
It is common for Nim developers to include two directories in their
PATH environment variable:
~is the home directory)
The Nim compiler needs a C compiler in order to compile software. You must
install this separately and ensure that it is in your
Simply install the latest version of
clang available on your system.
You can do this by:
You probably already have a compiler installed. If not, use your package
manager to install either
There are a number of other dependencies that you may need to install in order to use Nim. They include:
You can use your package manager to install these dependencies when necessary.
brew install nim
The community managed Docker images are published on Docker Hub and include the compiler and Nimble. There are images for standalone scripts as well as Nimble packages.
Get the latest stable image:
docker pull nimlang/nim
The latest development version:
docker pull nimlang/nim:devel
pacman -S nim
xbps-install -S nim
pkg install nim