一、報(bào)錯(cuò)
在執(zhí)行下面命令的時(shí)候報(bào)錯(cuò)
./mysqld--user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data/ --initialize
?二、解決
注:這個(gè)libstdc++.so.6包,新的肯定包含有舊版本,所以下載新的就行
1、看看是否沒(méi)有對(duì)應(yīng)版本
strings /usr/lib64/libstdc++.so.6 | grep CXXABI
雀食沒(méi)有1.3.11
?2、安裝anaconda因?yàn)檫@里頭有這個(gè)libstdc++.so的包可以直接用
centos安裝Anaconda3
3、找到anaconda3中的libstdc++.so包、
可以看到里面有我們需要的版本
4、將anaconda中的該包復(fù)制到/lib64目錄下
?5、修改軟連接?,即讓這個(gè)軟連接指向最新版本即可
?ln -sf(強(qiáng)制覆蓋)
已經(jīng)修改好了
三、再次報(bào)錯(cuò)
這次是libc.so.6這個(gè)包少東西。根據(jù)報(bào)錯(cuò)信息發(fā)現(xiàn)最多需要2.34版本, 因此我們需要下載2.34版本
?查看一下咱們目前的版本?
下載需要的版本,大版本必里含有小版本的包
wget https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.35.tar.xz
tar -xf glibc-2.35.tar.xz -C /usr/local
mkdir build
cd build/
../configure --prefix=/usr/local/glibc-2.35/
報(bào)錯(cuò):make bison compiler太過(guò)老舊
centos 升級(jí)GCC編譯器
yum -y install centos-release-scl
yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils
scl enable devtoolset-8 bash
echo "source /opt/rh/devtoolset-8/enable" >>/etc/profile
升級(jí)make
[root@host-10-121-1-105 /test1/knowledge_graph/software]# wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz
[root@host-10-121-1-105 /test1/knowledge_graph/software]# tar -xzvf make-4.2.tar.gz -C /test1/knowledge_graph/install
[root@host-10-121-1-105 /test1/knowledge_graph/install]# cd make-4.2/
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# ./configure
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# make
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# sudo make install
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# sudo rm -rf /usr/bin/make
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# sudo cp ./make /usr/bin/
[root@host-10-121-1-105 /test1/knowledge_graph/install/make-4.2]# make -v
?繼續(xù)升級(jí)glibc-2.35
cd /usr/local/glibc-2.35/build
[root@host-10-121-1-105 /usr/local/glibc-2.35/build]# yum install -y bison
[root@host-10-121-1-105 /usr/local/glibc-2.35/build]# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
報(bào)錯(cuò)
?
下載 gcc,根據(jù)這個(gè)一步一步操作就可以
CentOS7 安裝GCC 11_devtoolset-11_Deteriorate_Kr的博客-CSDN博客文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-643885.html
繼續(xù)編譯libc.so.6
[root@host-10-121-1-105 /usr/local/glibc-2.35/build]# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
[root@host-10-121-1-105 /usr/local/glibc-2.35/build]#make #make 運(yùn)行時(shí)間較長(zhǎng),可能會(huì)有半小時(shí)
[root@host-10-121-1-105 /usr/local/glibc-2.35/build]#make install
參考
https://www.cnblogs.com/FengZeng666/p/15989106.html文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-643885.html
CentOS7 安裝GCC 11_devtoolset-11_Deteriorate_Kr的博客-CSDN博客
到了這里,關(guān)于[mysql]tar安裝mysql報(bào)錯(cuò)./mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.11‘ not found(廢棄)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!