linux 卸载boost库

rm -rf /usr/lib64/boost

rm -rf /usr/include/boost/

非编译安装 yum install boost-devel

查看boost库版本:

cat /usr/include/boost/version.hpp

安装别的库时,若有提示 MySQL currently requires boost_1_59_0

cmake -DWITH_BOOST=/home/boost/boost_1_59_0 .

./b2  提示 fatal error: bzlib.h: No such file or directory

yum install bzip2-devel    (apt对应的库自己百度看)

编译xtrabackup

失败情况下需要

rm -rf CMakeCache.txt  再尝试

-bash: /usr/bin/cmake: No such file or directory错误

解决方法:

先将旧的安装移除

在cmake源码目录 

make uninstall

开始新的安装指定目录到/usr

./bootstrap --prefix=/usr/

gmake

make install

问题提示:

-- Running cmake version 3.5.1
-- Found Git: /usr/bin/git (found version "1.8.3.1")
-- This is el6, el7 or el8 as found from 'uname -r' or 'rpm -qf /'
-- We probably need some devtoolset compiler
CMake Warning at CMakeLists.txt:294 (MESSAGE):
  Could not find devtoolset gcc


-- MySQL 8.0.22
-- Xtrabackup 8.0.22-15
-- Source directory xxxx
-- Binary directory xxxx
CMake Error at CMakeLists.txt:399 (MESSAGE):
  Please do not build in-source.  Out-of source builds are highly
  recommended: you can have multiple builds for the same source, and there is
  an easy way to do cleanup, simply remove the build directory (note that
  'make clean' or 'make distclean' does *not* work)

  You *can* force in-source build by invoking cmake with
  -DFORCE_INSOURCE_BUILD=1

解决方法:

rm -rf CMakeCache.txt

建个子目录  mkdir build

cd build 后 再 cmake ..   (两个点)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值