Originally posted by: AyappanP
It seems like your requirement is to install scipy. I tried it myself.
With some hacks i am able to install scipy.
One can build this lapack source ( http://www.netlib.org/lapack/ ) easily in AIX. You just need gcc-gfortran rpm installed
Extract source and copy make.inc.example as make.inc followed by "make"
After build , copy three libraries (liblapack.a , librefblas.a, libtmglib.a ) to /opt/freeware/lib. Rename librefblas.a as libblas.a
Apply this patch in scipy source
--- scipy/special/cephes/dd_real.h_orig 2018-10-10 19:53:10 +0000
+++ scipy/special/cephes/dd_real.h 2018-10-10 11:41:59 +0000
@@ -105,7 +105,7 @@
extern const double2 DD_C_ZERO;
extern const double2 DD_C_ONE;
-#if defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && defined(NAN)
+#if defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && defined(NAN) && !(defined(_AIX))
#define DD_C_NAN_IS_CONST
extern const double2 DD_C_NAN;
extern const double2 DD_C_INF;
Finally run
LDFLAGS="-lpthread" python setup.py install