2011-01-04 00:28:13 +00:00
|
|
|
To get the source code you need either of these:
|
|
|
|
|
2015-07-07 13:37:47 +00:00
|
|
|
* 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`
|
2011-01-04 00:28:13 +00:00
|
|
|
|
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:
|
2011-01-04 00:28:13 +00:00
|
|
|
|
2015-07-07 13:37:47 +00:00
|
|
|
* `./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
|
|
|
|
```
|
2015-07-07 13:37:47 +00:00
|
|
|
git clone git://github.com/nim-lang/Nim.git
|
2015-05-14 21:43:40 +00:00
|
|
|
cd Nim
|
2015-10-17 19:19:23 +00:00
|
|
|
./bootstrap.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`
|