Details
Description
3 main issues identified with the GCC runtime libraries installed on the user's machine:
- GCC was installed as a sunfreeware.com package in /usr/sfw/lib/64
- mongod does not search directories in /usr/sfw for required dynamic libraries
- GCC version installed was 3.4.3
- mongod is built using GCC 4.6.3
- user's initial search path for dynamic libraries included the directory /usr/sfw/lib
- this directory is for 32-bit binaries which caused mongod to try to load the 32-bit version of the gcc library libstdc++.so
---------------
Installed mongo 2.4.6 on sun solaris, when trying to start mongod, got below error:
>./bin/mongod
ld.so.1: mongod: fatal: /usr/sfw/lib/libstdc++.so.6: wrong ELF class: ELFCLASS32
Killed
My env is SunOS Generic_127128-11 i86pc i386 i86pc
Please advise how to fix this