Python 使用sunperf atlas库编译numpy

Python 使用sunperf atlas库编译numpy,python,numpy,compilation,scipy,sunstudio,Python,Numpy,Compilation,Scipy,Sunstudio,我想在编译scipy和numpy时使用sunperf库。我尝试使用setupscons.py,它似乎是从SUNPERF库中检查出来的,但它没有识别出我的位置:下面是/pkg/linux/SS12/sunstudio12.1的列表(SUNPERF库就在这里): 我试图在sites.cfg中指定此目录,但仍然出现以下错误: Checking if g77 needs dummy main - MAIN__. Checking g77 name mangling - '_', '', lower-c

我想在编译scipy和numpy时使用sunperf库。我尝试使用setupscons.py,它似乎是从SUNPERF库中检查出来的,但它没有识别出我的位置:下面是/pkg/linux/SS12/sunstudio12.1的列表(SUNPERF库就在这里):


我试图在sites.cfg中指定此目录,但仍然出现以下错误:

Checking if g77 needs dummy main - MAIN__.
Checking g77 name mangling - '_', '', lower-case.
Checking g77 C compatibility runtime ...-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -            L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-    linux/3.4.6/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lfrtbegin -lg2c -lm
Checking MKL ... Failed (could not check header(s) : check config.log in build/scons/scipy/integrate for more details)
Checking ATLAS ... Failed (could not check header(s) : check config.log in build/scons/scipy/integrate for more details)
Checking SUNPERF ... Failed (could not check symbol cblas_sgemm : check config.log in build/scons/scipy/integrate for more details))
Checking Generic BLAS ... yes
Checking for BLAS (Generic BLAS) ... Failed: BLAS (Generic BLAS) test could not be linked and run
Exception: Could not find F77 BLAS, needed for integrate package:
  File "/priv/manana1/wkerzend/install_dir/scipy-0.7.1/scipy/integrate/SConstruct", line 2:
GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
  File "/home/wkerzend/python_coala/numscons-0.10.1-py2.6.egg/numscons/core/numpyenv.py", line 108:
build_dir = '$build_dir', src_dir = '$src_dir')
  File "/priv/manana1/wkerzend/python_coala/numscons-0.10.1-py2.6.egg/numscons/scons-local/scons-local-1.2.0/SCons/Script/SConscript.py", line 549:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/priv/manana1/wkerzend/python_coala/numscons-0.10.1-py2.6.egg/numscons/scons-local/scons-local-1.2.0/SCons/Script/SConscript.py", line 259:
exec _file_ in call_stack[-1].globals
  File "/priv/manana1/wkerzend/install_dir/scipy-0.7.1/build/scons/scipy/integrate/SConscript", line 15:
    raise Exception("Could not find F77 BLAS, needed for integrate package")
error: Error while executing scons command. See above for more information.

If you think it is a problem in numscons, you can also try executing the scons
command with --log-level option for more detailed output of what numscons is
doing, for example --log-level=0; the lowest the level is, the more detailed
the output it.-----

谢谢你的帮助

Wolfgang

这方面有进展吗?我还尝试在这个环境中启动并运行numpy/scipy。我设法在本地安装中编译了numpy和scipy,但没有atlas。也不是所有的测试都通过。我意识到这不是一篇非常有用的文章,但如果有帮助的话,我可以发布链接。我还应该提到,我正在用python3进行尝试。应该链接到请共享你的
站点.cfg
文件。
Wolfgang