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

Common Issues and Fixes #12

Open
kromy opened this issue Feb 27, 2024 · 0 comments
Open

Common Issues and Fixes #12

kromy opened this issue Feb 27, 2024 · 0 comments

Comments

@kromy
Copy link

kromy commented Feb 27, 2024

Salam all,

this is just to point out some of the issues and fixes(I'm using Ubuntu 22):

1- you need to ensure that below packages are installed by:

sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential default-jdk flex bison graphviz texlive-font-utils git xutils-dev

2- download xsb which is a pre-requesit and unzip it to /usr/local/bin by:

wget "https://sourceforge.net/projects/xsb/files/xsb/5.0%20%28Green%20Tea%29/XSB-5.0.tar.gz/download" -O - | sudo tar -zx -C /usr/local/bin

3- Build xsb by(this should be run under XSB or XSB/build):

sudo ./configure -prefix=/usr/local/bin
sudo ./makexsb
sudo ./makexsb install

4- important Environment variable to be added to (~/.bashrc)

export MULVALROOT=/location/to/the/repo/of/Mulval
export PATH=$PATH:"$MULVALROOT/bin":"$MULVALROOT/utils":/usr/local/bin/XSB/bin
source ~/.bashrc

5- Clone the repo and apply patches by:

git clone https://github.com/risksense/mulval.git (the absolute path of this will be MULVALROOT mentioned above)

cd mulval

wget "https://patch-diff.githubusercontent.com/raw/risksense/mulval/pull/9.patch" -O - | git apply -

make

to test you can run graph_gen.sh testcases/3host/input.P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant