How I might install snes9x on Ubuntu from the GitHub repository? https://github.com/snes9xgit/snes9x

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 2



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 https://flathub.org/repo/flathub.flatpakrepo
    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 https://api.cirrus-ci.com/v1/artifact/task/6382769047601152/build/snes9x-gtk-432fc08498b33190a41ae659c3c5fccbeb5b8b3e.txz
    tar -xf snes9x-gtk-432fc08498b33190a41ae659c3c5fccbeb5b8b3e.txz
    cd snes9x
  • 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


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 https://github.com/snes9xgit/snes9x.git
cd snes9x/
git submodule update --init shaders/SPIRV-Cross
cd gtk
meson build --prefix=/usr/local --buildtype=release --strip
cd build
sudo ninja install
  • I found via Google a copy suited to version 19.04 and successfully connected all the parts. May 24, 2020 at 17:00

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
sudo ninja install

Two reasons:

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.