-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
# Build llama.cpp standalone
git clone https://github.com/ggerganov/llama.cpp
mkdir llama.cpp
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=ON
cmake --build . --config Release
# Export path
export LLAMA_CPP_LIB=/path/to/shared/library
# Install llama-cpp-python with LLAMA_BUILD_OFF
CMAKE_ARGS="LLAMA_BUILD=OFF" pip install llama-cpp-pythonOriginally posted by @abetlen in #1070 (comment)
When I want to use an local existed PR from llama.cpp to install llama-cpp-python, it faid at build stage. When I use cmake .. -DBUILD_SHARED_LIBS=ONto compile, the following error occurs. What is the reason?In addition, what path should the Export path point to? Thank you~~
/usr/bin/ld: /lib/aarch64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [tests/CMakeFiles/test-tokenizer-1-llama.dir/build.make:117: bin/test-tokenizer-1-llama] Error 1
make[1]: *** [CMakeFiles/Makefile2:1912: tests/CMakeFiles/test-tokenizer-1-llama.dir/all] Error 2```
kinchahoy
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested