Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install script for ubuntu #220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ in Section [Build Dependencies](#build-dependencies) below.
# Configure
$ ./configure --disable-dependency-tracking --prefix /path/

### Installing in ubuntu
The easiest way to build and install the software in ubuntu is downloading the git repository and running the script file "install_on_ubuntu.sh". This file takes care of getting all dependencies and running the necessary commands.

### Building a Windows target

If you are building a Windows target with MinGW you need to pass additional variables and flags to `./configure`:
Expand Down
46 changes: 46 additions & 0 deletions install_on_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

# Update
sudo apt update -y
sudo apt upgrade -y

# Required dependencies when installing from github:
sudo apt install git -y
sudo apt install make -y
sudo apt install automake -y
sudo apt install libtool -y
sudo apt install flex -y
sudo apt install bison -y
sudo apt install pkgconf -y
sudo apt install cmake -y

# Required dependencies
sudo apt install libpopt-dev -y
sudo apt install zlib1g-dev -y
sudo apt install openjdk-11-jdk -y
sudo apt install ant -y

########################### install sylvan & sylvan dependencies #############################
sudo apt install libgmp-dev -y
sudo apt install libhwloc-dev -y
git clone https://github.com/trolando/sylvan.git
cd sylvan
mkdir build
cd build
cmake ..
make
sudo make install
cd ../..

########################## PNML dependencies ##############################
sudo apt install xml2 -y
sudo apt install libxml2-dev -y

################################# install LTSMIN from github #################################
git clone https://github.com/utwente-fmt/ltsmin.git
cd ltsmin
git submodule update --init
./ltsminreconf
./configure
make
sudo make install