AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Loading a shared library in AIX

    Posted Fri January 28, 2011 02:39 AM

    Originally posted by: user_guest


    Hi,

    I have an application running on AIX. The app is deployed on Webspshere server. Due to some reason, i have to make use of a third party library (Siagr API's) from my application. This library requires an .so file as well.
    Is there any location where i can put this *.so file and it will be read or loaded by the app server automatically or there is some specific procedure we need to follow for this
    Request you to tell me how to load / link / install this .so file. The name of the so file is libsigar-ppc-aix-5.so?

    Thanks
    #AIX-Forum


  • 2.  Re: Loading a shared library in AIX

    Posted Fri January 28, 2011 05:18 AM

    Originally posted by: Kosala


    This might not be the best forum for this question. You can try the Java forum. I believe what you're looking for is the JNI interfaces... never done it before.. so have no clue.

    Kosala
    #AIX-Forum


  • 3.  Re: Loading a shared library in AIX

    Posted Sun January 30, 2011 02:21 PM

    Originally posted by: DjRobin69


    There is a Unix command to show what libraries a binary is using ldd, run this against the app server to see which .so it is picking up. You should be then able to alter the LIBPATH variable so it searches your directory containing the new .so before searching the standard library paths
    #AIX-Forum