nim-wiki/Getting-Started.md

33 lines
1019 B
Markdown
Raw Normal View History

To get the source code you need either of these:
2015-02-03 08:01:24 +00:00
* A working web browser + tar(or equivalent): https://github.com/Araq/Nim/tarball/master
* wget + tar: `wget --no-check-certificate "https://github.com/Araq/Nim/tarball/master"`
* git: `git clone --depth 1 git://github.com/Araq/Nim.git`
2013-05-29 23:05:58 +00:00
### Bootstrapping
2011-03-29 11:56:54 +00:00
After downloading the source (and extracting it), you need to extract build/csources.zip then you can bootstrap with:
* `./build.sh` or `build.bat` (Windows)
2014-12-20 19:59:25 +00:00
* `nim c koch`
* `koch boot [-d:release]`
2014-12-20 19:59:25 +00:00
* Put Nim on your PATH
* For Linux, you only need a symlink: `ln -s $PWD/bin/nim /home/user/bin`
2013-05-29 23:05:58 +00:00
2015-05-14 21:43:40 +00:00
#### A simple script
```
git clone git://github.com/Araq/Nim.git
cd Nim
git clone --depth 1 git://github.com/nim-lang/csources
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
```
2014-12-20 19:58:51 +00:00
### Nimble
2013-05-29 23:05:58 +00:00
2015-02-03 08:01:24 +00:00
Nimble is Nim's package manager
2014-12-20 19:58:51 +00:00
* Download the source from https://github.com/nim-lang/nimble using one of the above methods.
* `nim c nimble`
* `ln -s $PWD/nimble /home/user/bin`
* `nimble update`