diff --git a/docs/intro/install.md b/docs/intro/install.md index 7a9f70f2fa..1002fd3a8b 100644 --- a/docs/intro/install.md +++ b/docs/intro/install.md @@ -36,7 +36,25 @@ The latest `starport` binary is downloaded from the Github repo and installed in To install previous versions of the precompiled `starport` binary or customize the installation process, see [Starport installer docs](https://github.com/allinbits/starport-installer) on GitHub. -### Write permission +### Adding `~/go/bin` to `$PATH` + +After Starport builds the chain, the resulting binary is installed in `~/go/bin`. For Starport to access the `bin` subdirectory that contains the executable binary, you must set the path to this location. To set the PATH, add the following line to your shell config file (for example, `~/.bashrc`): + +``` +export $PATH=~/go/bin:$PATH +``` + +Apply the changes for the current terminal: + +``` +source ~/.bashrc +``` + +Your path is not set correctly if you get the following error: `: exec: “appd”: executable file not found in $PATH`. Be sure to follow these steps. To use a different location and for more details, see [The GOPATH environment variable](https://golang.org/doc/gopath_code#GOPATH). + + + +### Write Permission Starport installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because you do not have write permission to `/usr/local/bin/`, run the following command: