Deepstream 4.0 installation on x86_64 method 2 Modification Step (not yet finished)

Dear all,

I try to follow https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/index.html

To install the DeepStream SDK
• Method 2: Using the DeepStream tar package

1. Navigate to the location to which the DeepStream package was downloaded and extract its contents:
$ tar -xpvf deepstream_sdk_v4.0_x86_64.tbz2
2. Extract and install DeepStream SDK:
$ cd deepstream_sdk_v4.0_x86_64
$ sudo tar -xvpf binaries.tbz2 -C /
$ sudo ./install.sh

I think samples and sources left behind at Downloads directory, not copied yet into /opt/nvidia/deepstream/deepstream-4.0/ directory

~/d/Downloads/deepstream/deepstream_sdk_v4.0_x86_64$ ls -la
total 23036
drwxrwxrwx 1 root root     4096 Jul 19 15:29 .
drwxrwxrwx 1 root root     4096 Agu 17 16:49 ..
-rwxrwxrwx 1 root root 23431389 Jul 19 15:29 binaries.tbz2
-rwxrwxrwx 1 root root     5861 Jul 19 15:29 install.sh
-rwxrwxrwx 1 root root   111142 Jul 19 15:29 LicenseAgreement.pdf
-rwxrwxrwx 1 root root     8489 Jul 19 15:29 LICENSE.txt
-rwxrwxrwx 1 root root     5636 Jul 19 15:28 README
drwxrwxrwx 1 root root        0 Jul 19 15:29 samples
drwxrwxrwx 1 root root     4096 Jul 19 15:29 sources

So I try to modify the sequence:

$ cd ~/d/Downloads/deepstream
(the place I put deepstream_sdk_v4.0_x86_64.tbz2)
$ tar -xpvf deepstream_sdk_v4.0_x86_64.tbz2
$ cd deepstream_sdk_v4.0_x86_64
$ sudo mkdir /opt/nvidia/deepstream/deepstream-4.0
$ sudo cp -Rf * /opt/nvidia/deepstream/deepstream-4.0
$ sudo tar -xvpf binaries.tbz2 -C /
$ sudo ./install.sh

/opt/nvidia/deepstream/deepstream-4.0/bin$ deepstream-app
deepstream-app: error while loading shared libraries: libnvinfer.so.5: cannot open shared object file: No such file or directory

Still it does not have other libraries installed correctly though.

Thank you very much.

Warmest Regards,
Suryadi

Hi,
You do not have the necessary to change the sequence, please follow the README, the steps you added sudo mkdir /opt/nvidia/deepstream/deepstream-4.0, will intersect with sudo tar -xvpf binaries.tbz2 -C /

deepstream-app: error while loading shared libraries: libnvinfer.so.5: cannot open shared object file: No such file or directory

Do you have TensorRT 5.1.2RC installed?

Dear Amycao,

I tried install tensorflow 5.1.5 GA on my ubuntu 18.04 just now.
Now I have /opt/nvidia/deepstream/deepstream-4.0/lib and can compile nvdsinfer_custom_impl_Yolo.

$ 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
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjansson4 is already the newest version (2.11-1).
gstreamer1.0-plugins-good is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-tools is already the newest version (1.14.5-0ubuntu1~18.04.1).
libgstreamer1.0-0 is already the newest version (1.14.5-0ubuntu1~18.04.1).
libssl1.0.0 is already the newest version (1.0.2n-1ubuntu5.3).
gstreamer1.0-libav is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-plugins-bad is already the newest version (1.14.5-0ubuntu1~18.04.1).
gstreamer1.0-plugins-ugly is already the newest version (1.14.5-0ubuntu1~18.04.1).
libgstrtspserver-1.0-0 is already the newest version (1.14.5-0ubuntu1~18.04.1).

However I still have error about library thing

suryadi@xtal:/opt/nvidia/deepstream/deepstream-4.0/lib$ deepstream-app

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.225: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.227: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dewarper.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.228: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.230: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.234: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dsexample.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.238: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideo4linux2.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.240: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_tracker.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.241: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_segvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.245: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_jpegdec.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.246: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistreamtiler.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.247: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.248: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_ofvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.250: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.251: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_of.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

How to rectify this problem?
Thank you very much for your attention.

Warmest Regards,
Suryadi

(gst-plugin-scanner:22359): GStreamer-WARNING **: 00:33:17.247: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so’: libcudart.so.10.1: cannot open shared object file: No such file or directory

Do you have cuda 10.1 installed?

I have cuda 10.0 installed. I will try to upgrade my cuda 10.1. thanks.