编译mysql4.0时候出现错误提示checking "LinuxThreads"... "Not found"
2009-06-30 18:25
解压mysql4.0.26
root@www:/db# tar zxvf mysql-4.0.26.tar.gz
备份mysql5的数据目录
root@www:/db# tar czvf mysql5.data.tar.gz mysql5
编译
root@www:/db# cd mysql-4.0.26
root@www:/db/mysql-4.0.26# ./configure --prefix=/db/mysql4
最后提示:
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.
怎么会没有Linuxthreads?查看
root@www:/db/mysql-4.0.26# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --
with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
也许是gcc版本太新的原因?上网一查,是因为新内核使用了NTPL这种先进的线程处理方式,于是就这样:
root@www:/db/mysql-4.0.26# cp /usr/include/pthread.h /usr/include/pthread.h.bak
root@www:/db/mysql-4.0.26# echo '/* Linuxthreads */' >> /usr/include/pthread.h
然后编译,并且加了点参数
root@www:/db/mysql-4.0.26# ./configure --prefix=/db/mysql4 --with-unix-socket-path=/db/mysql4/mysql.sock --with-tcp-port=3304 
--with-low-memory
在检测Linuxthreads地方显示为Found,但后来还是停下了,
checking whether signal handlers are of type void... yes
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap li
brary found
看来要装

ncurses-devel 

转载于:https://www.cnblogs.com/ylqmf/archive/2012/02/20/2359422.html

编译mysql4.0时候出现错误提示checking LinuxThreads... Not found相关推荐

  1. vb安装提示计算机安装的新,win10系统电脑安装VB6.0企业版出现错误提示的步骤介绍...

    有关win10系统电脑安装VB6.0企业版出现错误提示的操作方法想必大家有所耳闻.但是能够对win10系统电脑安装VB6.0企业版出现错误提示进行实际操作的人却不多.其实解决win10系统电脑安装VB ...

  2. 编译php7.0.17报错提示 undefined reference to `libiconv_open'

    配置 ./configure –prefix=/usr/local/php7 错误详情 make /opt/src/php-7.0.17/ext/iconv/iconv.c:755: undefine ...

  3. 编译期会出现错误提示有哪些_Webpack 5有哪些值得期待

    Webpack 5已经到来 早在今年(2019年)的2月份,Webpack核心团队的Sean Larkin就做过一次关于webpack 5新特性的演讲,为大家讲述了webpack 5目前的开发进展,还 ...

  4. .iOS APP Project or Mac APP Project编译错误提示: My Mac 64-bit is not valid for Running the scheme...

    1. iOS APP Project or  Mac APP Project编译错误提示: "The run destination My Mac 64-bit is not valid f ...

  5. JAVA编译时出现的错误提示

    1.错误:非法字符 看到这个错误提示,我们首先要考虑是否使用了中文字符 2.错误:找不到符号 看到这个错误,我们要考虑单词有没有拼写错误. 3.编译不报错,但是运行时出现错误 这种属于业务逻辑错误.环 ...

  6. angularjs 表单校验指令_angular4.0的模板式表单、响应式表单及其错误提示

    模板式表单 NgForm.NgModel.NgModelGroup是FormModule里的内容,NgForm会自动拦截标准的表单处理事件(eg.提交),angular用ngSubmit代替标准的表单 ...

  7. 编译后错误提示为pls-00103:出现符号在需要下列之一时:begin case declare

    create or replace trigger auth_secure before insert or update or delete --/对整表更新前触发 on g002 begin IF ...

  8. 安装office2010出现了错误,提示要安装MSXML6.10.1129.0解决方法

    安装office2010出现了错误,提示要安装MSXML6.10.1129.0解决方法 参考文章: (1)安装office2010出现了错误,提示要安装MSXML6.10.1129.0解决方法 (2) ...

  9. Druid连接池链接mysql错误提示:create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/bank, errorCode

    错误提示:create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/bank, errorCode 0, state 01S00 ...

最新文章

  1. 绝对Linux服务器管理利器webmin
  2. 如何将字符数组里的内容转换成uint8的类型?将一个字符数组里面的所有元素变成一个字符串?
  3. protobuf和thrift对比
  4. 搞懂function(*args,**kwargs)
  5. UPS分类:直流UPS和交流UPS
  6. 朴素贝叶斯算法注意事项(有待完善)
  7. 第1章 程序设计和C语言
  8. 宁波大学计算机网络实验五,宁波大学计算机网络实验答案
  9. MySQL服务器安装完之后如何调节性能
  10. 使用深度学习进行表检测、信息提取和构建
  11. 抖音康辉机器人_央视主持人太会玩!康辉录抖音,笑死了!
  12. html5玻璃下雨,下雨天外后视镜总是沾满水珠 6个妙招帮你解决这个难题
  13. 计算机画图讲课ppt,画图教学课件
  14. GEO,IGSO,MEO,LEO
  15. 恢复U盘未分配空间怎么合并,u盘分区扩展卷不显示怎么办
  16. MySQL作为空间数据库
  17. 常见的计算机网络联网设备有哪些,常见的网络设备有哪些
  18. python画旺仔代码_Python基础3
  19. 19js学习第六天数组第1部分
  20. JAXB 中的@XmlElementWrapper注解生成问题

热门文章

  1. ❤️详解腾讯面试❤️
  2. golang中的panic和recover
  3. 力扣--盛水最多的容器
  4. 讨论是学习最有效的方法
  5. 系统编程(ISP)与应用编程(IAP)的区别!
  6. 嵌入式系统的组成、嵌入式处理器分类总结、ARM处理器系列总结、ARM Cortex-M3体系结构总结!
  7. $.ajax json 在本地正常 上传服务器不正常
  8. [笔记].在Quartus II下载时,找不到USB-Blaster的一个可能原因
  9. python 文件和目录操作
  10. MySQL 索引详解