Skip to content

Commit 6128a91

Browse files
committed
trying somethning else (+1 squashed commits)
Squashed commits: [bf497e5] trying somethning else
1 parent fedd529 commit 6128a91

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

koboldcpp.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ KCPP_CUDA=$(<conda/envs/linux/cudaver)
2828
KCPP_CUDAAPPEND=-cuda${KCPP_CUDA//.}$KCPP_APPEND
2929

3030
if [ -n "$TRANSPLANT_TK" ]; then
31+
echo Check system tk and python
32+
python3 --version
33+
ldd "/usr/lib/x86_64-linux-gnu/libtk8.6.so"
34+
python3 - <<'EOF'
35+
import tkinter
36+
print("System TK version:", tkinter.Tcl().call("info", "patchlevel"))
37+
EOF
3138
echo Attempting to use a transplanted tkinter from ubuntu-24.04.3 to fix fontconfig issues
3239
bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF'
3340
import tkinter
@@ -36,9 +43,8 @@ EOF
3643
ldd "conda/envs/linux/lib/libtk8.6.so"
3744
rm -f "conda/envs/linux/lib/libtcl8.6.so"
3845
rm -f "conda/envs/linux/lib/libtk8.6.so"
39-
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtcl8.6.so --output conda/envs/linux/lib/libtcl8.6.so
40-
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtk8.6.so --output conda/envs/linux/lib/libtk8.6.so
41-
chmod 755 "conda/envs/linux/lib/libtcl8.6.so" "conda/envs/linux/lib/libtk8.6.so"
46+
ln -s /usr/lib/x86_64-linux-gnu/libtk8.6.so conda/envs/linux/lib/libtk8.6.so
47+
ln -s /usr/lib/x86_64-linux-gnu/libtcl8.6.so conda/envs/linux/lib/libtcl8.6.so
4248
ls -lah conda/envs/linux/lib
4349
bin/micromamba run -r conda -p conda/envs/linux python - <<'EOF'
4450
import tkinter

0 commit comments

Comments
 (0)