Skip to content

Commit bfb9d47

Browse files
committed
Add build-essential installation
e.g. it won't come installed on Intel Shappire instances on AWS when using the default Ubuntu 24.04 image, so we need to install it to use `rustc` and not get the error "linker 'cc' not found"
1 parent 8639ce5 commit bfb9d47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/hf-setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ install_package fd-find
140140
# Also install git-lfs required when working with Hugging Face Hub repositories
141141
install_package git-lfs
142142
143+
# Finally, install `build-essential` to install the `gcc` toolchain required for
144+
# `rustc` if not installed already
145+
install_package build-essential
146+
143147
# Remove pyenv if it exists
144148
if [ -d "$HOME/.pyenv" ]; then
145149
echo "Removing pyenv..."

0 commit comments

Comments
 (0)