Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C#
* D lang.
* Java
* Nim
* Nim2
  + exercises
* XC=BASIC
* old
  ◇C++, ◇Clojure, ◇Scala


[ edit | logout ]
[ sandbox | passwd ]

Installation

Linux

First, install choosenim. This program allows you to install and upgrade Nim easily.

Visit https://nim-lang.org/install_unix.html and follow the instructions. You need to execute a script that installs choosenim for you.

Once you have choosenim, here is how to use it:

$ choosenim update self       # updates choosenim
$ choosenim update stable     # installs latest stable Nim
$ choosenim stable            # selects stable version
$ nim -v                      # version info

Make sure to extend your PATH with the following folder:

export PATH=$PATH:$HOME/.nimble/bin

Windows

Visit https://nim-lang.org/install_windows.html and download Nim in .zip format. I suggest extracting it to the root of the C: drive (example: C:\nim-2.2.8).

Then, add these folders to your PATH (in this order):

c:\Users\<user_name>\.nimble\bin

C:\nim-2.2.8\bin

Testing if everything works

Create a simple program called hello.nim :

echo "hello nim"

Compile and run:

$ nim c hello.nim
$ ./hello
hello nim

Installing Atlas

Atlas is a package cloner that manages project dependencies in an isolated deps/ directory. We don't need it at the beginning while learning the language. When you install Nim, then the binary atlas is in the bin/ folder. However, atlas is not present in ~/.nimble/bin. Everything else is there, except this one.

If you want it to be there, you can install it with nimble:

$ nimble install https://github.com/nim-lang/atlas

Note that "nimble install atlas" wouldn't work since atlas is not in nim-lang/packages.

Thus, under Linux it's enough to add ~/.nimble/bin to your PATH.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 24, 14:12