Chinaunix首页 | 论坛 | 博客
  • 博客访问: 372253
  • 博文数量: 80
  • 博客积分: 6032
  • 博客等级: 准将
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-05 20:07
文章分类

全部博文(80)

文章存档

2007年(1)

2006年(22)

2005年(57)

我的朋友

分类: Oracle

2006-02-13 16:24:52

我的平台 oracle9.2 + hp-ux 11.11
 
During the install of 8.1.x/9.x on HP-UX 11.x, you receive the following error:
"Error in invoking target install of makefile /ctx/lib/ins_ctx.mk"
You then check the $ORACLE_HOME/install/make.log and find errors similiar to the following:
===========================================================
cc -Wl,+s -Wl,+n -L/u01/app/oracle/product/9.0.1_64/ctx/lib [cutting line for brevity]
/usr/ccs/bin/ld: Can't find library for -lXm
Stop.
*** Error exit code 1
===========================================================
This error is raised when some of the shared libraries are missing in /user/lib. While installing Oracle 8i/9i on HP, the linker will look for libXm.sl,libXt.sl and libX11.sl when compiling the binary 'ctxhx'.
Check for the existence of these in /usr/lib and if they do not exist, please make the necessary symbolic links.
Solution Description
The linker (ld) cannot locate the X11/Motif shared libraries in /usr/lib.
1) Verify if libXm.sl exists in /usr/lib:
% cd /usr/lib
% ls -al libXm.sl
If this file does not exist, the linker will fail. It should be a symbolic link to another file, the base X11/Motif library.
2) Check for base X11/Motif libraries.
% ls -al libXm.*
lrwxr-xr-x 1 root sys 00:14 libXm.1@ -> /usr/lib/Motif1.2/libXm.1
lrwxr-xr-x 1 root sys 00:14 libXm.2@ -> /usr/lib/Motif1.2_R6/libXm.2
lrwxr-xr-x 1 root sys 00:14 libXm.3@ -> /usr/lib/Motif1.2_R6/libXm.3
lrwxr-xr-x 1 root sys 00:14 libXm.4@ -> /usr/lib/Motif2.1/libXm.4
Looking at the above, you see that libXm.* has several incarnations, libXm.1, libXm.2, etc. These are roughly the same shared library but different versions. If libXm.sl does not exist, a link must be made pointing to the most current library version. For example,
as libXm.4 comes from Motif 2.1, we can use it to create the shared library libXm.sl.
You can also simply use the highest numbered library i.e. libXm.4 is higher then libXm.3.
3) Create the shared library as a symbolic link to the base X11/Motif library.
% su root
# cd /usr/lib
# ln -s libXm.4 libXm.sl
OR
% ln -s /usr/lib/Motif2.1/libXm.4 /usr/lib/libXm.sl
Perform steps 1-3 for two other libraries, libXt.sl and libX11.sl.
4) Return to the installer and click RETRY.
Explanation
The necessary shared library does not exist in /usr/lib. For both Oracle8i and Oracle9i on HP, the linker will look for libXm.sl, libXt.sl AND libX11.sl when compiling the binary 'ctxhx'.
So long as the base X11/Motif libraries already exist, then symbolic links can be used. If the base X11/Motif libraries are missing, the necessary OS packages will have to be installed first.
 
阅读(2202) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~