Installation¶
This document guides you through the installation of Cask.
Prerequisites¶
Cask requires GNU Emacs 24 and Python 2.6 or later on a Unix system. It will not work with Emacs 23 and below, or with other flavours of Emacs, e.g. XEmacs.
Warning
Windows support for Cask requires additional work (see Windows Installation and Setup).
Manual installation¶
To install Cask, run the following command:
$ curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
You can also clone the repository explicitly:
$ git clone https://github.com/cask/cask.git
To upgrade a manual installation, use:
$ cask upgrade-cask
Windows Installation and Setup¶
Cask requires the following additional steps to run under Windows.
Both emacs and python need to be added to your
%PATH%
.
Assuming that python is installed to the default location
(c:Python27
) and emacs is under c:binemacs
.
By Command Line¶
> setx PATH "%PATH%;c:\Python27\"
> setx PATH "%PATH%;c:\bin\emacs\bin"
> setx PATH "%PATH%;%userprofile%\.cask\bin"
By GUI¶
Use Win+Pause to open System Properties.
Under Windows 7 or newer, click on Advanced system settings.
Under Windows XP, click on the Advanced tab.
Click on Environment Variables….
Under System Variables find
Path
then choose to Edit….At the end of the listed path, append (include the first
;
only if not already present):;C:\Python27\;C:\bin\emacs\bin
If you do not have administrative rights to the machine, add the above to the User Variables
Path
.Under User Variables find
Path
, and edit. If not present select New… and name itPath
.Append or insert (add a
;
at the beginning ifPath
exists):%userprofile%\.cask\bin