在fbsd5。1搞定mysql

发表于:2007-06-09来源:作者:点击数: 标签:
感谢同事leon提供 正常编译过程中报错: configure:error:Yourcompilercannotconvertalonglongvaluetoafloat! Ifyouareusinggcc2.8.#youshouldupgradetoegcs1.0.3ornewerandtry 但查gcc版本却是3.2.2 修改/home/..../mysql-3.23.57/configure 找到下面這一段

感谢同事leon提供           

正常编译过程中报错: 
configure: error: Your compiler cannot convert a longlong value to a float! 
If you are using gclearcase/" target="_blank" >cc 2.8.# you should upgrade to egcs 1.0.3 or newer and try 

但查gcc版本却是3.2.2 

修改 /home/..../mysql-3.23.57/configure 

找到下面這一段 
  cat >conftest.$ac_ext <<_ACEOF 
#line 11034 "configure" 
#include "confdefs.h" 
#include <stdio.h> 
typedef long long longlong; 
main() 

  longlong ll=1; 
  float f; 
  FILE *file=fopen("conftestval", "w"); 
  f = (float) ll; 
  fprintf(file,"%g\n",f); 
  close(file); 
  exit (0); 


把 close 改成 fclose 即可

 kinux 回复于:2003-08-01 15:33:56
[quote:45310f61ee="南非蜘蛛"]感谢同事leon提供           

正常编译过程中报错: 
configure: error: Your compiler cannot convert a longlong value to a float! 
If you are using gcc 2.8.# you should upgrade to egcs..........[/quote:45310f61ee]     

Mysql 4.xxx 版都出来了, 你还用mysql-3.23.57???

 南非蜘蛛 回复于:2003-08-01 15:56:52
为什么非要用那么新的版本?

 OLDHAND.ORG 回复于:2003-08-01 18:04:14
  现在可以通过binary来安装MySQL了,比较方便。

 南非蜘蛛 回复于:2003-08-01 18:15:31
[quote:3cd49bd7ea="OLDHAND.ORG"]  现在可以通过binary来安装MySQL了,比较方便。[/quote:3cd49bd7ea]     

一直可以把

 OLDHAND.ORG 回复于:2003-08-01 18:47:30
  以前都是通过编译源代码的方式来安装的,后来懒了,发现通过binary方式安装也很不错。

 livid 回复于:2003-08-02 20:58:06
4.1.0  开始可以用 subquery 和 utf-8

新版本有些功能还是不错的

 wildhorse 回复于:2003-08-02 23:39:20
我一直都是用源码编译,不看见那些编译多过程,感觉很不爽。。。

 proftpd 回复于:2003-08-03 00:02:01
[quote:2484d1814b="wildhorse"]我一直都是用源码编译,不看见那些编译多过程,感觉很不爽。。。[/quote:2484d1814b]     


我倒是喜欢看到那些带码满屏飞…………

 流氓无产者 回复于:2003-08-03 09:25:31
蜘蛛这个贴有点水

 白狐狸 回复于:2003-08-03 12:56:19
蜘蛛老大,能不能贴点关于mysql数据库限额的东东啊,上次好象IWEB大虾也提出来过,还是没结论呀

 wsswh 回复于:2003-08-03 17:38:45
3ks

 powerplane 回复于:2003-08-03 18:07:47
Why bother?!! Use port, and I have installed mysql 3.X successfully million years ago.....

 wangbin 回复于:2003-08-03 20:22:53
[quote:348193863c="powerplane"]Why bother?!! Use port, and I have installed mysql 3.X successfully million years ago.....[/quote:348193863c]  

可以正常安装4.0,4.1不行!

 powerplane 回复于:2003-08-03 20:37:17
Did you cvsup your port files?

 9310guo 回复于:2003-08-25 10:04:10
4.x加了一个querycache,性能提高很多
binary方式安装简单方便快速,而且在编译的时候进行了优化,适合我这样的懒人用

 koath 回复于:2003-08-29 04:41:52
用系统的吧

 rake1 回复于:2003-09-08 13:20:02
非常感谢蜘蛛大大的文章,小弟真在为此烦恼。小弟坚信只有通过SOURCE安装才能真真了解系统情况。

 chenlei9907 回复于:2003-10-23 10:03:40
[quote="南非蜘蛛"]
感谢同事leon提供            

正常编译过程中报错:  
configure: error: Your compiler cannot convert a longlong value to a float!  
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try  

但查gcc版本却是3.2.2  

[b:fca304467b]修改 /home/..../mysql-3.23.57/configure  [/b:fca304467b]

找到下面這一段  
 
[quote]

怎么找到configure这个文件丫,我怎么没有找到丫。我是从ports上安装的。

 unicorncn 回复于:2003-10-28 08:16:37
在port mysql323-server/work/mysql-3.23.**/congfigure 里 
我的mysql3.23.56_1 在16874行

原文转自:http://www.ltesting.net