Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix installation for Kali, changes libicu57 URL #1354

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
14 changes: 10 additions & 4 deletions setup/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ function install_powershell() {
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list'
# Update the list of products
apt-get update
wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6_amd64.deb
dpkg -i libicu57_57.1-6_amd64.deb
# Install libucu57 as stated in https://web.archive.org/web/20190501222044/https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#installation---kali
wget http://http.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u2_amd64.deb
if sha256sum libicu57_57.1-6+deb9u2_amd64.deb | grep '^c2dee82e7ae8fa4dc8fd0d9ad5a28cd41598cfccf5d0a71d0cd6a6bb4ac71f25' >/dev/null; then
dpkg -i libicu57_57.1-6+deb9u2_amd64.deb
else
echo "Failed to install libicu57"
exit 1
fi
# Install PowerShell
apt-get install -y powershell
fi
Expand Down Expand Up @@ -149,11 +155,11 @@ tar -xvf ../data/misc/$Xar_version.tar.gz
#Installing bomutils
git clone https://github.com/hogliux/bomutils.git
(cd bomutils && make)
(cd bomutils && make install)
(cd bomutils && sudo make install)

# NIT: This fails on OSX. Leaving it only on Linux instances.
if uname | grep -q "Linux"; then
(cd bomutils && make install)
(cd bomutils && sudo make install)
fi
chmod 755 bomutils/build/bin/mkbom && sudo cp bomutils/build/bin/mkbom /usr/local/bin/.

Expand Down