Installation
Installation instructions
FORCE is mostly written in C/C++: Thus, it needs to be compiled. Administrator rights are not necessarily required, unless you want to install to the system-wide search path (e.g. to make it available to multiple users).
This recipe assumes that you have installed all Dependencies. Alternatively, you can use a Docker base image that includes all dependencies, e.g. [davidfrantz/base](https://hub.docker.com/r/davidfrantz/base). We are however suggesting to consider simply using FORCE with Docker or Singularity, see Docker / Singularity support.
Go to the directory, where you usually store source code, e.g.
cd ~/src
Pull from Github
git clone https://github.com/davidfrantz/force.git
Go to the force directory
cd force
Edit the Makefile with the text editor of your choice, e.g.
vi Makefile
BINDIR is the directory used for installing the software.
By default, this is
/usr/local/bin
. This is a system-wide search path. If you install to this directory, all users on this machine can use the code. You need admin rights to install to this directory.Alternatively, you can specify a private directory, e.g.
/home/YOURNAME/bin
. In this case, the code is only available to you, but you do not need admin rights for the installation.The next block specifies the location of libraries and headers. It might be possible that you need to make some changes here.
The rest of the Makefile should be OK. Only edit anything if you know what you are doing.
Compile the code
make -j
Install the code. If you are installing to a system directory, include
sudo
to install with admin rights. If you are installing to a private directory, remove thesudo
.
sudo make install
Test if it was installed correctly:
forceIf the program cannot be found, you will likely need to add this directory to your search path
$PATH
(see here). This might happen if you have used a custom installation directory.
Installation of the development version
To install FORCE with all “bleeding-edge features”, consider to use the develop version.
After point (3), change to the develop branch, then proceed with (4). Note that BINDIR defaults to
/develop
on this branch. Not installing to/usr/local/bin
(which is the default for the master branch) might make sense in the case you want to have both the master and develop versions installed. You might want to change BINDIR to a directory that suits you (e.g./usr/local/bin
or a local directory).git checkout -b develop git pull origin develop
If you are running different versions - or want to make sure to always use the latest version - consider using pre-built Docker images, see Docker / Singularity support.
Installation in DEBUG mode
Follow these steps before step 3 in the installation instruction:
Enable DEBUG in FORCE
cd ~/src/force ./debug.sh enable
Proceed with the installation of FORCE