【求助帖】43-24.12.3-实战:实时网页信息爬取+RAG的问答系统搭建及发布 #419

Open
opened 2024-12-10 22:04:39 +08:00 by 21547408482cs · 1 comment

安装 xinference失败,日志如下:

ml/src: vendor/llama.cpp/common/libcommon.a vendor/llama.cpp/src/libllama.so vendor/llama.cpp/ggml/src/libggml.so vendor/llama.cpp/ggml/src/libggml-cpu.so vendor/llama.cpp/ggml/src/libggml-base.so && :
FAILED: vendor/llama.cpp/examples/llava/llama-minicpmv-cli
: && /usr/bin/g++ -pthread -B /home/tkc/.conda/envs/xinference/compiler_compat -O3 -DNDEBUG vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o vendor/llama.cpp/examples/llava/CMakeFiles/llama-minicpmv-cli.dir/minicpmv-cli.cpp.o -o vendor/llama.cpp/examples/llava/llama-minicpmv-cli -Wl,-rpath,/tmp/tmp4x01o59x/build/vendor/llama.cpp/src:/tmp/tmp4x01o59x/build/vendor/llama.cpp/ggml/src: vendor/llama.cpp/common/libcommon.a vendor/llama.cpp/src/libllama.so vendor/llama.cpp/ggml/src/libggml.so vendor/llama.cpp/ggml/src/libggml-cpu.so vendor/llama.cpp/ggml/src/libggml-base.so && :
/home/tkc/.conda/envs/xinference/compiler_compat/ld: warning: libdl.so.2, needed by vendor/llama.cpp/ggml/src/libggml.so, not found (try using -rpath or -rpath-link)
/home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to dlsym@GLIBC_2.2.5' /home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to dlclose@GLIBC_2.2.5'
/home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to `dlopen@GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

  *** CMake build failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)

安装 xinference失败,日志如下: ml/src: vendor/llama.cpp/common/libcommon.a vendor/llama.cpp/src/libllama.so vendor/llama.cpp/ggml/src/libggml.so vendor/llama.cpp/ggml/src/libggml-cpu.so vendor/llama.cpp/ggml/src/libggml-base.so && : FAILED: vendor/llama.cpp/examples/llava/llama-minicpmv-cli : && /usr/bin/g++ -pthread -B /home/tkc/.conda/envs/xinference/compiler_compat -O3 -DNDEBUG vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/llava.cpp.o vendor/llama.cpp/examples/llava/CMakeFiles/llava.dir/clip.cpp.o vendor/llama.cpp/examples/llava/CMakeFiles/llama-minicpmv-cli.dir/minicpmv-cli.cpp.o -o vendor/llama.cpp/examples/llava/llama-minicpmv-cli -Wl,-rpath,/tmp/tmp4x01o59x/build/vendor/llama.cpp/src:/tmp/tmp4x01o59x/build/vendor/llama.cpp/ggml/src: vendor/llama.cpp/common/libcommon.a vendor/llama.cpp/src/libllama.so vendor/llama.cpp/ggml/src/libggml.so vendor/llama.cpp/ggml/src/libggml-cpu.so vendor/llama.cpp/ggml/src/libggml-base.so && : /home/tkc/.conda/envs/xinference/compiler_compat/ld: warning: libdl.so.2, needed by vendor/llama.cpp/ggml/src/libggml.so, not found (try using -rpath or -rpath-link) /home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to `dlsym@GLIBC_2.2.5' /home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to `dlclose@GLIBC_2.2.5' /home/tkc/.conda/envs/xinference/compiler_compat/ld: vendor/llama.cpp/ggml/src/libggml.so: undefined reference to `dlopen@GLIBC_2.2.5' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. *** CMake build failed [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for llama-cpp-python Failed to build llama-cpp-python ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)

wget http://ftp.gnu.org/gnu/glibc/glibc-2.2.5.tar.gz
tar -zxvf glibc-2.2.5.tar.gz && cd glibc-2.2.5 && mkdir build && cd build
../configure --prefix=/opt/glibc-2.2.5
make -j4
make all
make install

vim ~/.bashrc
将export LD_LIBRARY_PATH=/opt/glibc-2.2.5/lib:$LD_LIBRARY_PATH添加到文件最后
source ~/.bashrc

wget http://ftp.gnu.org/gnu/glibc/glibc-2.2.5.tar.gz tar -zxvf glibc-2.2.5.tar.gz && cd glibc-2.2.5 && mkdir build && cd build ../configure --prefix=/opt/glibc-2.2.5 make -j4 make all make install vim ~/.bashrc 将export LD_LIBRARY_PATH=/opt/glibc-2.2.5/lib:$LD_LIBRARY_PATH添加到文件最后 source ~/.bashrc
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#419
No description provided.