Tencent / plato

腾讯高性能分布式图计算框架Plato
Other
1.9k stars 331 forks source link

安装依赖文件报错 #123

Open jmzhoulab opened 4 years ago

jmzhoulab commented 4 years ago

Linux环境:CentOS 7.3

在执行 ./3rdtools.sh distclean && ./3rdtools.sh install 出现如下错误:

config.status: executing libtool commands
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c -o src/libglog_la-logging.lo `test -f 'src/logging.cc' || echo './'`src/logging.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -o src/libglog_la-logging.o
mv -f src/.deps/libglog_la-logging.Tpo src/.deps/libglog_la-logging.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c -o src/libglog_la-raw_logging.lo `test -f 'src/raw_logging.cc' || echo './'`src/raw_logging.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -o src/libglog_la-raw_logging.o
mv -f src/.deps/libglog_la-raw_logging.Tpo src/.deps/libglog_la-raw_logging.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c -o src/libglog_la-vlog_is_on.lo `test -f 'src/vlog_is_on.cc' || echo './'`src/vlog_is_on.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -o src/libglog_la-vlog_is_on.o
mv -f src/.deps/libglog_la-vlog_is_on.Tpo src/.deps/libglog_la-vlog_is_on.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c -o src/libglog_la-utilities.lo `test -f 'src/utilities.cc' || echo './'`src/utilities.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -o src/libglog_la-utilities.o
mv -f src/.deps/libglog_la-utilities.Tpo src/.deps/libglog_la-utilities.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c -o src/libglog_la-demangle.lo `test -f 'src/demangle.cc' || echo './'`src/demangle.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -o src/libglog_la-demangle.o
mv -f src/.deps/libglog_la-demangle.Tpo src/.deps/libglog_la-demangle.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c -o src/libglog_la-symbolize.lo `test -f 'src/symbolize.cc' || echo './'`src/symbolize.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -o src/libglog_la-symbolize.o
mv -f src/.deps/libglog_la-symbolize.Tpo src/.deps/libglog_la-symbolize.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c -o src/libglog_la-signalhandler.lo `test -f 'src/signalhandler.cc' || echo './'`src/signalhandler.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I/data/zhoujm/plato/3rd/libunwind/include -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-signalhandler.lo -MD -MP -MF src/.deps/libglog_la-signalhandler.Tpo -c src/signalhandler.cc -o src/libglog_la-signalhandler.o
mv -f src/.deps/libglog_la-signalhandler.Tpo src/.deps/libglog_la-signalhandler.Plo
/bin/sh ./libtool  --tag=CXX   --mode=link g++  -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC   -L/data/zhoujm/plato/3rd/libunwind/lib -o libglog.la -rpath /data/zhoujm/plato/3rd/glog-0.4.0/lib  src/libglog_la-logging.lo src/libglog_la-raw_logging.lo src/libglog_la-vlog_is_on.lo src/libglog_la-utilities.lo src/libglog_la-demangle.lo src/libglog_la-symbolize.lo src/libglog_la-signalhandler.lo   -L/data/zhoujm/plato/3rd/gflags-2.2.1/lib -lgflags -lunwind -lpthread
libtool: link: ar cru .libs/libglog.a  src/libglog_la-logging.o src/libglog_la-raw_logging.o src/libglog_la-vlog_is_on.o src/libglog_la-utilities.o src/libglog_la-demangle.o src/libglog_la-symbolize.o src/libglog_la-signalhandler.o
libtool: link: ranlib .libs/libglog.a
libtool: link: ( cd ".libs" && rm -f "libglog.la" && ln -s "../libglog.la" "libglog.la" )
g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -I/data/zhoujm/plato/3rd/libunwind/include -pthread   -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -fPIC -MT src/logging_unittest-logging_unittest.o -MD -MP -MF src/.deps/logging_unittest-logging_unittest.Tpo -c -o src/logging_unittest-logging_unittest.o `test -f 'src/logging_unittest.cc' || echo './'`src/logging_unittest.cc
src/logging_unittest.cc:1082:13: 警告:‘void MyCheck(bool, bool)’ defined but not used [-Wunused-function]
 1082 | static void MyCheck(bool a, bool b) {
      |             ^~~~~~~
src/logging_unittest.cc:1079:13: 警告:‘void MyFatal()’ defined but not used [-Wunused-function]
 1079 | static void MyFatal() {
      |             ^~~~~~~
mv -f src/.deps/logging_unittest-logging_unittest.Tpo src/.deps/logging_unittest-logging_unittest.Po
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -pthread   -I/data/zhoujm/plato/3rd/gflags-2.2.1/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -fPIC -pthread -L/data/zhoujm/plato/3rd/libunwind/lib -o logging_unittest  src/logging_unittest-logging_unittest.o  libglog.la  -L/data/zhoujm/plato/3rd/gflags-2.2.1/lib -lgflags -lunwind   -L/data/zhoujm/plato/3rd/gflags-2.2.1/lib -lgflags -lpthread
libtool: link: g++ -pthread -I/data/zhoujm/plato/3rd/gflags-2.2.1/include -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -fPIC -pthread -o logging_unittest src/logging_unittest-logging_unittest.o   -L/data/zhoujm/plato/3rd/libunwind/lib ./.libs/libglog.a -L/data/zhoujm/plato/3rd/gflags-2.2.1/lib /usr/local/gcc-9.3.0/lib/../lib64/libstdc++.so -lm /data/zhoujm/plato/3rd/libunwind-1.3.1/lib/libunwind.a -lc -lgcc_s -lgflags -lpthread -pthread -Wl,-rpath -Wl,/usr/local/gcc-9.3.0/lib/../lib64 -Wl,-rpath -Wl,/usr/local/gcc-9.3.0/lib/../lib64
src/logging_unittest-logging_unittest.o: In function `__static_initialization_and_destruction_0(int, int)':
logging_unittest.cc:(.text+0xe8c3): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
logging_unittest.cc:(.text+0xe979): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
./.libs/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
logging.cc:(.text+0x634a): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
logging.cc:(.text+0x6700): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
logging.cc:(.text+0x6865): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
./.libs/libglog.a(libglog_la-logging.o):logging.cc:(.text+0x693d): more undefined references to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' follow
collect2: error: ld returned 1 exit status
make: *** [logging_unittest] 错误 1
'GFLAGS_LIBS= make' exec failed with code 2, abort install process!
ustcyu commented 4 years ago

请检查是否按照编译步骤执行: 1.需要一个可以访问外网的linux开发环境,下载plato源代码。 2.安装依赖文件,依次执行如下命令: sudo ./docker/install-dependencies.sh ./3rdtools.sh distclean && ./3rdtools.sh install 3.编译,执行如下命令: ./build.sh 4.本地测试,执行如下命令: ./scripts/run_pagerank_local.sh

jmzhoulab commented 4 years ago

请检查是否按照编译步骤执行: 1.需要一个可以访问外网的linux开发环境,下载plato源代码。 2.安装依赖文件,依次执行如下命令: sudo ./docker/install-dependencies.sh ./3rdtools.sh distclean && ./3rdtools.sh install 3.编译,执行如下命令: ./build.sh 4.本地测试,执行如下命令: ./scripts/run_pagerank_local.sh

是按照这个指引来操作的,服务器可以连网,执行到 ./3rdtools.sh distclean && ./3rdtools.sh install 报上述错误

ustcyu commented 4 years ago

gflags有问题,可以尝试修复一下