上几天在安装oracle数据库时出现错误提示,通过查询解决了相关问题,在此做记录备查;
安装平台:
硬件:HP DL385 G7
软件:Liux 5.4(RHEL_5.4 x86_64)
安装过程:
在安装过程中,出现如下提示:
经查询log日志如下:
INFO: mv -f /opt/oracle/product/10.2.0/db_1/bin/ctxlc /opt/oracle/product/10.2.0/db_1/bin/ctxlcO
INFO: mv ctxlc /opt/oracle/product/10.2.0/db_1/bin/ctxlc
INFO: chmod 751 /opt/oracle/product/10.2.0/db_1/bin/ctxlc
INFO: gcc -m32 -o ctxhx -L/opt/oracle/product/10.2.0/db_1/ctx//lib32/ -L/opt/oracle/product/10.2.0/db_1/lib32/ -L/opt/oracle/product/10.2.0/db_1/lib32/stubs/ /opt/oracle/product/10.2.0/db_1/ctx/lib/ctxhx.o -L/opt/oracle/product/10.2.0/db_1/ctx/lib/ -ldl -lm -lctxhx -Wl,-rpath,/opt/oracle/product/10.2.0/db_1/ctx/lib -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /opt/oracle/product/10.2.0/db_1/lib/sysliblist`
INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory
collect2:
INFO: ld returned 1 exit status
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 '/opt/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'. See '/opt/oracle/oraInventory/logs/installActions2011-12-19_04-13-15PM.log' for details.
Exception Severity: 1
INFO: The output of this make operation is also available at: '/opt/oracle/product/10.2.0/db_1/install/make.log'
INFO:
经查是由于缺少:glibc-devel包原因,查询并安装相关包:glibc-devel-2.5-42.i386(如果是64位的操作系统,则安装glibc-devel-2.5-42.x86_64数据包)
后继续安装,后出现提示:Error in invoking target 'agent nmo nmb' of makefile '/opt/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk',See
'/opt/oracle/oraInvetory/logs/InstallAction2011-12-19_04-13-15PM.log' for details.
后继续搜索,发现是由于缺少:libaio-devel包引起的,安装:libaio-devel-0.3.106-3.2.i386 libaio-devel-0.3.106-3.2.x86_64包后,问题解决。
相关网址:http://blog.sina.com.cn/s/blog_65f2d7050100pybr.html
该网址有相关命令:rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' +命令 可用来查询系统是否已经安装该命令,及命令版本等信息,比较有效。
本文出自 “读书改变人生” 博客,转载请与作者联系!