caffe搭建--opensuse13.2上搭建caffe开发环境
2017-07-04 11:19
141 查看
第一部分:参考一下内容。将sudo 替换成zypper即可。
--------------------------------------------这部分参照以下官网内容-------------------------------------------------------------------------------
Remaining dependencies, recent OS
Remaining dependencies, if not found
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
BLAS: install ATLAS by
Python (optional): if you use the default Python you will need to
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
--------------------------------------------这部分参照以下官网内容-------------------------------------------------------------------------------
RHEL / Fedora / CentOS Installation
General dependenciessudo 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
yumto 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-develor install OpenBLAS or MKL for better CPU performance. For the Makefile build, uncomment and set
BLAS_LIBaccordingly as ATLAS is usually installed under
/usr/lib[64]/atlas).
Python (optional): if you use the default Python you will need to
sudo yum installthe
python-develpackage 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
相关文章推荐
- 在Windows7/10上快速搭建深度学习框架Caffe开发环境
- Ubuntu搭建Scikit-Learn、TensorFlow、Theano、Caffe、OpenCV、Hadoop、Spark开发环境
- caffe学习(一):开发环境搭建,编译caffe(win10)
- Unix/Linux环境C编程新手教程(12) openSUSECCPP以及Linux内核驱动开发环境搭建
- OpenSUSE 13.2开发环境配置
- Deep Learning---win10 搭建caffe开发环境(GPU)
- D语言开发环境搭建-opensuse
- Unix/Linux环境C编程入门教程(12) openSUSECCPP以及Linux内核驱动开发环境搭建
- openSUSE leap 42.1下Qt5.6.0 开发环境搭建
- D语言开发环境搭建-opensuse
- Unix/Linux环境C编程入门教程(12) openSUSECCPP以及Linux内核驱动开发环境搭建
- 小强的HTML5移动开发之路(24)—— PhoneGap Android开发环境搭建
- Jython学习笔记(一) Eclipse开发环境搭建
- Android开发环境搭建
- react-native学习之路1-windows下开发环境的搭建
- 开发环境搭建笔记
- 单机搭建WinCE开发环境(一)
- macbook Android开发环境搭建,真机调试
- 单机搭建WinCE开发环境 -如何在CE6.0 image中加入MFC的支持, 及如何导出相关的SDK
- 开发环境搭建4:linux下tuxedo与oracle连接