Skip to content

Install from source

Diogo Silva edited this page Mar 16, 2017 · 8 revisions

Installation of TriFusion from source

TriFusion requires several dependencies to properly run. HOWEVER, do not fret. There are package builds available for the most popular distributions described below, which handle all the necessary dependencies for you.

If for some reason you have to install everything manually, here are all dependencies listed with instructions on how to install them.

Dependencies

Note for Linux users: Most, if not all of these dependencies, may already be present in the oficial repositories of your distribution (e.g. Ubuntu: sudo apt-get install python-numpy).

  • Python2.7 is required to run TriFusion. It should already be present in most Unix operating systems but not on Windows. For Windows users, I recommend installing a python distribution package (such as Anaconda) that already comes with several required python libraries.

  • kivy is a python module responsible for the user interface of TriFusion. Instruction on how to install it are provided here.

  • matplotlib (included in Anaconda)

  • numpy (included in Anaconda)

  • psutil (included in Anaconda)

  • scipy (included in Anaconda)

  • configparser

  • seaborn

Assuming that python2 and kivy are already installed, the remaining dependencies can be installed by running the following command inside TriFusion's directory (with super user privileges for system-wide installation):

python setup.py install

Using package managers and/or setuptools

Windows

Assuming you have installed Anaconda (which automatically installs most of the dependencies), you will need to install kivy by executing the following commands on a command line prompt:

python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/
python -m pip install kivy

Then, download the latest TriFusion code. Open a command line prompt (or power shell, Anaconda shell) with Administrator priviliges and navigate to TriFusion's directory. Once there, run the following command to install TriFusion:

python setup.py install

Ubuntu-based
  • Add one of the following PPAs:

    • Stable release: sudo add-apt-repository ppa:o-diogosilva/trifusion
    • Daily release: sudo add-apt-repository ppa:o-diogosilva/trifusion-daily
  • Update your package list:

    sudo apt-get update

  • Install TriFusion:

    sudo apt-get install trifusion

Debian
  • Add one of the following PPAs manually to the sources.list:

    Stable release: http://ppa.launchpad.net/o-diogosilva/trifusion/ubuntu trusty main

    Daily release: http://ppa.launchpad.net/o-diogosilva/trifusion/ubuntu trusty main

  • Add the GPG key to your apt keyring:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D4F1E8E6

  • Refresh your package list and install TriFusion

    sudo apt-get update && sudo apt-get install trifusion

RPM based distributions (Fedora, OpenSus, RedHat)

Before installing TriFusion, you will need to install Kivy:

dnf install python-pip python-devel redhat-rpm-config freeglut-devel SDL*
pip install cython==0.23
pip install kivy

Then, download the latest RPM release of TriFusion and install it as a regular RPM package:

trifusion-0.4.11.rpm

Note that the RPM package is not in any repository yet, which means that it will not receive the updates of the latest version of TriFusion in GitHub. However, it's possible to stay in the bleeding edge of the development, by following these steps:

  • After installing the RPM package remove ONLY the TriFusion package, but leave the dependencies installed. For example, in Fedora24:

dnf remove TriFusion

  • Clone the git repository of TriFusion to your computer

git clone https://github.com/ODiogoSilva/TriFusion.git

  • In a terminal, navigate to TriFusion's directory and execute:

sudo python setup.py install

Since all dependencies are already installed, this will install only the most recent version of TriFusion. To keep TriFusion up to date afterwards, you'll just need to pull the most recent code and re-install it.

git pull
sudo python setup.py install --force
ArchLinux

There are three AUR packages for TriFusion:

TiriFusion - The latest version of TriFusion, based on source code.

TiriFusion-bin - Theatest version of TriFusion. Installs a large binary package, but does not require dependencies to be installed, as all the necessary libs are bundled with the distributed binary.

TiriFusion-git - The bleeding edge version directly from git. Requires dependencies to be installed, as it is also source code based.

Just use any AUR helper to handle the packages for you, or download the PKGBUILD you require and use makepkg.

Clone this wiki locally