Java, Semeru Runtimes and Runtimes for Business

 View Only
Expand all | Collapse all

java 17on aix 7.1

  • 1.  java 17on aix 7.1

    Posted Tue January 16, 2024 11:48 AM

    I am trying to run java 17 on aix 7.1 i have installed all the prerequisites. but somehow libjvm.so cannot find the file libc++.a 

    ldd /app/java17/jdk-17.0.9+9/lib/default/libjvm.so
    /app/java17/jdk-17.0.9+9/lib/default/libjvm.so needs:
             /usr/lib/libpthread.a(shr_xpg5_64.o)
             /usr/lib/libdl.a(shr_64.o)
    Cannot find libc++.a(shr_64.o)
             /usr/lib/libC.a(shrcore_64.o)
             /usr/lib/libc.a(shr_64.o)
             /unix
             /usr/lib/libC.a(ansicore_64.o)
             /usr/lib/libcrypt.a(shr_64.o)

    however i have installed libc++.rte to the version bigger than 16.1.0.7: 

    lslpp -l|grep libc++
      libc++.rte               16.1.0.10  COMMITTED  IBM XL C++ Runtime for AIX 7.1

    and the file libc++.a exists: 

    ls -ltr /usr/lib/libc++.a
    lrwxrwxrwx    1 bin      bin              25 Jan 16 16:45 /usr/lib/libc++.a -> /usr/lpp/xlC/lib/libc++.a

    lslpp -w "*libc++.a*"
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libc++.a                           libc++.rte            Symlink
      /usr/lpp/xlC/lib/aix61/libc++.a             libc++.rte            File
    

    Do I need to export a library path? such as libpath or install additional libraries. 

    if the version of AIX was not supported it would tell me instead of telling me a file is missing? right? 

    thanks in advance. 



    ------------------------------
    Mario Garcia
    ------------------------------


  • 2.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 06:17 AM

    You showed that /usr/lib/libc++.a is a soft link. Is the target file /usr/lpp/xlC/lib/libc++.a present and accessible on the system?



    ------------------------------
    Will SMITH
    ------------------------------



  • 3.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 08:12 AM

    indeed the file /usr/lpp/xlC/lib/libc++.a does not exist! 

    what do i need to install it? why isn't it installed by the libc++.rte package? 

    thank you 



    ------------------------------
    Mario Garcia
    ------------------------------



  • 4.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 08:47 AM
    Edited by Will SMITH Mon January 22, 2024 08:48 AM

    hi Mario, on my local system, libc++.rte installed /usr/lpp/xlC/lib/libc++.a :

    $ lslpp -f libc++.rte

      Fileset               File

      ----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      libc++.rte 17.1.1.0   /usr/lpp/xlC/lib/libc++.a

                            /usr/lpp/xlC/lib/libatomic.a

                            /usr/lpp/xlC

                            /usr/lib/libatomic.a -> /usr/lpp/xlC/lib/libatomic.a

                            /usr/lib/libc++.a -> /usr/lpp/xlC/lib/libc++.a

                            /usr/lpp/xlC/lib

    What does the `lslpp -f libc++.rte` command show for your system?



    ------------------------------
    Will SMITH
    ------------------------------