caffe搭建--opensuse13.2上搭建caffe开发环境
第一部分:参考一下内容。将sudo 替换成zypper即可。
--------------------------------------------这部分参照以下官网内容-------------------------------------------------------------------------------
RHEL / Fedora / CentOS Installation
General dependencies
sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
Remaining dependencies, recent OS
sudo yum install gflags-devel glog-devel lmdb-devel
Remaining dependencies, if not found
# glog
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-glog/glog-0.3.3.tar.gz
tar zxvf glog-0.3.3.tar.gz
cd glog-0.3.3
./configure
make && make install
# gflags
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make && make install
# lmdb
git clone https://github.com/LMDB/lmdb
cd lmdb/libraries/liblmdb
make && make install
Note that glog does not compile with the most recent gflags version (2.1), so before that is resolved you will need to build with glog first.
CUDA: Install via the NVIDIA package instead of yum
to be certain of the library and driver versions. Install the library and latest driver separately; the driver bundled with the library is usually out-of-date. + CentOS/RHEL/Fedora:
BLAS: install ATLAS by sudo yum install atlas-devel
or install OpenBLAS or MKL for better CPU performance. For the Makefile build, uncomment and set BLAS_LIB
accordingly as ATLAS is usually installed under /usr/lib[64]/atlas
).
Python (optional): if you use the default Python you will need to sudo yum install
the python-devel
package to have the Python headers for building the pycaffe wrapper.
Continue with compilation.
-------------------------------------------------------注意事项-------------------------------------------------------------------
问题1: numpy开发包可能会缺少,也就是没有头文件
sudo zypper install python-numpy-devel 这个以外的给力了。 在ubuntu和fedora上都没有这个情况的。
问题2: gflags 需要手动下载安装。即不能使用zypper大法。
---------------------------------------------附件:部分细节------------
完全按照第一部分是不行的。有些包需要有些名称上或其他的安装的变化。
sudo zypper install python-numpy-devel
sudo zypper install leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
sudo zypper install atlas-devel
sudo zypper install atlas* 点N
sudo zypper install *atlas* 点N
sudo zypper install python python-devel python-numpy python-scipy python-sklearn 其中sklearn不能装
wget https://github.com/schuhschuh/gflags/archive/master.zip
sudo zypper install protobuf-devel
sudo zypper install glog-devel lmdb-devel
------------------------------------又附结果:----------------------------------
[100%] Built target classification
[100%] Built target convert_cifar_data
[100%] Built target convert_mnist_data
[100%] Built target convert_mnist_siamese_data
[100%] Building CXX object python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o
Linking CXX shared library ../lib/_caffe.so
Creating symlink /home/sea/caffe-master/python/caffe/_caffe.so -> /home/sea/caffe-master/build/lib/_caffe.so
[100%] Built target pycaffe
-- Installing: /home/sea/caffe-master/build/install/python/caffe/io.py
-- Installing: /home/sea/caffe-master/build/install/python/caffe/net_spec.py
-- Installing: /home/sea/caffe-master/build/install/python/caffe/pycaffe.py
-- Installing: /home/sea/caffe-master/build/install/python/caffe/proto
-- Installing: /home/sea/caffe-master/build/install/python/caffe/proto/__init__.py
-- Installing: /home/sea/caffe-master/build/install/python/caffe/proto/caffe_pb2.py
-- Installing: /home/sea/caffe-master/build/install/python/caffe/_caffe.so
-- Set runtime path of "/home/sea/caffe-master/build/install/python/caffe/_caffe.so" to "/home/sea/caffe-master/build/install/lib:/usr/local/cuda/lib64"
sea@linux-61bx:~/caffe-master/build> ls
最新文章
- ExtJS 项目准备工作(一)
- python模块:base64
- Leetcode 382. Linked List Random Node
- 修改UINavigationController返回按钮颜色
- Active Record快速入门指南
- 位图引起的内存溢出OutOfMemory解决方案
- JavaScript性能优化:度量、监控与可视化1
- Linux系统学习笔记:文件I/O
- 十分钟释疑Oracle中“小表超慢”之谜(SQL调优/SQL优化)
- Spring Boot入门-快速搭建web项目
- Oracle database link中查询会开启事务吗?
- yo install generator-gulp-react遇到UNMET PEER DEPENDENCY问题
- 【转】fiddler抓包时出现了tunnel to ......443 解密HTTPS数据
- STM32 CRC-32 Calculator Unit
- Bootstrap 3之美03-独立行,文字环绕,图片自适应,隐藏元素
- [WCF安全2]使用wsHttpBinding构建UserName授权的WCF应用程序,非SSL
- mem_fun与mem_fun_ref的区别
- 【2018沈阳赛区网络预选赛J题】Ka Chang【分块+DFS序+线段树】
- centos 查看mysql数据库命令
- myeclipse创建的项目发布不了文档
热门文章
- 备忘 CSS字体中英文名称对照表
- NBOJv2——Problem 1037: Wormhole(map邻接表+优先队列SPFA)
- JS实现并集,交集和差集
- nvm、node、npm安装以及pycharm配置eslint
- 03深入理解C指针之---变量与内存
- python print 在命令行打印带颜色
- QQ客服代码,支持临时会话
- LeetCode OJ--Add Two Numbers
- Codeforces 946 B.Weird Subtraction Process
- IDEA重新打jar包时报错MANIFEST.MF already exists in VFS