A stitch in installation.

A stitch in installation.

Getting “Error in invoking target agent nmb nmo nmhs tclexec of make file ins_emagent.mk” during installation of Oracle 11g release 1 on Fedora 13. The error message appears while building agent libraries.

e2

The following error can be found in the /u01/app/oraInventory/logs/installActions….log  logfile:

INFO: /usr/lib/gcc/i686-redhat-linux/4.4.4/libgcc_s.so: undefined reference to ‘__stack_chk_fail@GLIBC_2.4’

The error can be reproduced manually:

[oracle@ora11ghost lib]$ pwd

/u01/app/oracle/product/11.1.0/db_1/sysman/lib

[oracle@ora11ghost lib]$ make-f ins_emagent.mk “agent”

/usr/lib/gcc/i686-redhat-linux/4.4.4/libgcc_s.so: undefined reference to ‘__stack_chk_fail@GLIBC_2.4’

collect2: ld returned 1 exit status

make[1]: *** [/u01/app/oracle/product/11.1.0/db_1/sysman/lib/e2eme] Error 1

Playing with compilation flags/options in the make file /u01/app/oracle/product/11.1.10/db_1/sysman/lib/ins_emagent.mk is not helpful.

The root cause of the problem is gcc libraries not compatible to what Oracle installation is expecting.

The current Fedora 13 gcc version is

[root@ora11ghost ~]# gcc –version

gcc (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10)

Copyright (C) 2010 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@ora11ghost ~]#

And the gcc that Oracle installation is expecting would be

[root@localhost ~]# gcc –version

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]#

It can be found a number of recommendations in the Internet to downgrade gcc. But it’s not natural. In addition, downgrade components may affect existing software.

For the same reason, you can’t install Oracle ASM lib (automatic storage management) on Fedora 13 without downgrading kernel version.

Check out the kernel’s version Oracle has ASMlibs

http://www.oracle.com/technetwork/topics/linux/downloads/rhel5-084877.html

And compare it to Fedora 13 kernel version. The same true for Cent OS.

The problem has a few workarounds.

The first one is suitable when you need just test/development environment without enterprise manager. In this case just press “Continue” and proceed with the installation. The database will be available and functional, but without enterprise management.

The second workaround, it’s true… to use Oracle Enterprise Linux (free) or similar certified Linux OS, for example, Red Hat 5.

e1

e0