Arch Linux Installation

From ENIGMA
Jump to navigation Jump to search
The official logo of Arch Linux based operating systems and environments.

The recommended way to install ENIGMA on Linux is by using the source code. Arch Linux users should follow the instructions below and Debian users can follow the Debian Installation instructions.

the First Way:Build From the AUR

On Arch Linux you can build directly from Git via the AUR at https://aur.archlinux.org/packages/enigma-dev-git/ (or using yay -S enigma-dev-git ). This takes care of dependencies, configuration and uninstalling safely for you.

the Second Way:Check-out the ENIGMA repo

The primary way to do this is by referring to the Git installation guide.

Third way:Install with Script

Install with script
Create a script file "install.sh", copy and paste the following code into the script, grant it executable permission and run it. Additionally you will need to make sure you have `pulseaudio` or `pipewire-pulse`.
#!/bin/bash 
cd ~/
echo "Installing dependencies..."
sudo pacman -Sy wget git gcc gdb make pkg-config protobuf protobuf-c zlib glew glm libpng glu mesa openal libogg alure mpg123 fluidsynth libvorbis vorbis-tools box2d dumb sdl2 freetype2 libffi libx11 libxrandr libxinerama jre-openjdk jdk-openjdk pkg-config rapidjson yaml-cpp boost grpc pugixml zenity kdialog
echo "Downloading Enigma..."
git clone https://github.com/enigma-dev/enigma-dev.git
cd enigma-dev
echo "Downloading easy startup script..."
wget https://pastebin.com/raw/aBAU4j3C -O start.sh
sed -i -e 's/\r$//' start.sh
echo "Correcting permissions..."
chmod +x start.sh
chmod +x install.sh
echo "Installing..."
./install.sh
echo "Rebuilding compiler..."
make clean
make
echo "Done, to start Enigma just run ~/enigma-dev/start.sh"

Alternatively, run the following command in your terminal:

curl https://gist.githubusercontent.com/HitCoder9768/1ba09a6ebc096aa863af9c4f1ac553cb/raw/16b5f482793c5a3c55716fc381aa6af784f114c0/arch_install.sh | bash

Fourth Way:Manual Installation

  • Install dependencies *

Prerequisites: GNU GCC G++ Compiler, Git Client, Java,`pulseaudio` or `pipewire-pulse`.

The following dependencies will be installed for ENIGMA and the games it creates.End-users' won't need all of those dependencies, depending on the features used...You can start a topic on the forums if you are unsure which dependencies your game needs.

sudo pacman -Sy wget git gcc gdb make pkg-config protobuf protobuf-c zlib glew glm libpng glu mesa openal libogg alure mpg123 fluidsynth libvorbis vorbis-tools box2d dumb sdl2 freetype2 libffi libx11 libxrandr libxinerama jre-openjdk jdk-openjdk pkg-config rapidjson yaml-cpp boost grpc pugixml zenity kdialog
  • Download enigma source code *

ENIGMA can be downloaded using the following git command:

git clone git://github.com/enigma-dev/enigma-dev.git
  • Install IDE + Plugin *

You will also need the LateralGM and ENIGMA plugin binaries, they can be installed 1 of 2 ways.

1) You can install those automatically by running the install script in the enigma-dev folder:

cd ~/enigma-dev
./install.sh

2) Or you can obtain them manually per these instructions.