How to install Stencyl on Ubuntu 64-bit

Recently I went through the process of installing Stencyl on Ubuntu. There a few things that the other tutorials out there appear to be missing in order to get it setup properly. These instructions are meant for Ubuntu 12.04 64-bit or Ubuntu 13.04 64-bit but may be applicable to other versions. Likewise, I can’t guarantee it but these instructions should work on Ubuntu derivatives like Zorin and Linux Mint.

First head out to the Stencyl website and download the package for Linux.

Before we do anything it’s important to note that Stencyl is a Java application, which is a big part the reason that it’s multi-platform. Fortunately, it includes the JRE (Java Runtime Environment). The catch here and what the other tutorials miss is that you need to install the ia32-libs because the JRE is compiled for 32-bit architecture. There’s also a GTK error that’ll show up in the console when running Stencyl so we need to install appmenu-gtk:i386 to fix that.

sudo apt-get install ia32-libs appmenu-gtk:i386

The second note that other people miss is that if you plan on updating Stencyl, then you’ll need to install the JRE on your system. This is because even though Stencyl runs using the included JRE, when it applies the update it ends up calling the java binary as it if it’s installed system-wide.

sudo apt-get install openjdk-7-jre

Now that those are installed, we’re all set to unpack the archive and run Stencyl. It doesn’t matter where you put this but it’ll need to be someplace that your user can write to otherwise you won’t be able to apply updates. I usually set it up in my Documents folder.

mkdir ~/Documents/Stencyl
cd ~/Documents/Stencyl
tar xzf /path/to/Stencyl-x.x.x.tar.gz

Once you’ve got it unpacked in the folder just run Stencyl and you should be in business.

  • Septimiu Saulean

    with ubuntu 12 u use: sudo apt-get install package-name:i386

  • Loki Chen

    Thanks very much for these instructions. A great help 🙂

  • Felipe Conde Sales

    I also had to change the Stencil script file to find my correct location JRE. Just removed the ‘./runtimes/jre-linux/bin/’ string before the java command 🙂

  • Richard

    I have Stencyl running fine on Kubuntu 14:04, but I’m unable to compile games. I get the following error: “haxelib: error while loading shared libraries: cannot open shared object file: No such file or directory” It’s a 64 bit system. Any idea how I can fix this?

    • Richard

      DOH fixed it with sudo apt-get install libgc-dev