Skip to content

Commit dc57e15

Browse files
Update minimal Linux install script to work for Ubuntu libc (#28)
1 parent bd280c3 commit dc57e15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bundle/linux/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ check_glibc_version() {
6262
LIBC_PATH=/lib64/libc.so.6
6363
elif [ -f /lib/libc.so.6 ]; then
6464
LIBC_PATH=/lib/libc.so.6
65+
elif [ -f /usr/lib/x86_64-linux-gnu/libc.so.6 ]; then
66+
LIBC_PATH=/usr/lib/x86_64-linux-gnu/libc.so.6
6567
else
6668
log_error "Could not find glibc."
6769
return 1
6870
fi
6971

70-
glibc_version=$("$LIBC_PATH" | sed -n 's/^GNU C Library (GNU libc) stable release version \([0-9]*\)\.\([0-9]*\).*$/\1.\2/p')
72+
glibc_version=$("$LIBC_PATH" | sed -n 's/^GNU C Library (.*) stable release version \([0-9]*\)\.\([0-9]*\).*$/\1.\2/p')
7173

7274
if [ -z "$glibc_version" ]; then
7375
log_error "Could not determine glibc version."

0 commit comments

Comments
 (0)