Oracle 11g R2 install to Centos 7.4

Issues related to applications and software problems
Post Reply
kissamies
Posts: 6
Joined: 2017/08/21 10:41:59

Oracle 11g R2 install to Centos 7.4

Post by kissamies » 2017/12/06 16:29:51

I am having problems in installing Oracle 11g R2 to Centos 7.4. Afaik this install should be supported but it is failing. I have found the reason but cannot fix this. So please help me.

Problem is this "Error in invoking target 'install' of makefile '/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk'."

Log files tells me "INFO: /usr/lib64/libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'". I have googled around trying to find fix for this. Have checked that I have all the needed packages installed but still getting this.

Any ideas how to fix this and continue with the install?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Oracle 11g R2 install to Centos 7.4

Post by avij » 2017/12/06 17:48:13

You probably don't have /usr/lib64/libstdc++.so.5 at all. See if yum install compat-libstdc++-33 helps.

kissamies
Posts: 6
Joined: 2017/08/21 10:41:59

Re: Oracle 11g R2 install to Centos 7.4

Post by kissamies » 2017/12/06 17:49:52

I was able to pass it by changing few lines in file "ins_ctx.mk"

ctxhx: $(CTXHXOBJ)
$(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK)

To:
ctxhx: $(CTXHXOBJ)
-static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.a

However, I am not sure if these were correct lines. Currently I am waiting for database creation assistant to finish its job which seems to be taking quite some time.

kissamies
Posts: 6
Joined: 2017/08/21 10:41:59

Re: Oracle 11g R2 install to Centos 7.4

Post by kissamies » 2017/12/06 17:51:14

avij wrote:You probably don't have /usr/lib64/libstdc++.so.5 at all. See if yum install compat-libstdc++-33 helps.
I have following packages installed:

libstdc++-devel-4.8.5-16.el7_4.1.i686
libstdc++-devel-4.8.5-16.el7_4.1.x86_64
libstdc++-4.8.5-16.el7_4.1.i686
libstdc++-4.8.5-16.el7_4.1.x86_64
libstdc++-static-4.8.5-16.el7_4.1.x86_64
compat-libstdc++-33-3.2.3-72.el7.i686
compat-libstdc++-33-3.2.3-72.el7.x86_64

kissamies
Posts: 6
Joined: 2017/08/21 10:41:59

Re: Oracle 11g R2 install to Centos 7.4

Post by kissamies » 2017/12/06 17:54:46

Apparently that change and this:
I additionally had to patch the the ins_emagent.mk to link to the libnnz11 library:
vi /u01/app/oracle/product/11.2.0/dbhome_2/sysman/lib/ins_emagent.mk
Search for the line
$(MK_EMAGENT_NMECTL)
Change it to:
$(MK_EMAGENT_NMECTL) -lnnz11
Fixed my problems. Oracle installation just completed.

Post Reply