Celeb Glow
news | March 31, 2026

How to install snes9x from the GitHub repository?

How I might install snes9x on Ubuntu from the GitHub repository?

There's no apt-get install command I can do. There seem to be two possible Linux compatible version of the program (GTK or X11)

Do we have to clone the repository and compile from the source? Is there a *.deb file already?

2 Answers

Binaries

There are several methods to obtain snes9x in binary form:

  • Пet FlatPak version of Snes9x (the easiest way):

    sudo apt-get install flatpak
    flatpak remote-add --if-not-exists flathub
    flatpak install flathub com.snes9x.Snes9x
  • Get snes9x from site listed on Downloads page by visiting link to snes9x_1.60-1_amd64.deb

  • Download snes9x latest binary from Cirrus-CI:

    sudo apt install libportaudio2 libminizip1
    cd ~/Downloads
    wget
    tar -xf snes9x-gtk-432fc08498b33190a41ae659c3c5fccbeb5b8b3e.txz
    cd snes9x
    ./snes9x-gtk
  • Get RetroArch with snes9x plugin from official repository by

    sudo add-apt-repository multiverse
    sudo apt-get install retroarch libretro-snes9x

    or from libretro PPA:

    sudo add-apt-repository ppa:libretro/testing
    sudo apt-get install retroarch libretro-snes9x

Source

If you really know the reason to install from source you can follow below method (based on AUR PKGBUILD and snes9x Compiling wiki page):

sudo apt-get install build-essential git meson cmake \
libgtk2.0-dev libgtk-3-dev libsdl2-dev glslang-dev portaudio19-dev libminizip-dev
cd ~/Downloads/
git clone
cd snes9x/
git submodule update --init shaders/SPIRV-Cross
cd gtk
meson build --prefix=/usr/local --buildtype=release --strip
cd build
ninja
sudo ninja install
1

I had some troubles despite N0rbert very helpful answer, I list the steps that got it right (ubuntu 18.04), right after cloning from source:

git submodule update --init
sudo apt-get install libsdl2-dev libgtkmm-3.0-dev libasound-dev minizip
pip3 install meson
echo "export PATH=\"`python3 -m site --user-base`/bin:$PATH\"" >> ~/.bashrc
source ~/.bashrc
cd gtk && meson build --prefix=/usr/local --buildtype=release --strip
cd build
ninja
sudo ninja install

Two reasons:

  • The version of meson installed through sudo-apt get is too low
  • other submodules to update --init

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy