我正在尝试在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,但是当我从源代码配置将军时,它仍挂起并告诉我我没有安装pkg-config

救命!

最佳答案

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

关于python - Shogun Toolbox安装在Snow Leopard上失败-liblapack问题?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10839309/

10-16 07:36