Linux下C++连接操作MySQL数据库环境搭建
日期 版本 作者 修改内容 备注
2017年4月8日 V1.0 刘胜军 文件初建 无
一、引言
1.1 编写目的
Linux下C++连接操作MySQL数据库环境搭建
1.2 术语
gcc/gcc-c++:
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.
boost/boost-devel:
Boost provides free peer-reviewed portable C++ source libraries.
mysql-connector-c++:
All distributions of Connector/C++ contain a README file, which contains platform-specific notes. At the end of the README file contained in the binary distribution you will find the settings used to build the binaries. If you experience build-related issues on a platform, it may help to check the settings used on the platform to build the binary.
1.3 准备工作
一台安装有CentOS 7.X OS的机器,可连接互联网,或备有离线安装包。
1.4 注意事项
使用yum源安装时,需正确配置yum源。
二、依赖环境搭建
2.1 安装gcc-c++
方法一:使用yum源
[root@user ~]# yum install -y gcc-c++
方法二:使用本地rpm