mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
23 lines
618 B
Bash
23 lines
618 B
Bash
![]() |
#!/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
|