/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

Today I have faced some library file issue while bringing up the OAM components.

Environment Details

We have installed the base version of osinfra application server (version: 101401) and then we applied osinfra patch (p7215628_101430_LINUX). OHS not starting after Webpass installation. Even after setting LD_ASSUME_KERNEL parameter in opmn.xml and commenting perl and php modules in httpd.conf file.

Cause:

Setting the environment variable LD_ASSUME_KERNEL was the causing below error message.

/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directorySolution

1.       Set environment variable as XD_ASSUME_KERNEL instead of LD_ASSUME_KERNEL. If not working then follow the second step.

2.       Open the start_ois_server.sh file under <OAM_COMP_FOLDER>/identity/oblix/apps/common/bin/.

Comment the line marked in red color.

if  [ ${SYSTEM} = “Linux” ]

    then

          if [ “$OAMUSENPTL” != “YES” ]

           then

          #   LD_ASSUME_KERNEL=”2.4.19″;

             export  LD_ASSUME_KERNEL ;

             print_msg “msg_LINUX_THREAD_LIB”;

          else

             print_msg “msg_NPTL_THREAD_LIB”;

          fi

 fi

3.       If above one is not working then try to start the server using start_ois_server_nptl

About the Author sarath

An Oracle Identity and Access Management professional, having working on Oracle Access Manager Single Sign-On implementations, Installation/Configuration of Identity Server, Web Pass, Web Gate, Access Gate, Policy Manager, Access Server, Policy Domains, Authentication /Authorization schemes, Single Sign-On (single and multi-domain), OIM, OVD, OID, OAAM, OIF, High Availability/Failover/ SSL deployment.

Leave a Comment:

1 comments
myblog_venu says August 13, 2012

Good article.

We were facing the same error and it’s fixed with the above.

Thanks
VG

Reply
Add Your Reply

Not found