1752345 Members
5586 Online
108787 Solutions
New Discussion юеВ

Re: 9.2.0 install

 
SOLVED
Go to solution
Brian_274
Frequent Advisor

9.2.0 install

Hello, I'm trying to install 9.2.0 on hp-ux 11.0 64 bit. I had the os admin applly all the patches. I'm now getting the following linking error. Any suggestions?

Error in invoking target install of makefile
/u01/app/oracle/product/9.2.0/ctx/lib/ins_ctx.mk



thanks
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: 9.2.0 install

This can be due to lack of disk space.

There is a file called install.log that will have more detail on the problem. Read that and post the error message.

Run a bdf and see if I'm right or off the mark.

Note: There is a serious bug in 9.2.0 and you might want to start over with 9.2.0.4 That includes a bug fix for object locking. If they didn't bother to release an updated product plan to install that upgrade prior to doing any real work on the Database.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Indira Aramandla
Honored Contributor
Solution

Re: 9.2.0 install

Hi Brian,

This is what Metalink says regarding the error that you are experiencing.

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.

I hope this helps


IA


Never give up, Keep Trying
V.Tamilvanan
Honored Contributor

Re: 9.2.0 install

Hi,
This sort of error comes when u don't have ANSI-C on your system. ANSI-C software is a must to install Oracle on HP-UX system. It is a priced product.Check for it.


T G Manikandan
Honored Contributor

Re: 9.2.0 install

There are lot of reasons for these messages.

Please send the install log file so that this can be solved.

Please ensure that your pre-requirements (patches,software)tasks are done properly.

Brian_274
Frequent Advisor

Re: 9.2.0 install

thanks indira that linking issue was the problem. After I created the links I was able to install and patch without any problems. Thanks
Nicolas Vacher
New Member

Re: 9.2.0 install

I had the same issue, I solced thanks to Indira's explanations.
But still I have a link error:

ld: Unsatisfied code symbol "gethrtime" in file /u01/app/oracle/product/9.2.0/lib/libgeneric9.a[kgl2.o]
1 errors.
*** Error exit code 1

Stop.


Can anyone help me?
Thnaks in advance.
Indira Aramandla
Honored Contributor

Re: 9.2.0 install

Hi Vacher,

I assume that, you are installing Oracle RDBMS Version: 9i on HP-UX 11.0 64-bit / HP-UX 11i

During the installation when you receive this error
ld: Unsatisfied symbol "gethrtime" in file /u01/app/oracle/product/901/lib//libpls9.a[pbp.o]
1 errors.
*** Error exit code 1

in $ORACLE_HOME/install/make.log is:

Follow these steps:

1. Open a new console window on the host as the installation user.
2. Set up the Oracle environment (i.e. ORACLE_HOME).
3. Make a backup of the $ORACLE_HOME/genclntsh script.
4. Remove the ${LD_SELF_CONTAINED} flag from the ld command in the 'Create Library' section.
5. Run the genclntsh script.
6. Click on 'Retry' in the Universal Installer

Then the installation will now proceed.


If you still encounter the error message after the above

ld: Unsatisfied symbol "gethrtime" in file /u01/app/oracle/product/901/lib//libldapclnt9.a[sgsluu.o]
1 errors.
*** Error exit code 1

Explanation
The gethrtime(void) function is a new function in libc and is not present in older versions of libraries, so this issue did not appear in prior versions. The referenced HP patches resolve the linking errors.

HP/UX patches PHCO_23770, PHCO_23092 must be applied. These are if for HP-UX 11.0

If you are using HP-UX 11i then the patches are
PHCO_24400
PHCO_24402
PHCO_24145
PHCO_23251
PHSS_24382
PHSS_24536
PHKL_24652
PHKL_23242
PHKL_23335
PHKL_24751

I hope this helps.

Indira A
Never give up, Keep Trying
Nicolas Vacher
New Member

Re: 9.2.0 install

Thanks!
Now, I know what 'guru' means! :)

Regards
Juan-Carlos Garcia
New Member

Re: 9.2.0 install

Many thanks Indira. Another person who benefit from your expertise.

Juan-Carlos