AIX Open Source

 View Only
Expand all | Collapse all

under AIX need to compile for IBM CPT for R the data table and got error

  • 1.  under AIX need to compile for IBM CPT for R the data table and got error

    IBM Champion
    Posted Sat November 12, 2022 04:49 AM
    Hi
    i have updated on my AIX with DNF all open source packages and also programming Language R also got an update..now th e CPT from IBM Labe Service is not working anymore so they told me to update data.table wir R command and i see error here and don't know how to solve
    thx
    vince


    root@rb3zf01(Si):/cpt/vince $ R CMD INSTALL /cpt/Rpackages/data.table_1.14.4.tar.gz
    * installing to library '/opt/freeware/lib64/R/library'
    * installing *source* package 'data.table' ...
    ** package 'data.table' successfully unpacked and MD5 sums checked
    ** using staged installation
    gcc -maix64 -pthread -fPIC 8.3.0
    *** pkg-config is installed but 'pkg-config --exists zlib' did not return 0.
    *** Compilation will now be attempted and if it works you can ignore this message. In
    *** particular, this should be the case on Mac where zlib is built in or pkg-config
    *** is not installed. However, if compilation fails, try 'locate zlib.h zconf.h' and
    *** ensure the zlib development library is installed :
    *** deb: zlib1g-dev (Debian, Ubuntu, ...)
    *** rpm: zlib-devel (Fedora, EPEL, ...)
    *** There is a zlib in brew for OSX but the built in zlib should work.
    *** Note that zlib is required to compile R itself so you may find the advice in the R-admin
    *** guide helpful regarding zlib. On Debian/Ubuntu, zlib1g-dev is a dependency of r-base as
    *** shown by 'apt-cache showsrc r-base | grep ^Build-Depends | grep zlib', and therefore
    *** 'sudo apt-get build-dep r-base' should be sufficient too.
    *** To silence this message, please ensure that :
    *** 1) 'pkg-config --exists zlib' succeeds (i.e. $? -eq 0)
    *** 2) 'pkg-config --libs zlib' contains -lz
    *** Compilation will now be attempted ...
    R CMD SHLIB supports OpenMP without any extra hint
    *** Compilation without compression support in fwrite
    ** libs
    gcc -maix64 -pthread -fPIC -I"/opt/freeware/lib64/R/include" -DNDEBUG -O2 -I/opt/freeware/include -I/usr/include -D_GETDELIM -mminimal-toc -fopenmp -DNOZLIB -O2 -I/opt/freeware/include -I/usr/include -D_GETDELIM -c assign.c -o assign.o
    In file included from data.table.h:15,
    from assign.c:1:
    po.h:2:10: fatal error: libintl.h: No such file or directory
    #include <libintl.h>
    ^~~~~~~~~~~
    compilation terminated.
    make: 1254-004 The error code from the last command is 1.


    Stop.
    ERROR: compilation failed for package 'data.table'
    * removing '/opt/freeware/lib64/R/library/data.table'
    * restoring previous '/opt/freeware/lib64/R/library/data.table'
    root@rb3zf01(Si):/cpt/vince $

    ------------------------------
    Vincencio Michaelis
    ------------------------------


  • 2.  RE: under AIX need to compile for IBM CPT for R the data table and got error

    Posted Mon November 14, 2022 02:25 AM
    install gettext-devel rpm and try again.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: under AIX need to compile for IBM CPT for R the data table and got error

    Posted Thu December 01, 2022 08:12 AM
    I am also facing the same issue dude.

    ------------------------------
    Candice Elmore
    ------------------------------