zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    关于body添加position:fixed会返回到网页顶部的问题
    微信个人信息的接口
    无缝滚动+定时器
    判断各种浏览器的内核和 移动端的类型
    laery.js提示层结束之后自动跳转到新页面
    支持火狐的文本超出隐藏以省略号显示
    多个列表同时进行倒计时
    记录制作人生第一把分体式键盘 ^.^
    NoSQLBooster for mac 破解(win同理)
    手机对应归属地规则
  • 原文地址:https://www.cnblogs.com/leoking01/p/7115713.html
Copyright © 2011-2022 走看看