-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Installing Micro
The readme provides quick instructions for installing micro either by downloading the binaries (if you don't have Go installed on your system), or by using go get
to build micro from source.
This page will contain some explanation for installation with package managers, and also how the makefile that comes with micro works.
There is a script which can install micro for you by downloading the latest prebuilt binary. You can find it here.
To run it, just pass in the os you are running and the installation directory:
$ ./install_micro.sh linux64 ~/bin
or if you don't want to download the script:
$ curl -sL https://gist.githubusercontent.com/zyedidia/d4acfcc6acf2d0d75e79004fa5feaf24/raw/25924d76d8cd54e55dccec877c1b383cdf0e3dce/install_micro.sh | bash -s linux64 ~/bin
NOTE: You must have Python installed to run the script (Python is used to fetch the latest version of micro).
If you are on OSX, you can install micro using Homebrew:
brew install micro
If you are on Arch Linux, you can install micro using the AUR:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/micro-git.tar.gz
tar xzf micro-git.tar.gz
cd micro-git
makepkg -si
If you are on CRUX, you can install micro using the 6c37-git repo:
git clone https://github.com/6c37/crux-ports-git
cd crux-ports-git/micro
# make sure you have go installed!
pkgmk -i
The Makefile (which can be viewed here) tries to be as simple as possible.
Here is an overview of the Makefile and what each command does:
make deps
makes sure that all of micro's dependencies are installed.
make runtime
downloads and installs github.com/jteeuwen/go-bindata/ and then uses that to create the runtime.go
file from the runtime/
directory. This file is used so that the runtime/
directory (containing micro's default runtime files such as colorschemes and plugins) is embedded inside the micro binary.
make tcell
simply pulls from the tcell package that should be installed to make sure the version of tcell being used is up-to-date.
make build
runs make deps
and make tcell
and then builds micro and links in the correct version (the current commit hash) and places the binary in the current directory.
make install
runs make build
and then places the binary in $GOPATH/bin
.