You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae7e5a1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): explain missing libatomic dependency during Linux installation
This commit fixes the missing libatomic dependency during Linux installation. When the libatomic.so.1 is missing, the installer now tells users to install the package that provides it and rerun the installer. Works across Linux distributions.
Signed-off-by: Vibhu Prashar <[email protected]>
"${staging}/t3" --version >/dev/null || fail "the downloaded executable does not run"
212
+
if LC_ALL=C "${staging}/t3" --version >/dev/null 2>"${staging}/version.errors";then
213
+
cat "${staging}/version.errors">&2
214
+
rm -f "${staging}/version.errors"
215
+
else
216
+
if"$interactive";thenprintf'\n'>&2;fi
217
+
cat "${staging}/version.errors">&2
218
+
if [ "$platform"= linux ] && grep -Fq 'error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory'"${staging}/version.errors";then
219
+
printf'%s\n' \
220
+
'' \
221
+
't3 install: the downloaded executable requires libatomic.so.1' \
222
+
'' \
223
+
' Use your Linux package manager to install the package' \
224
+
' providing libatomic.so.1 (commonly named libatomic or libatomic1).'>&2
225
+
fail "install the library, then rerun the installer"
0 commit comments