#**本博客的主要目的是一个集成工作,方便自己后期再一次安装ros,感谢各位作者的辛苦付出**
1. ubuntu18.04 installation [additional 20.04 installation]
Reference link: Link
additional:
ubuntu20.04 installation: Reference 1: link ; Reference 2: link
2. ROS melodic installation [additional neotic installation]
Reference link 1: link
Reference link 2: link
Reference link 3: link
If there is a problem with sudo rosdep init, you can refer to the blog , which summarizes several methods
sudo rosdep init
rosdep update
Additional:
Neotic one-click installation: link
3. Graphics card 3060 driver installation
Reference link: link
** [mainly refer to the position shown in the picture] **
=============================================================================
4. cuda installation
Reference link 1: link
=========================================================================================================
*** Main references are as follows ***
=========================================================================================================
At 2.3, you need to pay attention to:
======================================================================================================================
2.3 Add environment variable
gedit ~/.bashrc Open the file and add the following statement at the end of the file:
export PATH="/usr/local/cuda-11.6/bin:$PATH"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.6/lib64
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-11.6/lib4【此处三lib64,不是lib】
=========================================================================================================================
Reference link 2: link
5. cudnn installation
Reference Link 1: Link
Reference Link 2: Link
6. pytorch installation
[You need to install anaconda first, you can install it yourself and refer to the link ]
*** Here is the installation instruction for installing pytorch==1.12.1, cuda10.2 ***; [ Download link ]
=========================================================================================================
=========================================================================================================
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
Reference link: link
*** The main reference is as follows: ***
==
Note: Improve installation speed
Usually, the original pytorch installation is relatively long, you can modify the .condarc file under the main directory as shown below to improve the installation speed
=========================================================================================================
=========================================================================================================
# channels:
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
# - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
# - defaults
# show_channel_urls: true
# auto_activate_base: true
具体代码如下:
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud