Snow Leopard上的Shogun工具箱安装失败 - liblapack问题?

时间:2012-05-31 18:37:19

标签: python shogun

我正在尝试在Snow Leopard上安装Shogun Toolbox。通过MacPorts我得到以下一组错误:

info:build Undefined symbols for architecture x86_64:
:info:build   "_drot_", referenced from:
:info:build       _dbdsqr_ in liblapack.a(dbdsqr.o)
:info:build   "_dswap_", referenced from:
:info:build       _dbdsqr_ in liblapack.a(dbdsqr.o)
:info:build       _dsteqr_ in liblapack.a(dsteqr.o)
:info:build      (maybe you meant: _ATL_dswap_xp0yp0aXbX)
:info:build   "__gfortran_concat_string", referenced from:
:info:build       _dgesvd_ in liblapack.a(dgesvd.o)
:info:build       _dormbr_ in liblapack.a(dormbr.o)
:info:build       _dormqr_ in liblapack.a(dormqr.o)
:info:build       _dormlq_ in liblapack.a(dormlq.o)
:info:build   "_dgemm_", referenced from:

还有更多,但它们之间的共性是对liblapack.a的引用。我不知道为什么会失败。我安装了LAPACK希望它会消失,但这种情况并没有发生。

此外,尽管安装了pkg-config,但当我从源代码配置Shogun时,它会挂断,告诉我我没有安装pkg-config

帮助!

1 个答案:

答案 0 :(得分:2)

答案与lapack完全无关。解决方案不是使用MacPorts,从Shogun网站下载的源代码构建,然后编辑PYTHONPATH以包含shogun安装目录。 捂脸