After installing mysql5.1.34 in the upgrade system, I have been too reluctant to install it. I directly downloaded a software package. Today, I took the time to compile and install this version. According to the official statement, several Versions later than MySQL are not compatible with gcc of later versions. Therefore, this problem occurs during the installation process. Here we record the compilation and installation process.
//////////////////////////////////////// ///////////////////
MySQL version: 5.1.34
Operating System: Ubuntu10.10
1./configure -- prefix =/usr/local/mysql
2. make
Here, a make error occurs. Delete the content in do_abi_check following the Makefile directly. Note that do_abi_check is retained; otherwise, the dependency is incomplete.
3. make install
4. cd/usr/local/mysql/bin
Mysql_install_db -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data
Initialize mysql. Here, datadir is the directory where data will be stored when you create a database. If not specified, a default directory will be created.
5. Copy my_small.cnf in the support_files folder in the source code folder to/etc/my. cnf, and add the following content in mysqld:
User = mysql
Language =/usr/local/mysql/share/mysql/english
Datadir =/usr/local/mysql/data
6. mysqld starts normally, OVER