mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
22 lines
618 B
Bash
Executable file
22 lines
618 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
case "$(uname -s)" in
|
|
Linux*)
|
|
strace -qq -k -e trace=exit /bin/true || {
|
|
echo "This Linux distribution doesn't appear to support strace -k." "Attempting to build & install a recent version..." 1>&2
|
|
git clone -q --depth=1 "https://github.com/strace/strace" -b v5.5 && (
|
|
cd strace &&
|
|
./bootstrap > /dev/null &&
|
|
./configure --quiet --with-libunwind --enable-mpers=no &&
|
|
make -s -j"$(getconf _NPROCESSORS_ONLN || echo 1)" &&
|
|
sudo make install
|
|
)
|
|
}
|
|
;;
|
|
*)
|
|
# Unable to install on other platforms
|
|
false
|
|
;;
|
|
esac
|