免费注册 查看新帖 |

Chinaunix

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

紧急求助!!make php with oracle error! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-30 09:35 |只看该作者 |倒序浏览
freebsd 5.2.1  php 4.3.5 oracle 9.0.4.0
安装前cvsup port
oracle 参照http://ezine.daemonnews.org/200402/oracle.html 安装完成
测试数据库及客户端运行正常
安装 apache2 mysql40
安装 php configure --with-oci8=$ORACLE_HOME --with-apxs=/usr/local/sbin/apxs --with-sigchild
configure出错
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status

config.log中反复出现类似错误:
int main()
{
    int8 i;
    return 0;
}

configure:55595: checking base type of last arg to accept
configure:55623: c++ -c -O -pipe -mcpu=pentiumpro  conftest.C 1>;&5
configure:55672: checking return type of qsort
configure:55690: gcc2 -c -O -pipe -mcpu=pentiumpro  conftest.c 1>;&5
configure:56042: checking for mysql_close in -lmysqlclient
configure:56061: gcc2 -o conftest -O -pipe -mcpu=pentiumpro  -R/usr/local/lib/mysql -L/usr/local/lib/mysql  -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lmysqlclient  -lmhash -lmcrypt -lltdl -liconv -lintl -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lm  1>;&5
configure:56642: checking for ncurses support
configure:57613: checking for Oracle-OCI8 support
configure:57658: checking Oracle Install-Dir
configure:57953: checking Oracle version
configure:58607: checking for OCIEnvNlsCreate in -lclntsh
configure:58626: gcc2 -o conftest -O -pipe -mcpu=pentiumpro  -R/u01/app/oracle/product/9.2.0.2.0/lib -L/u01/app/oracle/product/9.2.0.2.0/lib  -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib -R/usr/local/lib/mysql -L/usr/local/lib/mysql -R/u01/app/oracle/product/9.2.0.2.0/lib -L/u01/app/oracle/product/9.2.0.2.0/lib conftest.c -lclntsh  -lmysqlclient -lmhash -lmcrypt -lltdl -liconv -lintl -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lm  -ldl -lm -lnsl -lirc -lclntsh 1>;&5
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
configure: failed program was:
#line 58615 "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 OCIEnvNlsCreate();

int main() {
OCIEnvNlsCreate()
; return 0; }
configure:58950: checking for OCILobIsTemporary in -lclntsh
configure:58969: gcc2 -o conftest -O -pipe -mcpu=pentiumpro  -R/u01/app/oracle/product/9.2.0.2.0/lib -L/u01/app/oracle/product/9.2.0.2.0/lib  -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib -R/usr/local/lib/mysql -L/usr/local/lib/mysql -R/u01/app/oracle/product/9.2.0.2.0/lib -L/u01/app/oracle/product/9.2.0.2.0/lib conftest.c -lclntsh  -lmysqlclient -lmhash -lmcrypt -lltdl -liconv -lintl -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lm  -ldl -lm -lnsl -lirc -lclntsh 1>;&5
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
configure: failed program was:
#line 58958 "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 OCILobIsTemporary();

有什么办法可以解决,万分感谢!!!

论坛徽章:
0
2 [报告]
发表于 2004-04-30 12:31 |只看该作者

紧急求助!!make php with oracle error!

port php的时候会出现一个界面,你选择ORACLE CLIENT后,不能PORT成功吗?

论坛徽章:
0
3 [报告]
发表于 2008-04-11 12:41 |只看该作者
我的问题是解决了,不要使用ICC版的.
方法confdefs.h
http://xok.la/2008/04/php_configure_memcpy_confdefs.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP