Skip to content

Adding Note for LM22 and how to add wine64 to the PATH variable. #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,23 @@ Create wine prefix:
wget -qO- https://monogame.net/downloads/net6_mgfxc_wine_setup.sh | bash
```

> [!NOTE]
> For Linux Mint 22 Wilma and potentially other Linux Distributions it could be necessary to make the `wine64` binary available first before running the script if it fails to find the wine64 binary either by adding the correct installation directory to the `$PATH` variable or by adding a symlink to a folder which is already part of the `$PATH` variable.

Option 1: Add the installation directory to the `$PATH` variable:

```sh
echo 'export PATH=$PATH:/usr/lib/wine' >> ~/.bashrc && source ~/.bashrc
wine64 --version
```

Option 2: Add a symlink to an already existing folder of the `$PATH` variable:

```sh
sudo ln -s /usr/lib/wine/wine64 /usr/bin/wine64
wine64 --version
```

If you ever need to undo the script, simply delete the `.winemonogame` folder in your home directory.

**Next up:** [Creating a new project](2_creating_a_new_project_netcore.md)