【caffe安裝】筆記
阿新 • • 發佈:2018-12-28
1.
find ./ -depth -name "libprotobuf.so.14" -print
2.
conda install glog
3.
https://blog.csdn.net/lwplwf/article/details/76532804
首先,下載“protobuf-2.5.0.tar.gz”
然後解壓
cd protobuf-2.5.0
./configure --prefix=/home/kuo/local_install/ #修改預設安裝位置
make
make install
這樣就安裝到“home/name/local_install”了。
為了能在命令列中執行我們將該目錄安裝在path中
export PATH=~/local_install/bin/:$PATH
4.
5.
Step1:
git clone https://code.google.com/p/gflags/
Step2:
cd gflags
mkdir build
cd build
Step3(重要):
進入build之後輸入:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=google -G"Unix Makefiles" ..
之後輸入
make -j4
libgflags.so.2.2以及glog.so編譯報錯 cannot open shared object file:No such file or directory!解決辦法
6.安裝glog/gflags/lmdb
# glog wget https://github.com/google/glog/archive/v0.3.3.tar.gz tar zxvf v0.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
http://caffe.berkeleyvision.org/install_apt.html
7.huanjing
~/caffe-master/build$ vi ~/.bashrc
~/caffe-master/build$ source ~/.bashrc
~/caffe-master/build$ vi ~/.profile
~/caffe-master/build$ source ~/.profile