If you want to use cuda, you must install it first! ! ! !
1. Install cuda and cudnn
http://blog.csdn.net/sun7_she/article/details/68946966
http://blog.csdn.net/iotlpf/article/details/54175064
If you want to run the code, you may encounter problems and solutions:
2: The following problems will occur when loadcaffe is installed:
CMake Error at /opt/packman/cmake/3.2.1/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find Armadillo (missing: ARMADILLO_LIBRARY ARMADILLO_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/packman/cmake/3.2.1/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
/opt/packman/cmake/3.2.1/share/cmake-3.2/Modules/FindArmadillo.cmake:107 (find_package_handle_standard_args)
external/geomtk/CMakeLists.txt:46 (find_package)
Solution:
https://segmentfault.com/a/1190000002689335
2. Then there is a command that lacks protobuf, the solution is as follows:
Install protobuf
Simple version (the second configuration encountered this problem again, use the following sentence to solve it, before that, I also ran the first 4 sentences of the complex version, and then I changed to this sentence when I couldn't get through, I don't know if it will affect it):
sudo apt-get install libprotobuf-dev protobuf-compiler
Complex version (the following sentence is used to solve the problem for the first time):
http://www.th7.cn/system/lin/201602/153793.shtml
The actual statement used is:
sudo apt-get install m4
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar -zxvf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
./configure
make
make check
sudo make install
Check the version number after installation: protoc --version
Will report an error:
protoc: error while loading shared libraries: libprotocbuf.so.9: cannot open sharedSolution: Create the file bprotobuf.conf in the /etc/ld.so.conf.d/ directory
sudo vim /etc/ld.so.conf.d
The contents of the file are as follows:
/usr/local/lib
input the command:
sudo ldconfig
At this time, enter protoc --version again to see the version number normally
2. Install cuda and cudnn
http://blog.csdn.net/iotlpf/article/details/54175064