The installation of PythonInR failed on AIX7.2

Create issue
Issue #23 new
bergen288 created an issue

The installation failed with following message. The line 661 in Rinternals.h is Rbyte *(RAW)(SEXP x);. See attached file. What’s wrong and how to fix it?

Thanks.

gcc -maix64 -I"/opt/freeware/lib64/R/include" -DNDEBUG -mminimal-toc -I/opt/freeware/include/python3.7m -DPYTHONLIBXY=libpython3.7m.so -DPYTHON_IN_R_NO_EXPLICIT_LINKING   -c CToR.c -o CToR.o
In file included from /usr/include/sys/termio.h:36,
                 from /opt/freeware/include/python3.7m/pyport.h:556,
                 from /opt/freeware/include/python3.7m/Python.h:63,
                 from PythonInR.h:15,
                 from CToR.h:12,
                 from CToR.c:8:
/opt/freeware/lib64/R/include/Rinternals.h:661:9: error: expected identifier or '(' before numeric constant
 Rbyte *(RAW)(SEXP x);
         ^~~
make: *** [Makevars:21: CToR.o] Error 1
ERROR: compilation failed for package 'PythonInR'
* removing '/software/R/site-library/PythonInR'

Comments (0)

  1. Log in to comment