在fbsd5.1搞定mysql
点击次数:28 次 发布日期:2008-11-22 10:21:43 作者:源代码网
|
源代码网推荐
正常编译过程中报错: 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
修改 /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
",f); close(file); exit (0); }
把 close 改成 fclose 即可
源代码网供稿. |