Ubuntu server 11.10 安装 Oracle 11gR2的问题

LichKingSZ 2012-03-23 09:47:12
如标题,安装过程中报了一个错误与下面连接的问题是一样的:
https://forums.oracle.com/forums/thread.jspa?threadID=2303333
主要是在Link lib时报了:
INFO: /u01/app/oracle/product/db/bin/genorasdksh

INFO: $Id: genorasdksh.sh /linux32/16 2009/03/11 11:28:27 mlfallon Exp $

INFO: Generating FULL ORASDK library...

INFO: Creating /u01/app/oracle/product/db/lib/liborasdk.so.11.1

INFO: /u01/app/oracle/product/db/lib/libxml11.a(xdkjni.o): In function `Java_oracle_xml_parser_v2_XMLNodeWriter_xdbreadNodeValueNative':
xdkjni.c:(.text+0x43): undefined reference to `OraMemAlloc'
然后还有很多这种undefined reference to 'xxx'
最后报liborasdk.so.11.1没有能正常link

谁能帮一下我?3Q
...全文
444 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
motif_linux 2012-09-16
  • 打赏
  • 举报
回复
我在ubuntu12 amd64系统上装oracle 11gR2也出现了这个问题,开始时是
Error in invoking target 'agent nmb nmo nmhs' of makefile '/opt/oracle/product /11.2.0/sysman/lib/ins_emagent.mk
然后我从网上找到了这个问题的解决方法,就是打开 ins_emagent.mk文件,把
$(MK_EMAGENT_NMECTL)
改成 $(MK_EMAGENT_NMECTL) -lnnz11

然后重试(retry),之后又出现错误
Error in invoking target 'all_on_orcl' of makefile '/u01/app/oracle/product/11.2.0/sysman/lib/ins_emagent.mk

查看安装日志,全是些undefined reference错误,比如
ttcacs.c:(.text+0x2323): undefined reference to `lxsCntExc'
ttcacs.c:(.text+0x235e): undefined reference to `lxhnmod'
ttcacs.c:(.text+0x23df): undefined reference to `lxhnlangid'
ttcacs.c:(.text+0x23f6): undefined reference to `lxhLangEnv'
/opt/oracle/product/11.2.0/dbhome_1/lib/libcommon11.a(ttctz.o): In function `ttctzSnd':
ttctz.c:(.text+0xb7): undefined reference to `LdiInterToArray'
/opt/oracle/product/11.2.0/dbhome_1/lib/libcommon11.a(ttctz.o): In function `ttctzRcv':
ttctz.c:(.text+0x3e8): undefined reference to `LdiInterFromArray'
/opt/oracle/product/11.2.0/dbhome_1/lib/libcommon11.a(kdzu.o): In function `kdzu_dump_header':
kdzu.c:(text.unlikely+0x608d): undefined reference to `lbivffs'
kdzu.c:(text.unlikely+0x60c5): undefined reference to `lbivffs'
/opt/oracle/product/11.2.0/dbhome_1/lib/libcommon11.a(kdxd4.o): In function `kdxd4bu':
kdxd4.c:(text.hot+0x2467): undefined reference to `lnxren'
collect2: ld returned 1 exit status
/opt/oracle/product/11.2.0/dbhome_1/bin/genorasdksh: Failed to link liborasdk.so.11.1
make: *** [liborasdksh] Error 1
简直无语了,求大神帮忙!
LichKingSZ 2012-03-29
  • 打赏
  • 举报
回复
現在確認是GCC版本的問題,已經重裝一個REDHAT了
JoeBlackzqq 2012-03-25
  • 打赏
  • 举报
回复
undefined reference to XXXXX --->一般就是没有这个这个函数的实现地方,即没有正确链接这个动态库,所以很有可能是环境变量没有配置正确。检查下!
machuang11 2012-03-23
  • 打赏
  • 举报
回复
http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#CIHFICFD官网上这个linux环境说得很详细吧,对照着看一下哈,“Operating System Requirements”,“Package Requirements”。我没装过,不好说,你照着oracle网站提示,试试。
巫师 2012-03-23
  • 打赏
  • 举报
回复
LichKingSZ 2012-03-23
  • 打赏
  • 举报
回复
Package Requirements我当然都检查过,ORACLE官方不支持ubuntu server的,难道我要重装个REDHAT?

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧