mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-22 06:45:11 +00:00
transplanted tk
This commit is contained in:
parent
8b066d9765
commit
edfc961ff8
1 changed files with 12 additions and 1 deletions
13
koboldcpp.sh
13
koboldcpp.sh
|
|
@ -29,11 +29,22 @@ KCPP_CUDAAPPEND=-cuda${KCPP_CUDA//.}$KCPP_APPEND
|
|||
|
||||
if [ -n "$TRANSPLANT_TK" ]; then
|
||||
echo Attempting to use a transplanted tkinter from ubuntu-24.04.3 to fix fontconfig issues
|
||||
bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF'
|
||||
import tkinter
|
||||
print("Before Tk version:", tkinter.Tcl().call("info", "patchlevel"))
|
||||
EOF
|
||||
ldd "conda/envs/linux/lib/libtk8.6.so"
|
||||
rm -f "conda/envs/linux/lib/libtcl8.6.so"
|
||||
rm -f "conda/envs/linux/lib/libtk8.6.so"
|
||||
chmod 755 "conda/envs/linux/lib/libtcl8.6.so" "conda/envs/linux/lib/libtk8.6.so"
|
||||
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtcl8.6.so --output conda/envs/linux/lib/libtcl8.6.so
|
||||
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtk8.6.so --output conda/envs/linux/lib/libtk8.6.so
|
||||
chmod 755 "conda/envs/linux/lib/libtcl8.6.so" "conda/envs/linux/lib/libtk8.6.so"
|
||||
ls -lah conda/envs/linux/lib
|
||||
bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF'
|
||||
import tkinter
|
||||
print("After Tk version:", tkinter.Tcl().call("info", "patchlevel"))
|
||||
EOF
|
||||
ldd "conda/envs/linux/lib/libtk8.6.so"
|
||||
echo Tkinter Transplant completed
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue