免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1572 | 回复: 7
打印 上一主题 下一主题

solaris 10 x86 MYSQL 编译时出问题, 请指教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-19 10:51 |只看该作者 |倒序浏览
# ./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 --with-extra-charsets=all --with-unix-socket-path=/usr/local/mysql/var/mysql.sock
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) no
checking for gawk... (cached) nawk
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

发生错误, 有什么原因? 请指教, 非常谢谢.

论坛徽章:
0
2 [报告]
发表于 2005-05-19 11:19 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no

编译器都没有安装怎么能编译?

论坛徽章:
0
3 [报告]
发表于 2005-05-19 11:36 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

我早装好了 pkgadd -d gcc-3.3.2-sol10-intel-local.gz
这样老是出错, 怎么回事?

论坛徽章:
0
4 [报告]
发表于 2005-05-19 13:48 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

原帖由 "fy32" 发表:
我早装好了 pkgadd -d gcc-3.3.2-sol10-intel-local.gz
这样老是出错, 怎么回事?


环境变量设了吗?

不行就看看configure,为什么没找到

论坛徽章:
0
5 [报告]
发表于 2005-05-19 15:52 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

./configure 编译成功了
但make 编译中途出现问题了

/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                 from sig.h:47,
                 from el.h:109,
                 from chared.c:52:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from sig.h:47,
                 from el.h:109,
                 from chared.c:52:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[3]: *** [chared.o] Error 1
make[3]: Leaving directory `/home/fy/mysql-4.1.10a/cmd-line-utils/libedit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fy/mysql-4.1.10a/cmd-line-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fy/mysql-4.1.10a'
make: *** [all] Error 2

怎么回事? 再烦你们了, 非常谢谢!

论坛徽章:
0
6 [报告]
发表于 2005-05-21 22:11 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

顶! 怎么没回答这个问题?

论坛徽章:
0
7 [报告]
发表于 2005-05-22 02:14 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

sol10自己带的有mysql

论坛徽章:
0
8 [报告]
发表于 2005-05-23 12:26 |只看该作者

solaris 10 x86 MYSQL 编译时出问题, 请指教!

CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" \
CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer \
-felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local/mysql \
--with-extra-charsets=all \
--with-charset=gb2312
--enable-thread-safe-client \
--enable-local-infile \
--enable-shared --enable-static \
--with-innodb  && make && make install
我在SOLARIS10 X86上如此编译安装从未出现过问题,如果特殊需要,另行添加,但我不保证你另行添加之后是否还可以,因为我加过一些别的参数,有些会出现问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP