mirror of
https://github.com/DrHo1y/ezrknn-llm.git
synced 2026-03-23 17:16:44 +07:00
Update install.sh
This commit is contained in:
41
install.sh
41
install.sh
@@ -3,37 +3,38 @@
|
|||||||
# Made by Pelochus
|
# Made by Pelochus
|
||||||
# Check for more info: https://github.com/Pelochus/ezrknn-llm/
|
# Check for more info: https://github.com/Pelochus/ezrknn-llm/
|
||||||
|
|
||||||
echo
|
message_print() {
|
||||||
echo "#########################################"
|
echo
|
||||||
echo "Checking root permission..."
|
echo "#########################################"
|
||||||
echo "#########################################"
|
echo $1
|
||||||
echo
|
echo "#########################################"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
message_print "Checking root permission..."
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
echo "Please run this script as root!"
|
echo "Please run this script as root!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
message_print "Cloning repository..."
|
||||||
echo "#########################################"
|
|
||||||
echo "Cloning repository..."
|
|
||||||
echo "#########################################"
|
|
||||||
echo
|
|
||||||
|
|
||||||
git clone https://github.com/Pelochus/ezrknn-llm.git
|
git clone https://github.com/Pelochus/ezrknn-llm.git
|
||||||
cd ezrknn-llm/
|
cd ezrknn-llm/
|
||||||
|
|
||||||
echo
|
message_print "Installing RKNN LLM libraries..."
|
||||||
echo "#########################################"
|
|
||||||
echo "Installing RKNN LLM..."
|
|
||||||
echo "#########################################"
|
|
||||||
echo
|
|
||||||
|
|
||||||
cp ./rkllm-runtime/runtime/Linux/librkllm_api/aarch64/* /usr/lib
|
cp ./rkllm-runtime/runtime/Linux/librkllm_api/aarch64/* /usr/lib
|
||||||
cp ./rkllm-runtime/runtime/Linux/librkllm_api/include/* /usr/local/include
|
cp ./rkllm-runtime/runtime/Linux/librkllm_api/include/* /usr/local/include
|
||||||
|
|
||||||
echo
|
message_print "Compiling LLM runtime for Linux..."
|
||||||
echo "#########################################"
|
|
||||||
echo "Done!"
|
cd ./rkllm-runtime/example
|
||||||
echo "#########################################"
|
bash build-linux.sh
|
||||||
echo
|
|
||||||
|
message_pint "Moving rkllm to /usr/bin"
|
||||||
|
|
||||||
|
cp ./build/build_aarch64_release/llm_demo /usr/bin/rkllm # We also change the name for remembering how to call it from shell
|
||||||
|
|
||||||
|
message_print "Done!"
|
||||||
|
|||||||
Reference in New Issue
Block a user