免费注册 查看新帖 |

Chinaunix

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

请教高手:solaris上安装php5问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-06 12:10 |只看该作者 |倒序浏览
mysql-standard-4.1.8-sun-solaris2.8-sparc-64bit
httpd-2.0.52.tar
php-5.0.2.tar

./configure --prefix=/opt/php --with-apxs2=/opt/apache/bin/apxs --with-mysql=/usr/local/mysql --with-zlib
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking for gcc... gcc
...中间略去
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

config.log中的信息:
...前面略去
configure:52832: checking for mSQL support
configure:53279: checking for MSSQL support via FreeTDS
configure:53861: checking for MySQL support
configure:53907: checking for specified location of the MySQL UNIX socket
configure:53964: checking for MySQL UNIX socket location
configure:54120: checking for mysql_close in -lmysqlclient
configure:54139: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib  -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2 -R/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient  -lz -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl 1>;&5
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64
Undefined                       first referenced
symbol                             in file
mysql_close                         /var/tmp//ccw585OY.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 54128 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:54344: checking for mysql_error in -lmysqlclient
configure:54363: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib  -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2 -R/usr/local/lib -L/usr/local/lib -R/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl 1>;&5
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64
Undefined                       first referenced
symbol                             in file
mysql_error                         /var/tmp//cc4Lhe5k.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 54352 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }

请问这是这么回事,谢了

论坛徽章:
0
2 [报告]
发表于 2006-09-16 22:48 |只看该作者
顶上去,看帖子是个老帖子了。今天在solaris10 U2 for x86 amd64上安装php5.1.6时,也碰见这个问题。编译过程一旦加入mysql的路径,就报告这个错(其实还有一个关于/otp/mysq/lib/llibz.a的错,拷贝/usr/local/lib/libz.a覆盖解决)。不加入mysql的连接路径php编译正常。似乎是文件类型/格式不匹配。有哪位解决过吗?

论坛徽章:
0
3 [报告]
发表于 2006-09-16 22:52 |只看该作者
warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64

论坛徽章:
0
4 [报告]
发表于 2006-09-17 22:23 |只看该作者
网上转了一圈,似乎发现问题所在--PHP5目前还没有提供64位的版本!而我此前编译的mysql是64位forsolaris x86的,因此在编译32位PHP5时,在库文件上与64位的mysql冲突。为了验证这个推断,下载了32位的mysql5再次进行php5的编译,一切顺利。如此说来,PHP对64位系统的支持较mysql落后了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP