Skip to content

Commit d24a6ff

Browse files
committed
修复wsl启动问题
1 parent afa3bc9 commit d24a6ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

StegLLM/linux_mac.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ if [ -z "$gguf" ]; then
4646
fi
4747
# 启动 llama-server
4848
llamaServer=$(find "${dataDir}/${name}" -type f -name 'llama-server' | head -n 1)
49+
LIB_DIR="$(dirname "$llamaServer")"
50+
# 添加临时环境变量
51+
export LD_LIBRARY_PATH="$LIB_DIR:$LD_LIBRARY_PATH"
52+
if [ ! -f "$LIB_DIR/libgomp.so.1" ]; then
53+
sudo apt-get install -y libcurl4-openssl-dev libgomp1
54+
fi
4955
port=8090
5056
"$llamaServer" \
5157
-m "$gguf" \

0 commit comments

Comments
 (0)