0

我正在遵循Python SciPy 需要 BLAS 的建议吗?将 scipy 本地安装到我在 SunOS 上的主目录(5.10 Generic_147440-12 sun4u sparc SUNW,Sun-Fire-V440)。但是,尽管我有 Python 2.7 工作,安装了 numpy,并且(我认为)编译了 BLAS 库,但我无法让 LAPACK 玩得很好。我的 make.inc 是 make.inc.SUN4SOL2 (这是对的吗?),我已经将 f77 替换为 f95 的 FORTRAN 和 LOADER 变量,但后来我得到:

We are about to check whether infinity arithmetic
 can be trusted.  If this test hangs, set
 ILAENV = 0 for ISPEC = 10 in LAPACK/SRC/ilaenv.f
*** Error code 136
make: Fatal error: Command failed for target `lapack_install'

即使我已编辑 ilaenv.f 为 ISPEC=10(和 ISPEC=11)设置 ILAENV = 0。现在我被困住了——如果有帮助,我的编译器会将自己标识为:

file `which f95`
/usr/local/rlib/SunStudio11/SUNWspro/bin/f95:   ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, stripped

在此先感谢,克里斯

好的 - 一些进展:我已经在我的 make.inc 中添加了 -ftrap=%none 标志,并安装了 GNU make 来使用,而不是使用 solaris 为我提供的任何东西,我们已经解决了最后一个错误。

4

1 回答 1

0

好吧,我现在似乎在系统上安装了 scipy 和 LAPACK / BLAS。因此,如果它对任何人有帮助,秘密似乎是将 -ftrap=%none 添加到从 INSTALL/make.inc.SUN4SOL 复制的 make.inc 中的标志中,并(在构建 scipy 时)将环境变量 LAPACK 和 BLAS 设置为编译后指向相应的库。

于 2012-12-06T08:49:13.850 回答