安装 C++ Mac OS X 上的犰狳库
我正在尝试在 Mac Pro 上使用 C++ 犰狳库 (armadillo-0.9.10)。我按照 README.txt 文件中的手动安装说明进行操作。我修改了 config.hpp 文件以表明我已安装 LAPACK 和 BLAS。然后我尝试编译这些示例。我成功编译并运行 example1.cpp,但是当我尝试运行 example2.cpp 时,它报告我需要安装 ATLAS 或 LAPACK。我将 #include 标头添加到 example2.cpp 中,并使用 -framework Accelerate 标志在 makefile 中进行编译。然而,它仍然不起作用。什么给?我应该在 Xcode 中默认安装 LAPACK 和 BLAS,不是吗?这里的任何帮助都会很棒。谢谢你,谢谢你!
I am trying to use the C++ armadillo library (armadillo-0.9.10) on a Mac Pro. I follow the manual installation instruction in the README.txt file. I have modified the config.hpp file to indicate that I have LAPACK and BLAS installed. I then try to compile the examples. I successfully compile and run example1.cpp, but when I try to run example2.cpp it reports that I need to have ATLAS or LAPACK installed. I added the #include header to example2.cpp and use the -framework Accelerate flag to compile in the makefile. However, it is still not working. What gives? I should have LAPACK and BLAS installed by default with Xcode, no? Any help here would be wonderful. Thank you, thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试自制。它将安装必要的软件包并节省您的时间
Try homebrew. it will install necessary packages and save your time
上面的答案返回:错误:homebrew/science已被弃用,
我搜索这个错误并找到解决方案,它对我有用。试试这个:
参考链接
The answer above this one returns that: Error: homebrew/science was deprecated,
I search for this error and find solution, and it works for me. Try this:
Reference Link
我不确定您是否仍在尝试解决这个问题,但为了回答您原来的问题,您可以轻松地从网站下载并设置犰狳:http://arma.sourceforge.net/download.html
我宁愿使用家庭酿造:
I am not sure if You are still trying to figure this out or now but to answer your original question, you can easily download and setup Armadillo from the website: http://arma.sourceforge.net/download.html
I would rather use home brew instead: