码迷,mamicode.com
首页 > 数据库 > 详细

mysql 3.2.49 源代码安装-redhat 5 x64

时间:2015-11-08 14:18:38      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

 

[mysql@localhost ~]$ uname -r
2.6.32

[root@localhost ~]#cp /usr/include/pthread.h /usr/include/pthread.h.bak
[root@localhost ~]#echo ‘/* Linuxthreads */‘ >> /usr/include/pthread.h

解决

checking for int8... no checking "LinuxThreads"... "Not found" configure: error: This is a linux system and Linuxthreads was not found. On linux Linuxthreads should be used.  Please install Linuxthreads (or a new glibc) and try again.  See the Installation chapter in the Reference Manual for more information.

原因:新内核使用了NTPL这种先进的线程处理方式,

 

[root@localhost ~]#tar   -zxvf  libtool-1.4.1.tar.gz

./configure &&make$$make install

 

[root@localhost ~]#tar   -zxvf  mysql-3.23.49.tar.gz

[root@localhost ~]# cd mysql-3.23.49

[root@localhost mysql-3.23.49]#CFLAGS="-O0 -mpentiumpro" CXXFLAGS="-O0 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-innodb --with-debug

不指明 CXX=gcc  ,否则在在MAKE时出错

 

[root@localhost mysql-3.23.49]# cp /usr/local/bin/libtool .

替换当前目录版本

 

顺序不能倒

[root@localhost mysql-3.23.49]#make

[root@localhost mysql-3.23.49]#make install

 

mysql 服务目录

[mysql@localhost libexec]$ pwd
/usr/local/mysql/libexec

[mysql@localhost libexec]$ ls
mysqld

mysql 客户端目录

 

[mysql@localhost bin]$ ls
comp_err           mysqlbug                    mysql_setpermission
isamchk            mysqlcheck                  mysqlshow
isamlog            mysql_config                mysqltest
msql2mysql         mysql_convert_table_format  mysql_zap
myisamchk          mysqld_multi                pack_isam
myisamlog          mysqldump                   perror
myisampack         mysqldumpslow               replace
my_print_defaults  mysql_find_rows             resolveip
mysql              mysql_fix_privilege_tables  resolve_stack_dump
mysqlaccess        mysqlhotcopy                safe_mysqld
mysqladmin         mysqlimport
mysqlbinlog        mysql_install_db
[mysql@localhost bin]$ pwd
/usr/local/mysql/bin

 

 

 

 

 

 

                        

 

mysql 3.2.49 源代码安装-redhat 5 x64

标签:

原文地址:http://www.cnblogs.com/zengkefu/p/4946644.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!