diff --git a/lief/install-root-archlinux b/lief/install-root-archlinux new file mode 100755 index 0000000..85ead51 --- /dev/null +++ b/lief/install-root-archlinux @@ -0,0 +1,3 @@ +#!/bin/bash -ex + +pacman -Syu --noconfirm --needed cmake diff --git a/lief/install-root-debian b/lief/install-root-debian index 66a66e7..ab750cc 100755 --- a/lief/install-root-debian +++ b/lief/install-root-debian @@ -1,3 +1,3 @@ #!/bin/bash -ex -apt-get -y install cmake python2-dev +apt-get -y install cmake diff --git a/lief/install-root-fedora b/lief/install-root-fedora new file mode 100755 index 0000000..9bede70 --- /dev/null +++ b/lief/install-root-fedora @@ -0,0 +1,3 @@ +#!/bin/bash -ex + +dnf install -y cmake diff --git a/miasm/install b/miasm/install index e7d9954..4119152 100755 --- a/miasm/install +++ b/miasm/install @@ -3,6 +3,13 @@ git clone --depth 1 https://github.com/serpilliere/elfesteem.git git clone --depth 1 https://github.com/cea-sec/miasm.git -ctf-tools-pip install -U llvmlite +if which llvm-config-3.9 2>&1 >/dev/null; then + export LLVM_CONFIG=$(which llvm-config-3.9) + ctf-tools-pip install -U enum34 "llvmlite==0.16" +elif which llvm-config-3.8 2>&1 >/dev/null; then + export LLVM_CONFIG=$(which llvm-config-3.8) + ctf-tools-pip install -U enum34 "llvmlite==0.15" +fi + ctf-tools-pip install -e elfesteem ctf-tools-pip install -e miasm diff --git a/miasm/install-root-debian b/miasm/install-root-debian index 1453e56..9fe368f 100755 --- a/miasm/install-root-debian +++ b/miasm/install-root-debian @@ -1,4 +1,7 @@ #!/bin/bash -ex -apt-get install -y zlib zlib-dev libstdc++6-4.9-dev libstdc++6 \ - llvm-3.5 llvm--3.5-dev libedit libedit-dev +apt-get install -y \ + zlib1g zlib1g-dev \ + libstdc++6 \ + llvm-3.8 llvm-3.8-dev clang-3.8 \ + libedit2 libedit-dev diff --git a/miasm/install-root-fedora b/miasm/install-root-fedora index 3f1fc06..9424c31 100755 --- a/miasm/install-root-fedora +++ b/miasm/install-root-fedora @@ -1,4 +1,6 @@ #!/bin/bash -ex -dnf install -y zlib zlib-devel libstdc++-devel libstdc++ libstdc++-static \ - llvm-3.5.0 llvm-devel-3.5.0 libedit libedit-devel +dnf install -y zlib zlib-devel \ + libstdc++-devel libstdc++ libstdc++-static \ + llvm llvm-devel \ + libedit libedit-devel