头图

欢迎关注我的公众号 [极智视界],回复001获取Google编程规范

O_o>_<   o_OO_o~_~o_O

  本教程详细记录了在 ubuntu 上安装 deepstream6.0 的方法。

  一些版本要求:

  • Ubuntu 18.04
  • GStreamer 1.14.5
  • NVIDIA driver 470.63.01
  • CUDA 11.4
  • TensorRT 8.0.1

1、安装依赖

   安装依赖

sudo apt install libssl1.0.0 libgstreamer1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstrtspserver-1.0-0 libjansson4 gcc make git python3

   安装 NVIDIA driver 470.63.01,下载传送:https://www.nvidia.com/Downlo...

chmod 755 NVIDIA-Linux-x86_64-470.63.01.run
sudo ./NVIDIA-Linux-x86_64-470.63.01.run

  安装 CUDA ToolKit 11.4.1 (CUDA 11.4 Update 1),下载传送:https://developer.nvidia.com/...

2、安装 TensorRT 8.0.1

  执行如下命令:

echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda-repo.list
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-key add 7fa2af80.pub
sudo apt-get update

   下载 TensorRT 8.0.1 GA for Ubuntu 18.04 and CUDA 11.3 DEB local repo package,下载传送:https://developer.nvidia.com/...

   执行如下命令安装 TensorRT 8.0.1:

sudo dpkg -i nv-tensorrt-repo-ubuntu1804-cuda11.3-trt8.0.1.6-ga-20210626_1-1_amd64.deb
sudo apt-key add /var/nv-tensorrt-repo-ubuntu1804-cuda11.3-trt8.0.1.6-ga-20210626/7fa2af80.pub
sudo apt-get update
sudo apt-get install libnvinfer8=8.0.1-1+cuda11.3 libnvinfer-plugin8=8.0.1-1+cuda11.3 libnvparsers8=8.0.1-1+cuda11.3 libnvonnxparsers8=8.0.1-1+cuda11.3 libnvinfer-bin=8.0.1-1+cuda11.3 libnvinfer-dev=8.0.1-1+cuda11.3 libnvinfer-plugin-dev=8.0.1-1+cuda11.3 libnvparsers-dev=8.0.1-1+cuda11.3 libnvonnxparsers-dev=8.0.1-1+cuda11.3 libnvinfer-samples=8.0.1-1+cuda11.3 libnvinfer-doc=8.0.1-1+cuda11.3

3、安装 librdkafka

  clone librdkafka 代码:

git clone https://github.com/edenhill/librdkafka.git

  配置及编译库:

cd librdkafka
git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a

./configure
sudo make -j32
sudo make install

   把生成的库拷贝到 deepstream 文件夹:

sudo mkdir -p /opt/nvidia/deepstream/deepstream-6.0/lib
sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-6.0/lib

4、安装 deepstream sdk

4.1 方法一:使用 Debian 安装

  下载 deepstream-6.0_6.0.0-1_amd64.deb Debian 包,下载传送:https://developer.nvidia.com/...

   执行如下命令进行安装:

sudo apt-get install ./deepstream-6.0_6.0.0-1_amd64.deb

4.2 方法二:使用源码安装

  下载 deepstream 源码包,下载传送:https://developer.nvidia.com/...

   解压包并进行编译安装:

sudo tar -xvf deepstream_sdk_v6.0.0_x86_64.tbz2 -C /
cd /opt/nvidia/deepstream/deepstream-6.0/
sudo ./install.sh
sudo ldconfig

4.3 方法三:使用 docker 安装

   这个最简单:

docker pull nvcr.io/nvidia/deepstream:6.0-samples

5、验证是否安装成功

which deepstream-app

  能定位到 deepstream-app 一般就成功了,然后可以用 deepstram-app 执行一些 samples,基本命令如下:

deepstream-app -c <path_to_config_file>

   以上分享了在 ubuntu 上安装 deepstream6.0 的方法,希望我的分享对你会有一点帮助。


【公众号传送】
【经验分享】ubuntu 安装 deepstream6.0


极智视界
13 声望4 粉丝