最具影响力的数字化技术在线社区

168大数据

 找回密码
 立即注册

QQ登录

只需一步,快速开始

1 2 3 4 5
开启左侧

error in invoking target install of makefile

[复制链接]
发表于 2015-1-21 17:05:29 | 显示全部楼层 |阅读模式

马上注册,结交更多数据大咖,获取更多知识干货,轻松玩转大数据

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
一.引入问题
今天在虚拟机上安装一个11g的OracleUbuntu 12.04(64bit)版本,不过Linux上基本都差不多,所以按照以前的步骤,迅速的操作起来,结果遇到N多以前没有遇到过的错误。
a.jpg
1.1 ins_ctx.mk 问题
[oracle@zhang logs]$ tail  installActions2012-05-05_01-20-00PM.log      
INFO: collect2: ld returned 1 exit status

INFO: make: *** [ctxhx] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile '/u01/app/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'.See '/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.
Exception Severity: 1

[oracle@zhang logs]$ yum install gcc
Loaded plugins: fastestmirror,refresh-packagekit, security
You need to be root to perform thiscommand.
[oracle@xd logs]$ rpm -qa --queryformat"%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgcc
libgcc-4.4.6-3.el6 (i686)
libgcc-4.4.6-3.el6 (x86_64)


1.2 ins_rdbms.mk 问题

[oracle@zhang logs]$ tail  installActions2012-05-05_01-20-00PM.log
INFO: make[1]: Leaving directory`/u01/app/oracle/product/10.2.0/db_1/rdbms/lib'

INFO: make: *** [extproc32] Error 2

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'all_no_orcl' of makefile '/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'.See '/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.
Exception Severity: 1

1.3 ins_emdb.mk 问题
[oracle@zhang logs]$ tail  installActions2012-05-05_01-20-00PM.log
INFO: make[1]: Leaving directory `/u01/app/oracle/product/10.2.0/db_1/sysman/lib'

INFO: make: *** [nmccollector] Error 2

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'collector' of makefile'/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_emdb.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log' fordetails.
Exception Severity: 1

解决:修改bash_porfile 添加
LD_LIBRARY_PATH=$ORACLE_HOME/lib

1.4 ins_net_client.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: /usr/bin/ar:/u01/app/oracle/product/10.2.0/db_1/lib32/nnfgt.o: No such file or directory

INFO: make: *** [nnfgt.o] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'nnfgt.o' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.5 ins_precomp.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: /bin/chmod: cannot access`/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc': No such file ordirectory

INFO: make: ***[/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'relink' of makefile'/u01/app/oracle/product/10.2.0/db_1/precomp/lib/ins_precomp.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.6 ins_plsql.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status

INFO: make: *** [wrap] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/plsql/lib/ins_plsql.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.7 ins_net_server.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status

INFO: make: *** [tnslsnr] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_server.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.8 ins_nau.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: ld returned 1 exit status

INFO: make: *** [oklist] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'ioklist iokinit iokdstry' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_nau.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.9 ins_ldap.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status

INFO: make: *** [ldapadd] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'clientonlyinstall' of makefile'/u01/app/oracle/product/10.2.0/db_1/ldap/lib/ins_ldap.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.10 ins_srvm.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: ld returned 1 exit status

INFO: make: *** [rawutl] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/srvm/lib/ins_srvm.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1

1.11 ins_has.mk 问题
[oracle@zhang logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status

INFO: make: *** [/u01/app/oracle/product/10.2.0/db_1/racg/lib/racgmain]Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException

一般情况都是缺包,用yum 把需要的包全部打上之后,再次安装就没有问题了。
yum install libXp.i686 libXp-devel.i686 libXt.i686 libXt-devel.i686 libXtst.i686 libXtst-devel.i686 make.x86_64 gcc.x86_64 libaio.x86_64 glibc-devel.i686 libgcc.i686
glibc-devel.x86_64 compat-libstdc++-33 -y
yum install glibc* gcc* make* compat-db* libstdc* libXp* libXtst* compat-libstdc++* -y

其次就是环境变量的问题 看看PATH 和 LD_LIBRARY_PATH
都要加上$ORACLE_HOME/lib
64位加上 $ORACLE_HOME/lib64

楼主热帖
发表于 2015-2-26 16:10:45 | 显示全部楼层
安装前检查或者安装过程中按照检测的提示安装需要的rpm包,基本不会遇到这个问题。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

关于我们|小黑屋|Archiver|168大数据 ( 京ICP备14035423号|申请友情链接

GMT+8, 2024-3-29 21:06

Powered by BI168大数据社区

© 2012-2014 168大数据

快速回复 返回顶部 返回列表