Install Oracle Database 11.2.x on Fedora 17-20


NOTICE: This workaround works for Fedora 20 (beta) too.

During installation of 11.2.x of Oracle Database software you may get an error during LINK part of installation:

Exception String: Error in invoking target 'agent nmhs' of makefile '/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/ins_emagent.mk'.

install_11204_problem

In the Installationlog you will see the following errors

INFO: gcc -o /opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/emdctl -L/opt/oracle/app/product/11.2.0.4/dbhome_1/lib/ -L/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/        `cat /opt/oracle/app/product/11.2.0.4/dbhome_1/lib/sysliblist` -Wl,-rpath,/opt/oracle/app/product/11.2.0.4/dbhome_1/lib -lm    `cat /opt/oracle/app/product/11.2.0.4/dbhome_1/lib/sysliblist` -ldl -lm   -L/opt/oracle/app/product/11.2.0.4/dbhome_1/lib /opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib//s0nmectl.o -lnmectl -lclntsh -
INFO: L/opt/oracle/app/product/11.2.0.4/dbhome_1/lib  -L/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/ -lnmemso -lcore11 -Wl,-rpath,/opt/oracle/app/product/11.2.0.4/dbhome_1/lib/:/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/:/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64/server:/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64 -L/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64/server -L/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64 -z lazyload -ljava -
INFO: ljvm -lverify -z nolazyload -Wl,-rpath,/opt/oracle/app/product/11.2.0.4/dbhome_1/lib/:/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/:/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64/server:/opt/oracle/app/product/11.2.0.4/dbhome_1/jdk/jre/lib/amd64 -Wl,--allow-shlib-undefined    `cat /opt/oracle/app/product/11.2.0.4/dbhome_1/lib/sysliblist` -ldl -lm

INFO: /usr/bin/ld: warning: -z lazyload ignored.
/usr/bin/ld: warning: -z nolazyload ignored.
/usr/bin/ld: /opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
/usr/bin/ld: note: 'B_DestroyKeyObject' is defined in DSO /opt/oracle/app/product/11.2.0.4/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
/opt/oracle/app/product/11.2.0.4/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation

INFO: collect2: error: ld returned 1 exit status

INFO: make[1]: *** [/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/emdctl] Error 1

INFO: make[1]: Leaving directory `/home/dhafner/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib'

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

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmhs' of makefile '/opt/oracle/app/product/11.2.0.4/dbhome_1/sysman/lib/ins_emagent.mk'. See '/opt/oracle/oraInventory/logs/installActions2013-08-28_08-44-20PM.log' for details.
Exception Severity: 1

To correct this error edit the file <ORACLE_HOME>/sysman/lib/ins_emagent.mk from

171 #===========================
172 #  emdctl
173 #===========================
174
175 $(SYSMANBIN)emdctl:
176         $(MK_EMAGENT_NMECTL)

to

171 #===========================
172 #  emdctl
173 #===========================
174
175 $(SYSMANBIN)emdctl:
176         $(MK_EMAGENT_NMECTL) -lnnz11

Now save and click “RETRY” in installer prompt. The installation should complete successful now

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s