Skip to content

Instantly share code, notes, and snippets.

@elyase
Created November 26, 2021 17:45
Show Gist options
  • Save elyase/df2b56f2a20fd043cb092e296dd14a85 to your computer and use it in GitHub Desktop.
Save elyase/df2b56f2a20fd043cb092e296dd14a85 to your computer and use it in GitHub Desktop.
ibsimu install ubuntu

Tested on ubuntu 20.04.3

Install dependencies

sudo apt-get install build-essential
sudo apt install libcairo2-dev
sudo apt install libgsl-dev
sudo apt install libgtk-3-dev

Download the code

git clone git://ibsimu.git.sourceforge.net/gitroot/ibsimu/ibsimu

Compile

cd ibsimu
./configure --prefix=`pwd`
make -j4
make install

You may need to adjust the prefix path in the ./configure line to the folder where you downloaded the repository.

Enviroment variables

Before you compile any project you have to set some environment variables:

export PKG_CONFIG_PATH=`pwd`
export LD_LIBRARY_PATH=`pwd`

If you want that to run any time you open a new console/terminal you can place those commands in your .bashrc. First find the current path:

cd
nano ~/.bashrc

copy both lines at the end and save:

export PKG_CONFIG_PATH="/PATH/TO/IBSIMU/FOLDER"
export LD_LIBRARY_PATH="/PATH/TO/IBSIMU/FOLDER"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment