CentOS 6.5安裝caffe注意事項 應該可以解決大部分報錯問題
本文安裝基本環境參考這篇部落格,先往下看。
在我這裡坑主要出現在安裝glog一直報錯(其實問題是gflag安裝的問題),安裝gflags的時候按照我這裡的來
一句話:自己手動安裝的包,一定要確保有且只有安裝了這一個包(別重複安裝)!
比如gflags:
首先先保證把老版本解除安裝:
1、如果之前用make install安裝的,用make unistall解除安裝。
2、之後檢視rpm包
rpm -qa | grep gflags
(我這裡有兩個 一個gflags和一個gflags-devel,解除安裝命令:sudo yum remove gflags)
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC"
cmake .. -DGFLAGS_NAMESPACE=google
make
sudo make install
錯誤1:
如果提示缺少XXXX.so檔案。
加入一個環境變數:
export LD_LIBRARY_PATH=/usr/local/lib
如果還提示缺少檔案,把對應檔案copy放進去。
錯誤2
caffe:/usr/bin/ld: cannot find -lcblas
sudo yum install atlas-devel
在Makefile .config中加入:
BLAS_INCLUDE := /usr/include
BLAS_LIB := /usr/lib64/atlas
足足搞了一整天,把可能忽略的地方寫出來,希望可以對您有所幫助。
我的是CPU-ONLY的,caffe的配置如下:
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# CUSTOM_CXX := g++
# CUDA directory contains bin/ and lib/ directories that we need.
#CUDA_DIR := /usr/local/cuda
# On Ubuntu 14.04, if cuda tools are installed via
# "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
# CUDA_DIR := /usr
# CUDA architecture setting: going with all of them.
# For CUDA < 6.0, comment the *_50 lines for compatibility.
#CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
# -gencode arch=compute_20,code=sm_21 \
# -gencode arch=compute_30,code=sm_30 \
# -gencode arch=compute_35,code=sm_35 \
# -gencode arch=compute_50,code=sm_50 \
# -gencode arch=compute_50,code=compute_50
# BLAS choice:
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
BLAS := atlas
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
# BLAS_INCLUDE := /path/to/your/blas
# BLAS_LIB := /path/to/your/blas
BLAS_INCLUDE := /usr/include
BLAS_LIB := /usr/lib64/atlas
# Homebrew puts openblas in a directory that is not on the standard search path
# BLAS_INCLUDE := $(shell brew --prefix openblas)/include
# BLAS_LIB := $(shell brew --prefix openblas)/lib
# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
# MATLAB_DIR := /usr/local
# MATLAB_DIR := /Applications/MATLAB_R2012b.app
# NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
# PYTHON_INCLUDE := /usr/include/python2.7 \
# /usr/lib/python2.7/dist-packages/numpy/core/include
# Anaconda Python distribution is quite popular. Include path:
# Verify anaconda location, sometimes it's in root.
ANACONDA_HOME := /home/hadoop/anaconda2
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
$(ANACONDA_HOME)/include/python2.7 \
$(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
# We need to be able to find libpythonX.X.so or .dylib.
# PYTHON_LIB := /usr/lib
PYTHON_LIB := $(ANACONDA_HOME)/lib
# Homebrew installs numpy in a non standard path (keg only)
# PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
# PYTHON_LIB += $(shell brew --prefix numpy)/lib
# Uncomment to support layers written in Python (will link against Python libs)
# WITH_PYTHON_LAYER := 1
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
# If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
# INCLUDE_DIRS += $(shell brew --prefix)/include
# LIBRARY_DIRS += $(shell brew --prefix)/lib
# Uncomment to use `pkg-config` to specify OpenCV library paths.
# (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
# USE_PKG_CONFIG := 1
BUILD_DIR := build
DISTRIBUTE_DIR := distribute
# Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
# DEBUG := 1
# The ID of the GPU that 'make runtest' will use to run unit tests.
TEST_GPUID := 0
# enable pretty build (comment to see full commands)
Q ?= @
最後來一個執行成功截圖嘚瑟下。
相關推薦
CentOS 6.5安裝caffe注意事項 應該可以解決大部分報錯問題
本文安裝基本環境參考這篇部落格,先往下看。 在我這裡坑主要出現在安裝glog一直報錯(其實問題是gflag安裝的問題),安裝gflags的時候按照我這裡的來 一句話:自己手動安裝的包,一定要確保有且只有安裝了這一個包(別重複安裝)! 比如gflags:
centos 6.5安裝caffe
總結:在安裝protobuf,hdf5等的時候指定了安裝路徑,這導致在11、12兩個步驟中要配置編譯選項及連結庫的位置,這些軟體預設應該是安裝在/usr/local下的,如果這個推斷是正確的,那麼只需要編譯caffe之前在/etc/ld.so.conf中新
Centos 6.5 安裝memcached
too ats tool ont install net iptables bsp conf yum 安裝 yum –y install memcached 啟動服務 service memcached start 設置開機啟動服務 #開機自啟動 ch
centos 6.5安裝MySQL 5.6.35
linux mysql下載軟件[[email protected]/* */ src]# wget -q http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz解壓[[email
Centos 6.5 安裝Docker
arch http pro centos 安裝 .rpm conf centos6 版本 使用的操作系統是是centos6.5,按照官方的推薦的配置,把linux內核升級到3.8以上。安裝步驟如下: 1、升級內核版本(包含aufs)cd /etc/yum.repos.dwg
CentOS 6.5 安裝nginx 1.6.3
-1 tar format led command ont con 用戶 zip 使用epel [[email protected]/* */ /]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.al
centos 6.5 安裝
下載地址 用戶 tro 數據 鏡像文件 .net 下載 roo 百度網盤 工具 VirtualBox-4.3.8:下載後安裝. linux系統鏡像: Centos國內鏡像文件下載地址: http://centos.ustc.edu.cn/centos/ 百度網盤Cento
Centos 6.5 安裝和使用docker
rain mysql net 三方庫 內部 enable default 生產環境 sys 基於本人一貫的習慣,關於“某某某是什麽”這樣的問題,請百度吧,會有更專業的人士,會比我說的更詳細更深,這裏我只給出本人親歷的安裝和使用過程。 1.安裝
centos 6.5安裝NodeJS
ejs ble path pro file ftp工具 key ror 內容 下載 可以在本地下載node.js最新版,然後通過ftp工具上傳到服務器,或者直接在服務器終端使用wget命令下載(我當時下載的是node-v7.5.0-linux-x86版本,其他版本請查看上面
centos 6.5安裝vncserver
centos 6.5安裝vncservercentos 6.5安裝vncserver1. 查看是否安裝了VNC服務# rpm -qa |grep vnc如果返回下面信息就說明安裝了。tigervnc-server-1.1.0-16.el6.centos.x86_642. 下載vncserver # yum i
CentOS 6.5安裝jdk1.8
zhang 源碼 sch classpath uil 準備 安裝 .net lin 1、源碼包準備: 首先到官網下載jdk-8u66-linux-x64.tar.gz, http://www.oracle.com/technetwork/java/javase/downlo
CentOS 6.5 安裝 rlwrap軟件for sqlplus
rlwrapCentOS 6.5 安裝 rlwrap軟件for sqlplus目的:解決sqlplus連接oracle的方便使用(如左右鍵,上下鍵的靈活使用)提示:依yum方式安裝,需要連接第三方的yum源,因為centos默認的yum源中沒有rlwarap組件步驟1.root用戶登入OS 2.#rpm -i
Centos 6.5安裝配置KVM
centos 6.5安裝kvm kvm部署 1 egrep --color=auto 'vmx|svm' /proc/cpuinfo2 yum install kvm qemu-kvm python-virtinst libvirt libvirt-python virt-mana
centos 6.5安裝vnc(圖形化遠程服務器)
圖形化遠程 vnc 1、查詢是否安裝了vnc[root@localhost ~]#rpm -qa | grep -E "vnc|vnc-server"2、如果沒有安裝,安裝下[root@localhost ~]#yum -y install vnc-server3、修改配置文件[r
CentOS 6.5 安裝VNC
http協議 ram service stat lis pack frame www. 技術分享 CentOS 6.5 安裝VNC 在Linux下用VNC遠程桌面是個很不錯的玩意。但在CentOS中默認沒有安裝VNC的。可以用下面語句查詢,如果出現下面情況說明沒有安裝vn
centos 6.5 安裝mysql 5.7.21 community
connect edi 主機 查看 restart 特殊 generated src req Step1: 檢測系統是否自帶安裝mysql # yum list installed | grep mysql Step2: 刪除系統自帶的mysql及其依賴命令: # yum
Centos 6.5 安裝教程
Centos6.5安裝 網絡配置 防火墻設置 CentOS(Community Enterprise Operating System,中文意思是:社區企業操作系統)是Linux發行版之一,它是來自於Red Hat Enterprise Linux依照開放源代碼規定釋出的源代碼所編譯而成。工具:c
VMware 12下的CentOS 6 .5 安裝具體步驟
用途 all 問題 適配 centos OS skip nbsp 磁盤 第一步:選擇“文件”——“新建虛擬機” 打開”新建虛擬機向導“——選擇“典型”(一般學習用途不會用到其他高級選項) 先配置虛擬機平臺,所以選擇”稍後安裝操作系統“ 根據自己下載的L
centos 6.5安裝VMware tools
sta mas entos 6.5 folder win .tar.gz 設置 傳輸數據 系統描述:win7旗艦版64位系統+VMware Workstation10+CentOS6.5(win7系統上安裝了VMware Workstation10虛擬化軟件,在該虛擬化軟件
CentOS 6.5安裝WordPress(基於LNMP)
mys adding -s 6.5 pan 說明 宋體 AI bz2 一、LNMP環境版本說明:OS:最小化安裝CentOS 6.5Nginx:nginx-1.10.2.tar.gzMySQL:mysql-5.6.24.tar.gzPHP:php-5.6.23.tar.bz