1.配置CUDA:官网教程
2.安装boost:
(1)官网下载boost,boost_1_58_0.tar.gz
(2)解压:tar -xzvf boost_1_58_0.tar.gz
(3)进入解压目录执行:./booststrap.sh
(4)执行./b2
(5)执行./b2 install
(6)配置参数:echo "/usr/local/lib">>/etc/ld.so.conf。
或者进入/etc/ld.so.conf.d/目录,创建boost.conf文件,并写入/usr/local/lib保存退出。
(7)执行idconfig重新加载所有库。
上述步骤执行完毕后,可输入:idconfig -v | grep boost 来查看编译好的库是否已经加载。
3. protobuf
, glog
, gflags,hdf5,leveldb,snappy,lmdb,openblas
yum install openblas-devel(或者安装另一个)yum install atlas-devvel.在编译时可以修改Makefile.conf来修改来选择使用哪一个
yum install protobuf-devel
glog 手动安装:下载,解压,./configure,make,make install
yum install gflags
yum install hdf5
yum install leveldb-devel
yum install snappy-devel
yum install lmdb-devel
yum install opencv-devel(或者下面的安装方式,不知道有什么区别)
4.安装OpenCV:https://github.com/jayrambhia/Install-OpenCV
参考:http://www.rthpc.com/plus/view.php?aid=351