Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Fail fast on WSL1 while allowing on WSL2

Daniel Hiltgen2fcd41ef81e5
diff --git a/scripts/install.sh b/scripts/install.sh
index 30004584e..ea405dab0 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -33,6 +33,14 @@ case "$ARCH" in
*) error "Unsupported architecture: $ARCH" ;;
esac
+KERN=$(uname -r)
+case "$KERN" in
+ *icrosoft*WSL2 | *icrosoft*wsl2) ;;
+ *icrosoft) error "Microsoft WSL1 is not currently supported. Please upgrade to WSL2 with 'wsl --set-version <distro> 2'" ;;
+ *) ;;
+esac
+
+
SUDO=
if [ "$(id -u)" -ne 0 ]; then
# Running as root, no need for sudo