Update installation instructions.
This commit is contained in:
parent
ec96ee7709
commit
d90b179f1f
1 changed files with 28 additions and 13 deletions
|
|
@ -9,19 +9,32 @@ Interested in learning **how to create a package**? Skip directly to that sectio
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You will need version 0.9.6 or better (OSX users **have** to use the developer
|
The latest version of Nimble (in the master branch) is primarily tested with
|
||||||
version 0.10.1 or better) of the [Nim
|
the latest version of the Nim compiler (in the devel branch). You can be sure
|
||||||
compiler](http://nim-lang.org/download.html). To run nimble you will need to
|
that Nimble will compile with that version of the compiler.
|
||||||
have installed some of the tools it depends on to check out source code. For
|
Unfortunately, it is likely that you have the latest *release* of Nim
|
||||||
|
installed, 0.12.0 at the time of writing. You can try to compile Nimble using
|
||||||
|
it but the compilation may fail. If you do not wish to upgrade your Nim
|
||||||
|
compiler, you can try to compile the latest release of Nimble instead. The
|
||||||
|
releases are available on
|
||||||
|
[this](https://github.com/nim-lang/nimble/releases) page.
|
||||||
|
|
||||||
|
Nimble has some runtime dependencies on external tools, these tools are
|
||||||
|
used to download Nimble packages.
|
||||||
|
For
|
||||||
instance, if a package is hosted on [Github](https://github.com) you require to
|
instance, if a package is hosted on [Github](https://github.com) you require to
|
||||||
have [git](http://www.git-scm.com) installed and added to your environment
|
have [git](http://www.git-scm.com) installed and added to your environment
|
||||||
``PATH``. Same goes for [Mercurial](http://mercurial.selenic.com) repositories
|
``PATH``. Same goes for [Mercurial](http://mercurial.selenic.com) repositories
|
||||||
on [Bitbucket](https://bitbucket.org). On Windows you will also need [OpenSSL
|
on [Bitbucket](https://bitbucket.org). Nimble packages are typically hosted in
|
||||||
DLLs](https://www.openssl.org) for secure network connections.
|
Git repositories so you may be able to get away without installing Mercurial.
|
||||||
|
|
||||||
|
The following sections give platform-specific instructions on how to
|
||||||
|
compile and install Nimble.
|
||||||
|
|
||||||
### Unix
|
### Unix
|
||||||
|
|
||||||
On Unix operating systems Nimble can be compiled and installed with two simple
|
On Unix-like operating systems Nimble can be compiled and installed with two
|
||||||
|
simple
|
||||||
commands. After successfully grabbing the latest Nim compiler simply execute
|
commands. After successfully grabbing the latest Nim compiler simply execute
|
||||||
the following commands to clone nimble, compile it and then install it.
|
the following commands to clone nimble, compile it and then install it.
|
||||||
|
|
||||||
|
|
@ -29,15 +42,17 @@ the following commands to clone nimble, compile it and then install it.
|
||||||
cd nimble
|
cd nimble
|
||||||
nim c -r src/nimble install
|
nim c -r src/nimble install
|
||||||
|
|
||||||
After these steps nimble should be compiled and installed. You should then add
|
After these steps are completed successfully, nimble will be installed
|
||||||
|
in ``~/.nimble/bin``. You must then add
|
||||||
``~/.nimble/bin`` to your ``$PATH``. Updating nimble can then be done by
|
``~/.nimble/bin`` to your ``$PATH``. Updating nimble can then be done by
|
||||||
executing ``nimble install nimble``.
|
executing ``nimble install nimble``.
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
You can install via a pre-built installation archive which is
|
You can install Nimble via a pre-built installation archive which is
|
||||||
available on the [releases](https://github.com/nim-lang/nimble/releases) page
|
available on the [releases](https://github.com/nim-lang/nimble/releases) page.
|
||||||
or from source.
|
Alternatively, you can also install Nimble from source, but the instructions
|
||||||
|
for doing so are a bit different on Windows.
|
||||||
|
|
||||||
#### Using the pre-built archives
|
#### Using the pre-built archives
|
||||||
|
|
||||||
|
|
@ -61,8 +76,8 @@ On Windows installing Nimble from source is slightly more complex:
|
||||||
cp src/nimble.exe src/nimble1.exe
|
cp src/nimble.exe src/nimble1.exe
|
||||||
src/nimble1.exe install
|
src/nimble1.exe install
|
||||||
|
|
||||||
This is required because Windows will lock the process which is being run and
|
This is required because Windows will lock the process which is being run, but
|
||||||
during installation Nimble will recompile itself.
|
during installation Nimble recompiles itself causing an error.
|
||||||
Once the installation completes you should
|
Once the installation completes you should
|
||||||
add ``C:\Users\YourName\.nimble\bin`` to your PATH.
|
add ``C:\Users\YourName\.nimble\bin`` to your PATH.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue