linux下armadillo安装,包括blas/openblas/atlas/lapack/arpack
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
首先下载armadillo:http://arma.sourceforge.net/download.html,我下载的是armadillo-8.400.0.tar.xz,将其解压:
tar xf armadillo-8.400.0.tar.xz
得到armadillo-8.400.0目录,按readme.txt说明安装,执行如下命令:
cd armadillo-8.400.0
.make
make
sudo make install
然后到examples目录,make编译example1,运行看是否正常
cd examples
make
./example1
正常会打印一些矩阵,但也有报错
error: det(): use of ATLAS or LAPACK needs to be enabled
我们查看CMakeCache.txt发现一些类似如下的NOTFOUND提示:
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
ARPACK_LIBRARY:FILEPATH=ARPACK_LIBRARY-NOTFOUND
如果需要ATLAS、LAPACK等则需要安装,我们到 https://pkgs.org 寻找相关的安装包,这个网站提供各种系统的安装包,搜索下载即可。我下载了如下包,注意一定要下载对应系统版本的,我下载的Centos7的。后三个包要依序安装。
后来编译程序遇到错误:undefined reference to `clapack_dgetrf',未定位具体原因。到正常部署的机器的/usr/lib64下查看so文件的中的函数定义(命令:nm -Do *.so | grep dgetrf),发现没有clapack_dgetrf的定义,但发现openblas有好多dgetrf相关的函数,不管了,把openblas相关包安装上再说。接着安装了openblas相关包,问题解决。
安装命令:
sudo rpm -ivh blas-devel-3.4.2-8.e17.x86_64.rpm
这些包安装完成后,再重新进入armadillo-8.400.0,删除CMakeCache.txt,重新安装一遍,并重新编译运行example1,应该没有问题了。
推荐内容




A beautiful web dashboard for Linux
最近提交(Master分支:7 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
相关推荐
查看更多
linux-dash

A beautiful web dashboard for Linux
linux-dash

A beautiful web dashboard for Linux
linux-dash

热门开源项目
活动日历
查看更多
直播时间 2025-04-09 14:34:18

樱花限定季|G-Star校园行&华中师范大学专场
直播时间 2025-04-07 14:51:20

樱花限定季|G-Star校园行&华中农业大学专场
直播时间 2025-03-26 14:30:09

开源工业物联实战!
直播时间 2025-03-25 14:30:17

Heygem.ai数字人超4000颗星火燎原!
直播时间 2025-03-13 18:32:35

全栈自研企业级AI平台:Java核心技术×私有化部署实战
所有评论(0)