Skip to content

Commit 832db6d

Browse files
authored
docs: Add Linux PATH Update Commands to Installation Guide (#4340)
This pull request enhances the Wails installation guide by adding instructions to update the PATH environment variable for Linux users after installing the Wails CLI via Go. The change ensures that Linux users can properly access the wails command by adding the Go binary path to their environment and refreshing their shell configuration.
1 parent be7608e commit 832db6d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

website/docs/gettingstarted/installation.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ import TabItem from "@theme/TabItem";
6060
Linux requires the standard <code>gcc</code> build tools plus <code>libgtk3</code> and <code>libwebkit</code>. Rather than list a ton of commands for different distros, Wails can try to determine what the installation commands are for your specific distribution. Run <code>wails doctor</code> after installation to be shown how to install the dependencies. If your distro/package manager is not supported, please consult the <a href={"/docs/guides/linux-distro-support"}>Add Linux Distro</a> guide.
6161
<br/><strong>Note:</strong><br/>
6262
If you are using latest Linux version (example: Ubuntu 24.04) and it is not supporting <code>libwebkit2gtk-4.0-dev</code>, then you might encounter an issue in <code>wails doctor</code>: <code>libwebkit</code> not found. To resolve this issue you can install <code>libwebkit2gtk-4.1-dev</code> and during your build use the tag <code>-tags webkit2_41</code>.
63+
<br/><br/>
64+
After installing Wails via Go, ensure you run the following commands to update your PATH:
65+
<br/>
66+
<code>export PATH=$PATH:$(go env GOPATH)/bin</code>
67+
<br/>
68+
<code>source ~/.bashrc</code> or <code>source ~/.zshrc</code>
6369
</TabItem>
6470
</Tabs>
6571
```
@@ -78,7 +84,9 @@ Note: If you get an error similar to this:
7884
```shell
7985
....\Go\pkg\mod\github.com\wailsapp\wails\v2@v2.1.0\pkg\templates\templates.go:28:12: pattern all:ides/*: no matching files found
8086
```
87+
8188
please check you have Go 1.18+ installed:
89+
8290
```shell
8391
go version
8492
```

0 commit comments

Comments
 (0)