yum -y install git

问题1

在这里插入图片描述

config.status: creating Makefile
config.status: creating src/glog/logging.h
config.status: creating src/glog/raw_logging.h
config.status: creating src/glog/vlog_is_on.h
config.status: creating src/glog/stl_logging.h
config.status: creating libglog.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14 -I m4
/bin/sh: aclocal-1.14: command not found
make: *** [aclocal.m4] Error 127
glog install fail. please check compile error info.

解决

 wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
 wget ftp://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz
 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
 
 >tar -zxf automake-1.14.tar.gz
 >cd automake
 >./configure
 >make && make install
 
 >tar -zxf autoconf-1.14.tar.gz
 >cd autoconf
 >./configure
 >make && make install

问题2

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pAAEzpcm-1648197150444)(C:\Users\DreamCause\AppData\Roaming\Typora\typora-user-images\image-20220325154844223.png)]

将automake中的test-driver,cp到glog目录下

问题3

ons.o out-static/util/status.o out-static/port/port_posix.o out-static/port/port_posix_sse.o out-static/util/testutil.o -o out-static/db_bench 
g++ -pthread -I. -I./include -std=c++0x -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT -O2 -DNDEBUG db/leveldbutil.cc out-static/db/builder.o out-static/db/c.o out-static/db/dbformat.o out-static/db/db_impl.o out-static/db/db_iter.o out-static/db/dumpfile.o out-static/db/filename.o out-static/db/log_reader.o out-static/db/log_writer.o out-static/db/memtable.o out-static/db/repair.o out-static/db/table_cache.o out-static/db/version_edit.o out-static/db/version_set.o out-static/db/write_batch.o out-static/table/block_builder.o out-static/table/block.o out-static/table/filter_block.o out-static/table/format.o out-static/table/iterator.o out-static/table/merger.o out-static/table/table_builder.o out-static/table/table.o out-static/table/two_level_iterator.o out-static/util/arena.o out-static/util/bloom.o out-static/util/cache.o out-static/util/coding.o out-static/util/comparator.o out-static/util/crc32c.o out-static/util/env.o out-static/util/env_posix.o out-static/util/filter_policy.o out-static/util/hash.o out-static/util/histogram.o out-static/util/logging.o out-static/util/options.o out-static/util/status.o out-static/port/port_posix.o out-static/port/port_posix_sse.o -o out-static/leveldbutil 
install leveldb ok.
+ autoreconf -f -i -Wall,no-obsolete
configure.ac:93: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
checking whether to enable maintainer-specific portions of Makefiles... yes
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
make: *** No targets specified and no makefile found.  Stop.
autoinstall.sh: line 84: cd: protobuf: No such file or directory
protobuf install fail. please check compile error info.

解决

#将系统拥有的/usr/share/aclocal中文件拷贝到重复安装路径
cp -rf /usr/share/aclocal/* /usr/local/share/aclocal

参考https://blog.csdn.net/turbock/article/details/107718734

问题4

og/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxcomm/log/phxlog -Wall -Werror -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/protobuf/include -fpermissive -shared -Wall -Werror  -c -o gtid_handler.o gtid_handler.cpp
ar -cvq /root/phxsql/.lib/libgtidhandler.a gtid_handler.o
a - gtid_handler.o
g++ -std=c++11 -I/root/phxsql -I/root/phxsql/third_party/protobuf/include  -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/gflags/include -I/root/phxsql/third_party/glog/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxcomm/log/phxlog -Wall -Werror -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/protobuf/include -fpermissive -shared -Wall -Werror  -c -o mysql_command.o mysql_command.cpp
In file included from mysql_command.h:14:0,
                 from mysql_command.cpp:11:
/root/phxsql/percona/include/mysql.h:71:27: fatal error: mysql_version.h: No such file or directory
 #include "mysql_version.h"

解决

yum install mysql-devel
cp /usr/include/mysql/mysql_version.h /root/phxsql/percona/include/

问题5

g++ -std=c++11 -I/root/phxsql -I/root/phxsql/third_party/protobuf/include  -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/gflags/include -I/root/phxsql/third_party/glog/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/agent -I/root/phxsql/phxbinlogsvr/core/handler -I/root/phxsql/phxbinlogsvr/core/monitor -I/root/phxsql/phxbinlogsvr/core/monitor/base -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/paxos -I/root/phxsql/phxbinlogsvr/core/repl -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/framework/phxrpc/client -I/root/phxsql/phxbinlogsvr/framework/phxrpc/svr -I/root/phxsql/phxbinlogsvr/framework/proto -I/root/phxsql/phxbinlogsvr/framework/rpccomm -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxglog -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/net -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/phxpaxos/include -I/root/phxsql/third_party/phxpaxos/plugin/include -I/root/phxsql/third_party/phxrpc -I/root/phxsql/third_party/protobuf/include -Werror -fPIC -fpermissive -shared -Werror -Wall  -c -o phxbinlog_main.o phxbinlog_main.cpp
g++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/root/phxsql/third_party/phxpaxos/lib -L/root/phxsql/.lib -L/root/phxsql/third_party/protobuf/lib -L/root/phxsql/third_party/leveldb/lib/ -L/root/phxsql/third_party/gflags/lib -L/root/phxsql/third_party/glog/lib -L -L -L/root/phxsql/percona/libmysql -L/root/phxsql/third_party/colib/lib -static-libgcc -static-libstdc++ -Wl,--no-as-needed -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /root/phxsql/third_party/phxpaxos/lib/libphxpaxos_plugin.a /root/phxsql/third_party/phxpaxos/lib/libphxpaxos.a /root/phxsql/third_party/leveldb/lib//libleveldb.a /root/phxsql/third_party/protobuf/lib/libprotobuf.a /root/phxsql/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /root/phxsql/third_party/glog/lib/libglog.a /root/phxsql/third_party/gflags/lib/libgflags.a -lpthread /root/phxsql/third_party/phxrpc/lib/libphxrpc.a
g++: error: /root/phxsql/percona/libmysql/libperconaserverclient.a: No such file or directory
make[4]: *** [phxbinlogsvr_phxrpc] Error 1
make[4]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc/svr'
make[3]: *** [sub_dir] Error 1
make[3]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc'
make[2]: *** [sub_dir] Error 1
make[2]: Leaving directory `/root/phxsql/phxbinlogsvr/framework'
make[1]: *** [sub_dir] Error 1
make[1]: Leaving directory `/root/phxsql/phxbinlogsvr'
make: *** [sub_dir] Error 1

解决

拷贝其他机器的libperconaserverclient.a到/root/phxsql/percona/libmysql/libperconaserverclient.a

问题6

g++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/root/phxsql/third_party/phxpaxos/lib -L/root/phxsql/.lib -L/root/phxsql/third_party/protobuf/lib -L/root/phxsql/third_party/leveldb/lib/ -L/root/phxsql/third_party/gflags/lib -L/root/phxsql/third_party/glog/lib -L -L -L/root/phxsql/percona/libmysql -L/root/phxsql/third_party/colib/lib -static-libgcc -static-libstdc++ -Wl,--no-as-needed -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /root/phxsql/third_party/phxpaxos/lib/libphxpaxos_plugin.a /root/phxsql/third_party/phxpaxos/lib/libphxpaxos.a /root/phxsql/third_party/leveldb/lib//libleveldb.a /root/phxsql/third_party/protobuf/lib/libprotobuf.a /root/phxsql/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /root/phxsql/third_party/glog/lib/libglog.a /root/phxsql/third_party/gflags/lib/libgflags.a -lpthread /root/phxsql/third_party/phxrpc/lib/libphxrpc.a
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make[4]: *** [phxbinlogsvr_phxrpc] Error 1
make[4]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc/svr'
make[3]: *** [sub_dir] Error 1
make[3]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc'
make[2]: *** [sub_dir] Error 1
make[2]: Leaving directory `/root/phxsql/phxbinlogsvr/framework'
make[1]: *** [sub_dir] Error 1
make[1]: Leaving directory `/root/phxsql/phxbinlogsvr'
make: *** [sub_dir] Error 1

解决

 yum -y install libstdc*

问题7
yum -y install git

问题1

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-lot1ltQn-1648197272263)(C:\Users\DreamCause\AppData\Roaming\Typora\typora-user-images\image-20220325150056441.png)]

config.status: creating Makefile
config.status: creating src/glog/logging.h
config.status: creating src/glog/raw_logging.h
config.status: creating src/glog/vlog_is_on.h
config.status: creating src/glog/stl_logging.h
config.status: creating libglog.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14 -I m4
/bin/sh: aclocal-1.14: command not found
make: *** [aclocal.m4] Error 127
glog install fail. please check compile error info.

解决

 wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
 wget ftp://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz
 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
 
 >tar -zxf automake-1.14.tar.gz
 >cd automake
 >./configure
 >make && make install
 
 >tar -zxf autoconf-1.14.tar.gz
 >cd autoconf
 >./configure
 >make && make install

问题2

在这里插入图片描述

将automake中的test-driver,cp到glog目录下

问题3

ons.o out-static/util/status.o out-static/port/port_posix.o out-static/port/port_posix_sse.o out-static/util/testutil.o -o out-static/db_bench 
g++ -pthread -I. -I./include -std=c++0x -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT -O2 -DNDEBUG db/leveldbutil.cc out-static/db/builder.o out-static/db/c.o out-static/db/dbformat.o out-static/db/db_impl.o out-static/db/db_iter.o out-static/db/dumpfile.o out-static/db/filename.o out-static/db/log_reader.o out-static/db/log_writer.o out-static/db/memtable.o out-static/db/repair.o out-static/db/table_cache.o out-static/db/version_edit.o out-static/db/version_set.o out-static/db/write_batch.o out-static/table/block_builder.o out-static/table/block.o out-static/table/filter_block.o out-static/table/format.o out-static/table/iterator.o out-static/table/merger.o out-static/table/table_builder.o out-static/table/table.o out-static/table/two_level_iterator.o out-static/util/arena.o out-static/util/bloom.o out-static/util/cache.o out-static/util/coding.o out-static/util/comparator.o out-static/util/crc32c.o out-static/util/env.o out-static/util/env_posix.o out-static/util/filter_policy.o out-static/util/hash.o out-static/util/histogram.o out-static/util/logging.o out-static/util/options.o out-static/util/status.o out-static/port/port_posix.o out-static/port/port_posix_sse.o -o out-static/leveldbutil 
install leveldb ok.
+ autoreconf -f -i -Wall,no-obsolete
configure.ac:93: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
checking whether to enable maintainer-specific portions of Makefiles... yes
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
make: *** No targets specified and no makefile found.  Stop.
autoinstall.sh: line 84: cd: protobuf: No such file or directory
protobuf install fail. please check compile error info.

解决

#将系统拥有的/usr/share/aclocal中文件拷贝到重复安装路径
cp -rf /usr/share/aclocal/* /usr/local/share/aclocal

参考https://blog.csdn.net/turbock/article/details/107718734

问题4

og/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxcomm/log/phxlog -Wall -Werror -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/protobuf/include -fpermissive -shared -Wall -Werror  -c -o gtid_handler.o gtid_handler.cpp
ar -cvq /root/phxsql/.lib/libgtidhandler.a gtid_handler.o
a - gtid_handler.o
g++ -std=c++11 -I/root/phxsql -I/root/phxsql/third_party/protobuf/include  -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/gflags/include -I/root/phxsql/third_party/glog/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxcomm/log/phxlog -Wall -Werror -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/protobuf/include -fpermissive -shared -Wall -Werror  -c -o mysql_command.o mysql_command.cpp
In file included from mysql_command.h:14:0,
                 from mysql_command.cpp:11:
/root/phxsql/percona/include/mysql.h:71:27: fatal error: mysql_version.h: No such file or directory
 #include "mysql_version.h"

解决

yum install mysql-devel
cp /usr/include/mysql/mysql_version.h /root/phxsql/percona/include/

问题5

g++ -std=c++11 -I/root/phxsql -I/root/phxsql/third_party/protobuf/include  -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/gflags/include -I/root/phxsql/third_party/glog/include -Wall -g -fPIC -m64 -I/root/phxsql/include -I/root/phxsql/percona/include -I/root/phxsql/phxbinlogsvr/config -I/root/phxsql/phxbinlogsvr/core -I/root/phxsql/phxbinlogsvr/core/agent -I/root/phxsql/phxbinlogsvr/core/handler -I/root/phxsql/phxbinlogsvr/core/monitor -I/root/phxsql/phxbinlogsvr/core/monitor/base -I/root/phxsql/phxbinlogsvr/core/mysql -I/root/phxsql/phxbinlogsvr/core/paxos -I/root/phxsql/phxbinlogsvr/core/repl -I/root/phxsql/phxbinlogsvr/core/storage -I/root/phxsql/phxbinlogsvr/framework/phxrpc/client -I/root/phxsql/phxbinlogsvr/framework/phxrpc/svr -I/root/phxsql/phxbinlogsvr/framework/proto -I/root/phxsql/phxbinlogsvr/framework/rpccomm -I/root/phxsql/phxbinlogsvr/proto -I/root/phxsql/phxbinlogsvr/statistics -I/root/phxsql/phxcomm -I/root/phxsql/phxcomm/configparser -I/root/phxsql/phxcomm/configparser/inih-master -I/root/phxsql/phxcomm/configparser/inih-master/cpp -I/root/phxsql/phxcomm/log/phxglog -I/root/phxsql/phxcomm/log/phxlog -I/root/phxsql/phxcomm/net -I/root/phxsql/phxcomm/utils -I/root/phxsql/third_party/leveldb/include -I/root/phxsql/third_party/phxpaxos/include -I/root/phxsql/third_party/phxpaxos/plugin/include -I/root/phxsql/third_party/phxrpc -I/root/phxsql/third_party/protobuf/include -Werror -fPIC -fpermissive -shared -Werror -Wall  -c -o phxbinlog_main.o phxbinlog_main.cpp
g++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/root/phxsql/third_party/phxpaxos/lib -L/root/phxsql/.lib -L/root/phxsql/third_party/protobuf/lib -L/root/phxsql/third_party/leveldb/lib/ -L/root/phxsql/third_party/gflags/lib -L/root/phxsql/third_party/glog/lib -L -L -L/root/phxsql/percona/libmysql -L/root/phxsql/third_party/colib/lib -static-libgcc -static-libstdc++ -Wl,--no-as-needed -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /root/phxsql/third_party/phxpaxos/lib/libphxpaxos_plugin.a /root/phxsql/third_party/phxpaxos/lib/libphxpaxos.a /root/phxsql/third_party/leveldb/lib//libleveldb.a /root/phxsql/third_party/protobuf/lib/libprotobuf.a /root/phxsql/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /root/phxsql/third_party/glog/lib/libglog.a /root/phxsql/third_party/gflags/lib/libgflags.a -lpthread /root/phxsql/third_party/phxrpc/lib/libphxrpc.a
g++: error: /root/phxsql/percona/libmysql/libperconaserverclient.a: No such file or directory
make[4]: *** [phxbinlogsvr_phxrpc] Error 1
make[4]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc/svr'
make[3]: *** [sub_dir] Error 1
make[3]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc'
make[2]: *** [sub_dir] Error 1
make[2]: Leaving directory `/root/phxsql/phxbinlogsvr/framework'
make[1]: *** [sub_dir] Error 1
make[1]: Leaving directory `/root/phxsql/phxbinlogsvr'
make: *** [sub_dir] Error 1

解决

拷贝其他机器的libperconaserverclient.a到/root/phxsql/percona/libmysql/libperconaserverclient.a

问题6

g++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/root/phxsql/third_party/phxpaxos/lib -L/root/phxsql/.lib -L/root/phxsql/third_party/protobuf/lib -L/root/phxsql/third_party/leveldb/lib/ -L/root/phxsql/third_party/gflags/lib -L/root/phxsql/third_party/glog/lib -L -L -L/root/phxsql/percona/libmysql -L/root/phxsql/third_party/colib/lib -static-libgcc -static-libstdc++ -Wl,--no-as-needed -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /root/phxsql/third_party/phxpaxos/lib/libphxpaxos_plugin.a /root/phxsql/third_party/phxpaxos/lib/libphxpaxos.a /root/phxsql/third_party/leveldb/lib//libleveldb.a /root/phxsql/third_party/protobuf/lib/libprotobuf.a /root/phxsql/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /root/phxsql/third_party/glog/lib/libglog.a /root/phxsql/third_party/gflags/lib/libgflags.a -lpthread /root/phxsql/third_party/phxrpc/lib/libphxrpc.a
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make[4]: *** [phxbinlogsvr_phxrpc] Error 1
make[4]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc/svr'
make[3]: *** [sub_dir] Error 1
make[3]: Leaving directory `/root/phxsql/phxbinlogsvr/framework/phxrpc'
make[2]: *** [sub_dir] Error 1
make[2]: Leaving directory `/root/phxsql/phxbinlogsvr/framework'
make[1]: *** [sub_dir] Error 1
make[1]: Leaving directory `/root/phxsql/phxbinlogsvr'
make: *** [sub_dir] Error 1

解决

 yum -y install libstdc*

问题7

在这里插入图片描述

解决

yum -y install readline-devel*

解决

yum -y install readline-devel*
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐