kvcache-ai / ktransformers

A Flexible Framework for Experiencing Cutting-edge LLM Inference Optimizations
Apache License 2.0
729 stars 37 forks source link

Update install.sh #43

Closed RealLittleXian closed 2 months ago

RealLittleXian commented 2 months ago

fix error about Linux \r\n

Azure-Tang commented 2 months ago

Hi, thank u for your interest about KTransformers! Could you explain under what circumstances the original install.sh script would trigger a \r\n error? We’ve tested it on Linux and Windows WSL, and it seems to work fine.

RealLittleXian commented 2 months ago

Hello, Just a tiny problem. Ran bash install.sh in my machine and output

install.sh: line 3: $'\r': command not found

Solved with

set ff=unix

The files may retain the Windows-style line endings \r\n which is seen as an incorrect line ending in Linux. The error is usually caused by cross-platform file transfers.

ELigoP commented 2 months ago

I am using Linux, didn't have this error. What is your distribution and shell?

RealLittleXian commented 2 months ago

It is not about your file but the command git clone. link https://stackoverflow.com/questions/23357145/git-clone-in-different-fileformat