ubuntu上安装oracle出错,修改mk文件方法
2015-02-11 10:35
627 查看
参考 http://www.th7.cn/db/Oracle/201501/87086.shtml
仅仅执行sed方法,仍然有部分mk文件编译不过,报告“undefined reference to `xxxxx' ”,这种情况下 需要手动修改mk文件。
首先根据错误日志的INFO:gcc -o 找到正在编译的目标,根据这个目标名称去mk文件里查找对应的LINKELINE,在对应的LINKLINE上添加 -Wl,--no-as-needed
Ah, the AMDU is the issue..again: we adjust the gcc parameter..
Search for the lines:
Change these to:
仅仅执行sed方法,仍然有部分mk文件编译不过,报告“undefined reference to `xxxxx' ”,这种情况下 需要手动修改mk文件。
首先根据错误日志的INFO:gcc -o 找到正在编译的目标,根据这个目标名称去mk文件里查找对应的LINKELINE,在对应的LINKLINE上添加 -Wl,--no-as-needed
INFO: ellScanInit':kfkl.c:(text.unlikely+0x3081): undefined reference to `oss_initialize'kfkl.c:(text.unlikely+0x30e9): undefined reference to `oss_cell_discovery_open'kfkl.cINFO: :(text.unlikely+0x3172): undefined reference to `oss_cell_discovery_fetch'/oracle/base/dbhome_1/lib//libasmclnt12.a(kfkl.o): In function `kfklCellScanNext':kfkl.c:(text.unlikely+0x3231): undefined reference to `oss_cell_discovery_fetch'/oracle/base/dbhome_1/lib//libasmclnt12.a(kfkl.o): In function `kfklCellScanTerm':kfkl.c:(text.unlikely+0x3296): undefined reference to `oss_cell_discovery_close'collect2: ld returned 1 exit statusINFO: make: *** [/oracle/base/dbhome_1/rdbms/lib/amdu] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target 'all_no_orcl' of makefile '/oracle/base/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/oracle/oraInventory/logs/installActions2013-09-19_08-51-51AM.log' for details.Exception Severity: 1
Ah, the AMDU is the issue..again: we adjust the gcc parameter..
oracle$ vi /oracle/base/dbhome_1/rdbms/lib/env_rdbms.mk
Search for the lines:
AMDU_LINKLINE=$(LINK) $(S0MAIN) -Wl,--no-as-needed $(SSKFMUED) $(SKFMUPT) /$(LLIBDBTOOLS) $(LLIBCORE) $(LLIBGENERIC) $(LLIBUNLSRTL) /$(LLIBNLSRTL) $(LLIBCORE) $(LLIBSAGE) $(LLIBSKGXP) /$(LLIBNLSRTL) $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)
Change these to:
AMDU_LINKLINE=$(LINK) $(S0MAIN) -Wl,--no-as-needed $(SSKFMUED) $(SKFMUPT) /$(LLIBDBTOOLS) $(LLIBCORE) $(LLIBGENERIC) $(LLIBUNLSRTL) /$(LLIBNLSRTL) $(LLIBCORE) $(LLIBSAGE) $(LLIBSKGXP) /$(LLIBNLSRTL) $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)
相关文章推荐
- ubuntu16.04 修改mysql配置文件my.cnf编码出错---解决方法
- Ubuntu下修改sources.list文件,提高安装效率的方法
- 硬盘改变位置之后重新安装GRUB以及修改相应文件的方法
- ubuntu 9.10 下安装ORACLE 出错SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- 用重建控制文件的方法修改oracle数据文件路径
- 在Ubuntu 11.04 上安装Xilinx ISE 13.1指南,附出错的改正方法
- 关于VS中安装文件出错信息文件验证出错HRESULT=80040155的建决方法
- Ubuntu下tar.gz文件安装方法
- 安装oracle时还需要修改的几个文件和参数
- 安装oracle时还需要修改的几个文件和参数
- 修改preseed文件定制ubuntu安装cd
- Ubuntu中安装软件包出错时修复方法
- Ubuntu 8.04 上安装Oracle 11G的方法
- 通过新立得下载的软件安装程序文件位置和Ubuntu .deb包安装方法
- 安装oracle时还需要修改的几个文件和参数
- ubuntu 8.04下安装VMware tools实现和Windows共享文件的方法
- 硬盘改变位置之后重新安装GRUB以及修改相应文件的方法
- XP安装Oracle 10时实例化EM配置文件时出错解决方案
- Ubuntu中修改vim配置文件,更方便于c程序设计 另一种简单方法
- ubuntu修改文件夹或文件权限方法