关键词:
1. prepare
sudo apt install vim
sudo vim /etc/apt/sources.list
ubuntu镜像-ubuntu下载地址-ubuntu安装教程-阿里巴巴开源镜像站
sudo apt-get update
sudo apt-get upgrade
sudo apt install python
2. install opencv
其实opencv只用一句话来装就可以
sudo apt install libopencv-dev
但是下边的过程还是记录一下好了,第2小节之后的内容可以不看,直接跳到第3小节
linux安装opencv和Makefile:160: recipe for target 'all' failed问题解决方案_Yancy的博客-CSDN博客git clone https://github.com/Itseez/opencv.git
git clone https://github.com/Itseez/opencv_contrib.git
将opencv_contrib目录移到opencv目录下
添加需要的依赖库:
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
error1:
E: Unable to locate package libjasper-dev的解决办法(亲测可以解决)_mango-CSDN博
solution1 start:
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev
solution1 end
cd命令进入opencv
mkdir build
进入build目录,开始编译
cmake -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
make -j8
sudo make install
cd /usr/local/lib
ls
error2:
solution2 start:
sudo make uninstall
sudo apt install libopencv-dev
solution2 end
3. install cuda8.0+cudnn5
sudo dpkg -i ...
cuda-license-8-0
cuda-misc-headers-8-0
cuda-npp-8-0
cuda-npp-dev-8-0
cuda-nvgraph-8-0
cuda-nvgraph-dev-8-0
cuda-nvml-dev-8-0
cuda-nvrtc-8-0
cuda-nvrtc-dev-8-0
libcudnn5
libcudnn5-dev
cuda-core-8-0
cuda-cublas-8-0
cuda-cublas-dev-8-0
cuda-cudart-8-0
cuda-cufft-8-0
cuda-cufft-dev-8-0
cuda-curand-8-0
cuda-curand-dev-8-0
cuda-cusolver-8-0
cuda-cusolver-dev-8-0
cuda-cusparse-8-0
cuda-cusparse-dev-8-0
cuda-driver-dev-8-0
cuda-cudart-dev-8-0
cuda-command-line-tools-8-0
error 3:
solution3 start:
sudo vim /etc/apt/sources.list
ubuntu镜像-ubuntu下载地址-ubuntu安装教程-阿里巴巴开源镜像站
sudo apt-get update
sudp apt-get upgrade
solution3 end
sudo ubuntu-drivers autoinstall
4. install caffe & test code
sudo apt-get install git
sudo 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
sudo apt-get install libatlas-base-dev
sudo apt-get install python-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
cd /home/ruoqi256/srq/model
git clone https://github.com/Eniac-Xie/faster-rcnn-resnet.git
git clone https://github.com/Eniac-Xie/caffe-fast-rcnn.git
cp -r caffe-fast-rcnn faster-rcnn-resnet
cd faster-rcnn-resnet/caffe-fast-rcnn
mv Makefile.config.example Makefile.config
sudo apt-get install python-setuptools
sudo apt install python-pip
pip install cython
//-----------------------------------------------------------------------------
vim Makefile.config
opencv_vertion := 3
CUDA_DIR := /usr/local/cuda-8.0
CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \\
-gencode arch=compute_35,code=sm_35 \\
-gencode arch=compute_50,code=sm_50 \\
-gencode arch=compute_52,code=sm_52 \\
-gencode arch=compute_60,code=sm_60 \\
-gencode arch=compute_61,code=sm_61 \\
-gencode arch=compute_61,code=compute_61
WITH_PYTHON_LAYER := 1
vim Makefile.config
change
CUDA_DIR := /usr/local/cuda-8.0
change
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu
//-----------------------------------------------------------------------------
mkdir build
cd build
sudo apt-get install the python-dev
sudo apt-get install python-scipy
sudo apt-get install python-numpy
sudo apt install cmake
cmake ..
make
make install
~/.bashrc ---->
export PYTHONPATH=~/srq/model/faster-rcnn-resnet/caffe-fast-rcnn/python:$PYTHONPATH
terminal write export PYTHONPATH=~/srq/model/faster-rcnn-resnet/caffe-fast-rcnn/python:$PYTHONPATH
over
error4: nvidia-smi 无法使用
solution4 start:
E: 无法定位软件包:nvidia-470(核显+独显安装ubuntu操作说明)_znevegiveup1的博客-CSDN博客s
solution4 end
error5:
solution5 start:
sudo apt install nvidia-cuda-toolkit
solution5 end
error6:
solution6 start:
change setup.py
'lib64': pjoin(home, 'lib64') -------->'lib64': pjoin(home, 'lib')
solution6 end
error7:
solution7 start:
sudo apt-get install protobuf-compiler
solution7 end
error8
编译caffe出现:src/caffe/net.cpp:9:18: fatal error: hdf5.h: No such file or directory compilation termina
solution8 start:
修改Makefile.config文件中这两行,改成:
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
solution8 end
error9:
solution9 start:
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial /usr/local/cuda-8.0/targets/x86_64-linux/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial /usr/local/cuda-8.0/targets/x86_64-linux/lib
solution9 end
error10 :
solution10 start:
Makefile.config
CUDA_DIR := /usr/local/cuda-8.0
solution10 end
error11:
error: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
solution11 start:
Ubuntu 安装 gcc/g++ 5.0_HexRain的专栏-CSDN博客
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5
sudo apt-get install g++-5
后边这四句有点取巧了,最好还是按照对的方式安装,也可不看
sudo cp /usr/bin/gcc-5 /usr/local/cuda-8.0/bin/
sudo cp /usr/bin/g++-5 /usr/local/cuda-8.0/bin/
sudo ln -s /usr/bin/gcc-5 /usr/local/cuda-8.0/bin/gcc
sudo ln -s /usr/bin/g++-5 /usr/local/cuda-8.0/bin/g++
solution11 end
error12:
solution 12 start:
vim Makefile.config
CUDA_ARCH := -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
solution 12 end
sudo apt install python-pip
error13:
No package 'gstreamer-base-1.0' found
solution13 start:
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
solution13 end
error14: sudo apt install nvidia-cuda-toolkit
解决apt-get安装中的E: Sub-process /usr/bin/dpkg returned an error code (1)问题 - orzs - 博客园
solution14 start:
cd /var/lib/dpkg/
sudo mv info/ info_bak # 现将info文件夹更名
sudo mkdir info #再新建一个新的info文件夹
sudo apt-get update #更新
sudo apt-get -f install #修复
sudo mv info/* info_bak/ # 执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_bak文件夹下
sudo rm -rf info # 把自己新建的info文件夹删掉
sudo mv info_bak info
solution14 end
error16 caffe的两个重要错误_AlphaHolo的博客-CSDN博客
------------------------------------------------------------------------------------------------------------------------------
sudo apt-get install python-skimage
pip install protobuf
「Python」class DescriptorBase(metaclass=DescriptorMetaclass)_Liiipseoroinis-CSDN博客
最后,感谢王凌宇老师的指导,我才可以完成这复杂(对于我来说)的环境配置任务~
ubuntu18.04cuda8.0cudnn5caffepython2.7install
1.preparesudoaptinstallvimsudovim/etc/apt/sources.listubuntu镜像-ubuntu下载地址-ubuntu安装教程-阿里巴巴开源镜像站sudoapt-getupdatesudoapt-getupgradesudoaptinstallpython2.installopencv其实opencv只用一句话来装就可以sudoaptinstalllibopencv-dev但是下边的过程还是... 查看详情
ubuntu18.04cuda8.0cudnn5caffepython2.7install
1.preparesudoaptinstallvimsudovim/etc/apt/sources.listubuntu镜像-ubuntu下载地址-ubuntu安装教程-阿里巴巴开源镜像站sudoapt-getupdatesudoapt-getupgradesudoaptinstallpython2.installopencv其实opencv只用一句话来装就可以sudoaptinstalllibopencv-dev但是下边的过程还是... 查看详情
caffe—ssd安装教程(代码片段)
环境:ubuntu16.04cuda8.0cudnn5.0已安装过caffe1.0tensorflow1.2 教程 https://github.com/weiliu89/caffe/tree/ssd InstallationGetthecode.WewillcallthedirectorythatyouclonedCaffeinto $CAFFE_ROOT 查看详情
ubuntu18.04下载地址
中科大:http://mirrors.ustc.edu.cn/ubuntu-releases/18.04/南京大学:http://mirrors.nju.edu.cn/ubuntu-releases/18.04/上海交通大学:http://ftp.sjtu.edu.cn/ubuntu-releases/18.04/清华大学:https://mirror.tuna.tsinghua.edu.cn/ubuntu-releases/18.04/阿里云:http://... 查看详情
ubuntu 18.04 登录循环
】ubuntu18.04登录循环【英文标题】:ubuntu18.04loginloop【发布时间】:2020-08-1816:23:59【问题描述】:我使用的是ubuntu18.04。我对/etc/default/grub文件进行了更改并导致登录循环。tty命令仍然可以使用。我撤消了未更改的内容,但登录循... 查看详情
Erlang 没有从 Ubuntu 18.04 卸载
】Erlang没有从Ubuntu18.04卸载【英文标题】:ErlangisnotgettinguninstalledfromUbuntu18.04【发布时间】:2019-04-0206:01:41【问题描述】:我有一个Ubuntu-18.04aws实例。我已经按照此链接https://hostpresto.com/community/tutorials/how-to-install-erlang-on-ubuntu-16-04... 查看详情
ubuntu18.04美化(代码片段)
Ubuntu18.04美化sudoaptinstallgnome-tweak-toolsudoaptinstallgnome-shell-extensions 查看详情
安装 TensorFlow Ubuntu 18.04
】安装TensorFlowUbuntu18.04【英文标题】:InstallingTensorFlowUbuntu18.04【发布时间】:2021-08-0918:41:01【问题描述】:我正在尝试安装tensorflow,但是当我运行时pipinstalltensorflow我收到以下错误:ERROR:Couldnotfindaversionthatsatisfiestherequirementtensor... 查看详情
石墨网和 ubuntu 18.04
】石墨网和ubuntu18.04【英文标题】:graphite-webandubuntu18.04【发布时间】:2018-05-2507:22:34【问题描述】:我正在尝试在新安装的ubuntu18.04系统上设置石墨网络。我使用了apt数据包管理器,所以我得到了1.0.2版本的石墨网络。我照常完... 查看详情
PHP 启动:无法加载动态库 'cassandra.so' Ubuntu 18.04
】PHP启动:无法加载动态库\\\'cassandra.so\\\'Ubuntu18.04【英文标题】:PHPStartup:Unabletoloaddynamiclibrary\'cassandra.so\'Ubuntu18.04PHP启动:无法加载动态库\'cassandra.so\'Ubuntu18.04【发布时间】:2019-01-2819:11:27【问题描述】:我已经在Ubuntu18.04中... 查看详情
如何修复 Ubuntu 18.04 上没有声音?
】如何修复Ubuntu18.04上没有声音?【英文标题】:HowtofixNosoundonUbuntu18.04?【发布时间】:2020-05-0619:08:42【问题描述】:1)几个月来,我一直在使用带有Windows10双启动的Ubuntu18.04。今天突然我的声音停止在Ubunutu上工作。活动->声音... 查看详情
MySQL 未从 Ubuntu 18.04 LTS 开始
】MySQL未从Ubuntu18.04LTS开始【英文标题】:MySQLnotstartingatUbuntu18.04LTS【发布时间】:2019-03-2005:48:58【问题描述】:我正在使用Ubuntu18.04LTS和XAMPP。XAMPP从昨天开始工作正常,但是当我启动XAMPP并尝试访问phpMyAdmin但收到屏幕截图之类的... 查看详情
HTTP/2 与 Ubuntu 18.04
】HTTP/2与Ubuntu18.04【英文标题】:HTTP/2withUbuntu18.04【发布时间】:2018-12-2207:44:21【问题描述】:我想在这个网站上试用HTTP/2:https://www.alebalweb-blog.com/我最近使用PHP7.2、Apache/2.4.29等将服务器更新到Ubuntu18.04我做了:sudoa2enmodhttp2添... 查看详情
Ubuntu 18.04 上的 cron 作业的身份验证问题
】Ubuntu18.04上的cron作业的身份验证问题【英文标题】:AuthenticationissuewithcronjobonUbuntu18.04【发布时间】:2018-11-0710:56:17【问题描述】:我全新安装了Ubuntu18.04,但无法让cron作业执行脚本。Crontab-l包含以下内容:#Editthisfiletointroduceta... 查看详情
在 Ubuntu 18.04 上安装 RVM 时出错
】在Ubuntu18.04上安装RVM时出错【英文标题】:ErrorwhileinstallingRVMonUbuntu18.04【发布时间】:2018-12-2723:54:54【问题描述】:我尝试在新版本的Ubuntu18.04上安装RVM。但是我收到以下错误:"Errorrunning\'requirements_debian_libs_installgawkg++gccautoconf... 查看详情
phpMyAdmin 显示 404 未找到(Ubuntu 18.04 Nginx)
】phpMyAdmin显示404未找到(Ubuntu18.04Nginx)【英文标题】:phpMyAdminShows404NotFound(Ubuntu18.04Nginx)【发布时间】:2020-06-2918:15:44【问题描述】:我有一个Ubuntu18.04服务器,运行一个使用ufw保护的LEMP(Linux、Nginx、MySQL和PHP)堆栈。我通过... 查看详情
ubuntu18.04ros安装完整
...来源:旋律/安装/乌班图-ROS维基(12条消息)Ubuntu18.04安装ROS_PanJie_的博客-CSDN博客_ubuntu18.04安装ros(12条消息)rosdepupdate超时失败2021最新解决方法_WGH无疆的博客-CSDN博客_rosdepupdate超时1.添加源Ctrl+Alt+T打开终... 查看详情
如何在 Ubuntu 18.04 中为 sqitch 设置编码?
】如何在Ubuntu18.04中为sqitch设置编码?【英文标题】:HowtosetencodingforsqitchinUbuntu18.04?【发布时间】:2021-04-2811:36:32【问题描述】:我在Ubuntu18.04LTS中安装了用于雪花部署的sqitch。现在运行后sqitchverify--targetdev我得到以下信息:ø°ø... 查看详情