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.6KB

7 years ago
7 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. ## From source
  13. To build it from source, you will need to have Git, [Rust (at least 1.30) and Cargo](https://www.rust-lang.org/)
  14. installed. You will also need additional dependencies to compile [libsass](https://github.com/sass/libsass):
  15. ### Arch Linux
  16. Use your favourite AUR helper to install the `zola-bin` package.
  17. ```bash
  18. $ yay -S zola-bin
  19. ```
  20. ### Snapcraft
  21. Zola is available on snapcraft:
  22. ```bash
  23. $ snap install --edge --classic zola
  24. ```
  25. ## Windows
  26. Zola is available on [Scoop](http://scoop.sh):
  27. ```bash
  28. $ scoop install zola
  29. ```
  30. And [Chocolatey](https://chocolatey.org/):
  31. ```bash
  32. $ choco install zola
  33. ```
  34. ## From source
  35. To build it from source, you will need to have Git, [Rust (at least 1.29) and Cargo](https://www.rust-lang.org/)
  36. installed. You will also need additional dependencies to compile [libsass](https://github.com/sass/libsass):
  37. - OSX, Linux and other Unix: `make` (`gmake` on BSDs), `g++`, `libssl-dev`
  38. - Windows (a bit trickier): updated `MSVC` and overall updated VS installation
  39. From a terminal, you can now run the following command:
  40. ```bash
  41. $ cargo build --release
  42. ```
  43. The binary will be available in the `target/release` folder. You can move it in your `$PATH` to have the
  44. `zola` command available globally or in a directory if you want for example to have the binary in the
  45. same repository as the site.