如何解决安装XPaF基于XPath的解析框架时出错
所有必需的库都已较早安装。
执行步骤3(制造)时,会出现错误:
libtool: link: g++ -DNDEBUG -I./src -I/opt/local/include -I/usr/include/libxml2 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -g -O2 -o .libs/init_test src/testing/gtest_main.o src/testing/init_test.o -L/opt/local/lib -lxml2 -lre2 -lprotobuf ./.libs/libxpaf.so -lgflags -lgtest
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:950: recipe for target 'init_test' failed
make[1]: *** [init_test] Error 1
make[1]: exit directory «/home/user/xpaf»
Makefile:757: recipe for target 'all' failed
make: *** [all] Error 2
请帮助!
存储库https://github.com/google/xpaf 操作系统:Ubuntu 18.04 bionic
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。