mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Update installation section of readme
This commit is contained in:
38
README.md
38
README.md
@@ -9,36 +9,38 @@ Terminal session recorder and the best companion of
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
On Linux and Mac OS X, __the easiest way to install asciinema__ recorder is to
|
### Using package manager
|
||||||
run the following shell command:
|
|
||||||
|
|
||||||
curl -sL https://asciinema.org/install | sh
|
asciinema is available in repositories of most popular package managers on Mac
|
||||||
|
OS X, Linux and FreeBSD. Look for package named `asciinema`. See the
|
||||||
[This script](https://asciinema.org/install) will download the latest asciinema
|
[list of available packages](https://asciinema.org/docs/installation).
|
||||||
recorder binary for your platform, and install it in your `$PATH`.
|
|
||||||
|
|
||||||
Other installation options, including Homebrew and distro packages (Ubuntu,
|
|
||||||
Fedora, Arch Linux, Gentoo), are [also
|
|
||||||
available](https://asciinema.org/docs/installation).
|
|
||||||
|
|
||||||
If you have Go development environment set up you can `go get
|
|
||||||
github.com/asciinema/asciinema` to build asciinema and put the binary
|
|
||||||
in `$GOPATH/bin/asciinema`.
|
|
||||||
|
|
||||||
### Building from source
|
### Building from source
|
||||||
|
|
||||||
To build asciinema from source you need to have
|
To build asciinema from source you need to have
|
||||||
[Go development environment](http://golang.org/doc/install) set up.
|
[Go development toolchain](http://golang.org/doc/install) installed.
|
||||||
|
|
||||||
Following the steps below will get the source code and compile it into a single
|
#### With `go get`
|
||||||
statically linked binary:
|
|
||||||
|
You can use `go get` to fetch the source, build and install asciinema at
|
||||||
|
`$GOPATH/bin/asciinema` in one go:
|
||||||
|
|
||||||
|
go get github.com/asciinema/asciinema
|
||||||
|
|
||||||
|
#### With `make`
|
||||||
|
|
||||||
|
Download the source code into your `$GOPATH`:
|
||||||
|
|
||||||
mkdir -p $GOPATH/src/github.com/asciinema
|
mkdir -p $GOPATH/src/github.com/asciinema
|
||||||
git clone https://github.com/asciinema/asciinema.git $GOPATH/src/github.com/asciinema/asciinema
|
git clone https://github.com/asciinema/asciinema.git $GOPATH/src/github.com/asciinema/asciinema
|
||||||
|
|
||||||
|
Build the binary:
|
||||||
|
|
||||||
cd $GOPATH/src/github.com/asciinema/asciinema
|
cd $GOPATH/src/github.com/asciinema/asciinema
|
||||||
make build
|
make build
|
||||||
|
|
||||||
This will produce asciinema binary at `bin/asciinema`.
|
This will produce asciinema binary at
|
||||||
|
`$GOPATH/src/github.com/asciinema/asciinema/bin/asciinema`.
|
||||||
|
|
||||||
To install it system wide (to `/usr/local`):
|
To install it system wide (to `/usr/local`):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user