Installing Unity3D on Fedora 24

All this talk about video games kind of gives you the bug to start creating them yourself, so why not install the Unity game engine on our Fedora 24 Linux system and give it a try? These days, there are so many great tools available that even the casual creator can put something functional together in no time. While there are some other great alternatives to Unity out there such as Stencyl and Cocoon, we’re going to focus on installing Unity on Fedora 24 for the moment with just a few steps.

1. Download the latest Unity package

It’s recommended to do this from shell, so open a shell and run the following:
wget http://download.unity3d.com/download_unity/linux/unity-editor-installer-5.4.0p1+20160810.sh

2. Make the package executable and run it

Once the download is complete, make the file executable.
sudo chmod 755 unity-editor-installer-5.4.0p1+20160810.sh
sudo ./unity-editor-installer-5.4.0p1+20160810.sh

3. Launch Unity

./unity-editor-5.4.0p1/Editor/Unity

Post-installation issues

If all goes well, Unity will launch and you’ll be greeted by a friendly login screen. However, many people seem to be missing a dependency of two. The most common error after installing Unity is the following:

./Unity: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

After digging around, I found the following helpful post on the Unity 3D forums. To resolve these dependencies, install the following postgres libraries like so:
sudo dnf install postgresql-libs

Unity should then launch. However, you may run into another snag which, instead of seeing the splash/login screen, you will only see a large grey box. This seems to be an issue with npm. To resolve this, try installing the following package:
sudo dnf install nodejs npm

After installing this package, Unity launched without error.  Great!

Mondevelop vs Visual Studio Code

In order to write and edit C# scripts, you’ll need a code editor installed alongside Unity. I personally found Monodevelop too be way too resource heavy for my environment so I went with Visual Studio Code (aka VSCode). Both can be easily installed on Fedora 24:

Install Visual Studio Code
You can get the Visual Studio Code repository or use wget like so:
sudo dnf config-manager - -add-repo https://copr.fedorainfracloud.org/coprs/mosquito/vscode/repo/fedora-24/mosquito-vscode-fedora-24.repo

Once you’ve added the repo, install VSCode using dnf:
sudo dnf install vscode

Install Monodevelop
If you are going with Monodevelop, you can install it with dnf like so:
sudo dnf install monodevelop

Depending which editor you choose, you’ll need to let Unity know about it. From the menu, select Edit/Preferences/External Tools and browse to the executable that you which to launch (unity-editor-5.4.0p1/MonoDevelop/bin/monodevelop or /usr/bin/vscode). Your path may differ slightly.

One thought on “Installing Unity3D on Fedora 24

  1. Hello, I am trying to install Unity on my Fedora but I am facing some issues. I tried few ways and even if installation progress without any problem when I am trying lunch Unity nothing happened. I tried to check dmesg or so but any log is not created, I changed log level via dmesg -n 8 but still the same.
    Do you have some idea what could be wrong?

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *