Skip to content

Commit

Permalink
Add hack for Debian's lack of ldconfig.real
Browse files Browse the repository at this point in the history
Signed-off-by: Dean Troyer <dean.troyer@salad.com>
  • Loading branch information
dtroyer-salad committed Jan 10, 2023
1 parent b04aa01 commit 7ef0597
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install-cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,9 @@ sudo apt-get update
sudo apt-get install -y nvidia-docker2

sudo /etc/init.d/docker start

# Hack-around a difference in Ubuntu and Debian
if [[ ! -x /sbin/ldconfig.real ]]; then
# nvidia-container-cli expects to find ldconfig.real which doesn't exist on Debian
sudo ln /sbin/ldconfig /sbin/ldconfig.real
fi

0 comments on commit 7ef0597

Please sign in to comment.