nim-wiki/Getting-Started.md

28 lines
878 B
Markdown
Raw Normal View History

To get the source code you need either of these:
* A working web browser + tar(or equivalent): https://github.com/nim-lang/Nim/tarball/master
* wget + tar: `wget --no-check-certificate "https://github.com/nim-lang/Nim/tarball/master"`
* git: `git clone --depth 1 git://github.com/nim-lang/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:
* `./bootstrap.sh`
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/nim-lang/Nim.git
2015-05-14 21:43:40 +00:00
cd Nim
./boostrap.sh
2015-05-14 21:43:40 +00:00
```
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.
2015-07-07 13:41:48 +00:00
* `cd nimble/src`
2014-12-20 19:58:51 +00:00
* `nim c nimble`
* `ln -s $PWD/nimble /home/user/bin`
* `nimble update`