Install wails on linux
Muhammad Farooq
Posted on April 27, 2023
to install wails you need to install Go first
if you have not installed you can install using following commands.
sudo apt update
sudo apt install golang-go
if you face difficulty while installing Go you can refer to this tutorial:
How to install go on ubnuntu
check go installation:
go version
if go version 1.18 or greater is installed then move forward.
Linux requires the standard gcc build tools plus libgtk3 and libwebkit
if these are not installed in your system you can install using following commands:
sudo apt-get update
sudo apt-get install gcc libgtk-3-dev libwebkit2gtk-4.0-dev
Installing Wails
now run the following command:
go install github.com/wailsapp/wails/v2/cmd/wails@latest
go version should be 1.18+
System Check
Running wails doctor
will check if you have the correct dependencies installed. If not, it will advise on what is missing and help on how to rectify any problems.
installation check
to check the installation or version run the following command in terminal.
wails version
it will display the version of wails
The wails command appears to be missing?
If your system is reporting that the wails command is missing or giving the error command 'wails' not found the it is probably due to go/bin directory is not added in the PATH variable
if you don't get this error you can skip this section.
to add that first you need to know in which directory the Go is installed in
to find that you can run the following command in the terminal.
go env GOPATH
it will display the path where Go is installed in
let say the path in home/[username]/go
follow these steps to home/[username]/go/bin/ in PATH environment
opened the terminal
open the ~/.bashrc file
nano ~/.bashrc
go to bottom of the file and add following line
export PATH=$PATH:/home/[username]/go/bin/
you should use the actual path of go/bin folder where the go is installed
don't forget to add / at the end
Press Ctrl + X to exit nano editor, and type "Y" to save changes.
Finally run the following command
source ~/.bashrc
PATH is successfully added
now you can check the installation using the command
wails version
I hope it will work correctly.
Apache AGE
Apache AGE uses Go and its framework wails in AGE Viewer Desktop (Go) Project
visit Apache AGE:
Posted on April 27, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.