Caffe 在 Ubuntu 中安装
2015-09-26 01:01
330 查看
Ubuntu Installation
General dependenciessudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler sudo apt-get install --no-install-recommends libboost-all-dev
CUDA: Install via the NVIDIA package instead of
apt-getto 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. This can be skipped for CPU-only installation.
BLAS: install ATLAS by
sudo apt-get install libatlas-base-devor install OpenBLAS or MKL for better CPU performance.
Python (optional): if you use the default Python you will need to
sudo apt-get installthe
python-devpackage to have the Python headers for building the pycaffe interface.
Remaining dependencies, 14.04
Everything is packaged in 14.04.
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
Remaining dependencies, 12.04
These dependencies need manual installation in 12.04.
# glog wget https://google-glog.googlecode.com/files/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.
Continue with compilation.
相关文章推荐
- javascript实现汉诺塔
- Ubuntu14.04 Grunt 搭建自动化的web前端开发环境
- jQuery之元素的遍历与元素的过滤
- JSP+EXt2.0实现分页的方法
- 动态JSP页生成静态HTML的方法
- angularjs学习笔记之简单介绍
- jQuery超简单选项卡完整实例
- JS实现网页Div层Clone拖拽效果
- JS实现可拖曳、可关闭的弹窗效果
- angularjs学习笔记之三大模块(modal,controller,view)
- jQuery实现的登录浮动框效果代码
- angularjs学习笔记之完整的项目结构
- JS非Alert实现网页右下角“未读信息”效果弹窗
- angularjs学习笔记之双向数据绑定
- 如何用jQuery实现ASP.NET GridView折叠伸展效果
- 深入分析jsonp协议原理
- 基于jQuery仿淘宝产品图片放大镜代码分享
- Labelauty–jQuery单选框/复选框美化插件分享
- 深入浅出 妙用Javascript中apply、call、bind
- css学习笔记(四)-文本属性