You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

installation.md 1.4KB

7 years ago
7 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. +++
  2. title = "Installation"
  3. weight = 1
  4. +++
  5. Zola provides pre-built binaries for MacOS, Linux and Windows on the
  6. [GitHub release page](https://github.com/getzola/zola/releases).
  7. ### macOS
  8. Zola is available on [Brew](https://brew.sh):
  9. ```bash
  10. $ brew install zola
  11. ```
  12. ## Linux
  13. ### Arch Linux
  14. Use your favourite AUR helper to install the `zola-bin` package.
  15. ```bash
  16. $ yay -S zola-bin
  17. ```
  18. ### Snapcraft
  19. Zola is available on snapcraft:
  20. ```bash
  21. $ snap install --edge --classic zola
  22. ```
  23. ## Windows
  24. Zola is available on [Scoop](http://scoop.sh):
  25. ```bash
  26. $ scoop install zola
  27. ```
  28. And [Chocolatey](https://chocolatey.org/):
  29. ```bash
  30. $ choco install zola
  31. ```
  32. ## From source
  33. To build it from source, you will need to have Git, [Rust (at least 1.28) and Cargo](https://www.rust-lang.org/)
  34. installed. You will also need additional dependencies to compile [libsass](https://github.com/sass/libsass):
  35. - OSX, Linux and other Unix: `make` (`gmake` on BSDs), `g++`, `libssl-dev`
  36. - Windows (a bit trickier): updated `MSVC` and overall updated VS installation
  37. From a terminal, you can now run the following command:
  38. ```bash
  39. $ cargo build --release
  40. ```
  41. The binary will be available in the `target/release` folder. You can move it in your `$PATH` to have the
  42. `zola` command available globally or in a directory if you want for example to have the binary in the
  43. same repository as the site.