解决安装mysql动态库libstdc++.so.6、libc.so.6版本过低问题
初始化mysql报错:
./bin/mysqld: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./bin/mysqld)
./bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./bin/mysqld)
---------------------
原因:动态库版本低
[root@haughty software] strings /usr/lib/libstdc++.so.6 | grep GLIBCXX ###查看动态库版本
并没有动态库中要求的GCC版本 “GLIBCXX_3.4.15”,所以需要进行升级一下我们的GCC版本 过程如下:
[root@haughty software] wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_amd64.deb #下载较新版本的GCC libstdc库
[root@haughty software] ar -x libstdc++6_4.7.2-5_amd64.deb #解压
[root@haughty software] tar -zxvf data.tar.gz #解压
[root@haughty software] cp usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 /usr/lib64 #拷贝至/usr/lib64下
[root@haughty software] rm -rf /usr/lib64/libstdc++.so.6 #删除低版本库的软连接
[root@haughty software] ln -s /usr/lib64/libstdc++.so.6.0.17 /usr/lib64/libstdc++.so.6
-----------------------------------------------------------------------------------------------------------
./bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./bin/mysqld)
解决:
[root@haughty mysql]#strings /lib64/libc.so.6 |grep GLIBC
wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz
tar -xvf glibc-2.15.tar.gz
tar -xvf glibc-ports-2.15.tar.gz
mv glibc-ports-2.15 glibc-2.15/ports
mkdir glibc-build-2.15
cd glibc-build-2.15
ls
../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make
make install
strings libc.so | grep GLIBC
处理问题链接:
https://blog.csdn.net/poxiaonie/article/details/74059023
最新文章
- LAN-LAN FREE-SERVER FREE
- windows 10 &; Office 2016 安装
- CSU 1111 D(Contest #3)
- redo buffer大小
- 忽然想到,为什么以前iOS的工资高
- STDMETHOD_,STDMETHOD,__declspec(novtable)和__declspec(selectany)
- Android Layout布局文件里的android:layout_height等属性不起作用
- 深入研究B树索引(一)
- 【实用】需要收藏备用的JQuery代码片段
- MySQL查询所有数据库表出错
- Unity Shader 基础(1): RenderType &; ReplacementShader
- Codeforces Round #446 Div. 1
- linux 基础 文件系统 用户权限
- loadrunner 11 安装与使用
- Head First Android --- Intent
- node upgrade bug &; node-sass
- 《算法》BEYOND 部分程序 part 2
- nginx安装(转发)
- java 获取指定日前的前一天
- Web Service Client使用Microsoft WSE 2.0
热门文章
- SimpleRev学习
- EF Core 封装方法Expression<;Func<;TObject, bool>;>;与Func<;TObject, bool>;区别
- webform中配置服务器控件的样式
- java 反射给字段重新赋值
- Android驱动学习-Eclipse安装与配置
- [linux]makefile多目录
- volatile实现原理--为什么实现了可见性却不能保证原子性
- easyui中的下拉菜单是树形结构时如何实现onchange方法
- 「每日一题」有人上次在dy面试,面试官问我:vue数据绑定的实现原理。你说我该如何回答?
- FAAS -- Serverless