最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

rhel5上使用源代码安装mysql4.0.x_MySQL

来源:动视网 责编:小采 时间:2020-11-09 20:12:13
文档

rhel5上使用源代码安装mysql4.0.x_MySQL

rhel5上使用源代码安装mysql4.0.x_MySQL:RHEL bitsCN.com 1.在rhel5.1上安装mysql-4.0.18, configure的时候报如下错误:configure: error: This is a linux system and Linux threads was notfound. On linux Linuxthreads should be used.
推荐度:
导读rhel5上使用源代码安装mysql4.0.x_MySQL:RHEL bitsCN.com 1.在rhel5.1上安装mysql-4.0.18, configure的时候报如下错误:configure: error: This is a linux system and Linux threads was notfound. On linux Linuxthreads should be used.


RHEL

bitsCN.com

1.在rhel5.1上安装mysql-4.0.18, configure的时候报如下错误:

configure: error: This is a linux system and Linux threads 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.

看来需要新版本的glibc;configure的时候增加参数 --with-named-thread-libs="-lpthread" ;顺利通过。

2.不过make的时候又出错了
mysqld.o: In function `main':
mysqld.cc:(.text+0x3ee0): undefined reference to `my_fast_mutexattr'
mysqld.o:mysqld.cc:(.text+0x4143): more undefined references to `my_fast_mutexattr' follow
collect2: ld returned 1 exit status
make[4]: *** [mysqld] Error 1
make[4]: Leaving directory `/usr/local/src/mysql-4.0.26/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/mysql-4.0.26/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/mysql-4.0.26/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-4.0.26'
make: *** [all] Error 2

在mysql-4.0.26/sql/sql_class.cc文件中的
#include
(约39行)语句下面写如下代码

#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_t my_fast_mutexattr;
#endif

make顺利通过;

3.我按照上面的步骤坐下来仍然报错,最后直接修改mysql-4.0.26/sql/sql_class.cc文件,添加pthread_mutexattr_t my_fast_mutexattr;,不知道有没有什么影响。

bitsCN.com

文档

rhel5上使用源代码安装mysql4.0.x_MySQL

rhel5上使用源代码安装mysql4.0.x_MySQL:RHEL bitsCN.com 1.在rhel5.1上安装mysql-4.0.18, configure的时候报如下错误:configure: error: This is a linux system and Linux threads was notfound. On linux Linuxthreads should be used.
推荐度:
标签: 安装 4.0 error
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top