在RHEL4上安装MYSQL编译(执行./configure)时遇到的问题,请求高手帮忙

发布于 2022-09-27 15:11:03 字数 7497 浏览 33 评论 0

以下是我在安装MYSQL是,执行./configure命令是出错的日志.请求各位高手看看是因为什么原因引起,应该怎么解决-------我在网上查过许多资料,都没有找到解决办法

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gbk --with-extra-charset=all
____________________________________________________________________

cat config.log | grep error

____________________________________________________________________

conftest.c:2: error: syntax error before "me"
conftest.cc:29: error: `exit' undeclared (first use this function)
conftest.cc:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
conftest.c:102: error: `int8' undeclared (first use in this function)
conftest.c:102: error: (Each undeclared identifier is reported only once
conftest.c:102: error: for each function it appears in.)
conftest.c:102: error: syntax error before "i"
configure:27549: checking for dlerror
conftest.c:112: error: `not' undeclared (first use in this function)
conftest.c:112: error: (Each undeclared identifier is reported only once
conftest.c:112: error: for each function it appears in.)
conftest.c:112: error: syntax error before "big"
configure:31554: g++ -c -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -Werror  conftest.cc >&5
configure:31694: g++ -c -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -Werror  conftest.cc >&5
conftest.cc:115: error: cannot convert `rlimit64*' to `const rlimit*' for argument `2' to `int setrlimit(__rlimit_resource_t, const rlimit*)'
conftest.c:120: error: structure has no member named `ts_sec'
conftest.c:121: error: structure has no member named `ts_nsec'
conftest.c:116: error: `uchar' undeclared (first use in this function)
conftest.c:116: error: (Each undeclared identifier is reported only once
conftest.c:116: error: for each function it appears in.)
conftest.c:116: error: syntax error before "foo"
conftest.c:117: error: `foo' undeclared (first use in this function)
conftest.c:118: error: `fp_except' undeclared (first use in this function)
conftest.c:118: error: (Each undeclared identifier is reported only once
conftest.c:118: error: for each function it appears in.)
conftest.c:118: error: syntax error before "foo"
conftest.c:119: error: `foo' undeclared (first use in this function)
conftest.c:130: error: too many arguments to function `pthread_yield'
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
/usr/lib/gcc/i386-redhat-linux/3.4.3/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/3.4.3/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
/usr/lib/gcc/i386-redhat-linux/3.4.3/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/3.4.3/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
conftest.c:159: error: `TIOCSTAT' undeclared (first use in this function)
conftest.c:159: error: (Each undeclared identifier is reported only once
conftest.c:159: error: for each function it appears in.)
conftest.c:180: error: structure has no member named `d_namlen'
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
configure:38008: checking for perror
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
configure:38008: checking for strerror
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
| /* Override any gcc2 internal prototype to avoid an error.  */
configure:38519: g++ -c -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -Werror  conftest.cc >&5
conftest.cc:264: error: cannot convert `int*' to `hostent**' for argument `7' to `int gethostbyaddr_r(const void*, __socklen_t, int, hostent*, char*, size_t, hostent**, int*)'
configure:38616: g++ -c -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -Werror  conftest.cc >&5
configure:38710: g++ -c -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -Werror  conftest.cc >&5
conftest.cc:265: error: cannot convert `hostent_data*' to `char*' for argument `3' to `int gethostbyname_r(const char*, hostent*, char*, size_t, hostent**, int*)'
ac_cv_func_dlerror=yes
ac_cv_func_perror=yes
ac_cv_func_strerror=yes
man1_files='msql2mysql.1 myisamchk.1 myisamlog.1 myisampack.1 mysql.1 mysql.server.1 mysql_config.1 mysql_fix_privilege_tables.1 mysql_upgrade.1 mysql_zap.1 mysqlaccess.1 mysqladmin.1 mysqlbinlog.1 mysqlcheck.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 mysqlhotcopy.1 mysqlimport.1 mysqlman.1 mysqlmanager.1 mysqlshow.1 mysqlslap.1 perror.1 replace.1 safe_mysqld.1'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

时光清浅 2022-10-04 15:11:03

你GCC是什么版本?  你那句configure 是你自己写的?  直接./configure (别加后面的参数)能否通过?

万水千山粽是情ミ 2022-10-04 15:11:03

有高手能解决吗,大家帮帮我呀

银河中√捞星星 2022-10-04 15:11:03

我的gcc版本时3.4.3的,./configure的参数我时按照./configure --help 帮助上写的。我现在就是按照你说的试试看

刚才我用./configure重新做了一遍,虽说问题不一样,但是大部分还是相同的出错信息

[ 本帖最后由 anysoft 于 2006-5-21 11:29 编辑 ]

水晶透心 2022-10-04 15:11:03

各位高手进来看看啊,帮忙解决

枕梦 2022-10-04 15:11:03

有人能解决吗

┊风居住的梦幻卍 2022-10-04 15:11:03

你只呈--with-charest=gbk试试
不能的话你改装卸3.23.57试,我一直装的就是这个版本,没有出现你说的那个问题

你如我软肋 2022-10-04 15:11:03

最好给出你所有操作的步骤。譬如你下载的是什么格式的文件包,怎样解压,怎样开始执行./configure等等。

淡淡绿茶香 2022-10-04 15:11:03

我从mysql.com上下载了源代码的安装文件
1、tar zxvf mysql-4.1.21-nightly-20060528.tar.gz
2、cd mysql-4.1.21-nightly-20060528
3、./configure
编译到IB_CONFIG.H就不能往下编译了,在编译过程有很多文件不能找到

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文