Эх сурвалжийг харах

Merge pull request #13936 from cabelo/compatibility

Compatibility
AUTOMATIC1111 1 жил өмнө
parent
commit
e44103264d
2 өөрчлөгдсөн 5 нэмэгдсэн , 3 устгасан
  1. 3 1
      README.md
  2. 2 2
      webui.sh

+ 3 - 1
README.md

@@ -121,7 +121,9 @@ Alternatively, use online services (like Google Colab):
 # Debian-based:
 # Debian-based:
 sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
 sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
 # Red Hat-based:
 # Red Hat-based:
-sudo dnf install wget git python3
+sudo dnf install wget git python3 gperftools-libs libglvnd-glx 
+# openSUSE-based:
+sudo zypper install wget git python3 libtcmalloc4 libglvnd
 # Arch-based:
 # Arch-based:
 sudo pacman -S wget git python3
 sudo pacman -S wget git python3
 ```
 ```

+ 2 - 2
webui.sh

@@ -89,7 +89,7 @@ delimiter="################################################################"
 
 
 printf "\n%s\n" "${delimiter}"
 printf "\n%s\n" "${delimiter}"
 printf "\e[1m\e[32mInstall script for stable-diffusion + Web UI\n"
 printf "\e[1m\e[32mInstall script for stable-diffusion + Web UI\n"
-printf "\e[1m\e[34mTested on Debian 11 (Bullseye)\e[0m"
+printf "\e[1m\e[34mTested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.\e[0m"
 printf "\n%s\n" "${delimiter}"
 printf "\n%s\n" "${delimiter}"
 
 
 # Do not run as root
 # Do not run as root
@@ -223,7 +223,7 @@ fi
 # Try using TCMalloc on Linux
 # Try using TCMalloc on Linux
 prepare_tcmalloc() {
 prepare_tcmalloc() {
     if [[ "${OSTYPE}" == "linux"* ]] && [[ -z "${NO_TCMALLOC}" ]] && [[ -z "${LD_PRELOAD}" ]]; then
     if [[ "${OSTYPE}" == "linux"* ]] && [[ -z "${NO_TCMALLOC}" ]] && [[ -z "${LD_PRELOAD}" ]]; then
-        TCMALLOC="$(PATH=/usr/sbin:$PATH ldconfig -p | grep -Po "libtcmalloc(_minimal|)\.so\.\d" | head -n 1)"
+        TCMALLOC="$(PATH=/sbin:$PATH ldconfig -p | grep -Po "libtcmalloc(_minimal|)\.so\.\d" | head -n 1)"
         if [[ ! -z "${TCMALLOC}" ]]; then
         if [[ ! -z "${TCMALLOC}" ]]; then
             echo "Using TCMalloc: ${TCMALLOC}"
             echo "Using TCMalloc: ${TCMALLOC}"
             export LD_PRELOAD="${TCMALLOC}"
             export LD_PRELOAD="${TCMALLOC}"