Has anyone successfully installed DeepStream 4.0 using GTX1080 on ubuntu 18.04?

Dear all,

I need to have experiment or learn to code using DeepStream 4.0 using GTX1080 on ubuntu 18.04.
My computer is OMEN by HP Desktop PC - 870-281jp
Intel Core i7-7700K, 32 GB RAM, NVIDIA GeForce GTX 1080
(https://support.hp.com/id-en/document/c05391540)

$ sudo dpkg --get-selections | grep nvidia

libnvidia-cfg1-430:amd64			install
libnvidia-common-430				install
libnvidia-compute-430:amd64			install
libnvidia-compute-430:i386			install
libnvidia-decode-430:amd64			install
libnvidia-decode-430:i386			install
libnvidia-encode-430:amd64			install
libnvidia-encode-430:i386			install
libnvidia-fbc1-430:amd64			install
libnvidia-fbc1-430:i386				install
libnvidia-gl-430:amd64				install
libnvidia-gl-430:i386				install
libnvidia-ifr1-430:amd64			install
libnvidia-ifr1-430:i386				install
nvidia-compute-utils-430			install
nvidia-cuda-dev					install
nvidia-cuda-doc					install
nvidia-cuda-gdb					install
nvidia-cuda-toolkit				install
nvidia-dkms-430					install
nvidia-driver-430				install
nvidia-kernel-common-430			install
nvidia-kernel-source-430			install
nvidia-opencl-dev:amd64				install
nvidia-prime					install
nvidia-profiler					install
nvidia-settings					install
nvidia-utils-430				install
nvidia-visual-profiler				install
xserver-xorg-video-nvidia-430			install

I download https://developer.nvidia.com/deepstream-40-t4-and-v100-deb
I do not have T4 or V100 GPU, only GTX1080.

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

I am stuck at: cannot find -lz
collect2: error: ld returned 1 exit status

make[1]: Entering directory '/media/suryadi/DATA/learn/librdkafka/src'
Creating shared library librdkafka.so.1
/media/suryadi/DATA/anaconda3/envs/keras/bin/x86_64-conda_cos6-linux-gnu-cc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -shared -Wl,-soname,librdkafka.so.1 -Wl,--version-script=librdkafka.lds rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdaddr.o rdrand.o rdlist.o tinycthread.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_scram.o snappy.o rdgz.o rdkafka_lz4.o xxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o -o librdkafka.so.1 -lpthread -lz -L/usr/local/lib -lcrypto -L/usr/local/lib -lssl -lrt -ldl
/media/suryadi/DATA/anaconda3/envs/keras/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: [b]cannot find -lz
collect2: error: ld returned 1 exit status[/b]
../mklove/Makefile.base:88: recipe for target 'librdkafka.so.1' failed
make[1]: *** [librdkafka.so.1] Error 1
make[1]: Leaving directory '/media/suryadi/DATA/learn/librdkafka/src'
Makefile:20: recipe for target 'libs' failed
make: *** [libs] Error 2

$ sudo apt-get install zlib1g

Reading package lists... Done
Building dependency tree       
Reading state information... Done
zlib1g is already the newest version (1:1.2.11.dfsg-0ubuntu2).
The following packages were automatically installed and are no longer required:
  libpvm3 libreadline-dev pvm
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

$ sudo apt-get install zlib1g-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2).
The following packages were automatically installed and are no longer required:
  libpvm3 libreadline-dev pvm
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Please shed a light to overcome this problem.

Thank you very much in advance.

Warmest Regards,
Suryadi

Hi,

Try installing,

sudo apt-get install libssl-dev
sudo apt-get install openssl

https://stackoverflow.com/questions/3016956/how-do-i-install-the-openssl-libraries-on-ubuntu

I can overcome openssl problem by using compile openssl-1.1.1c from source.

Still stuck at /media/suryadi/DATA/anaconda3/envs/keras/bin/…/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/…/…/…/…/x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz

Generating linker script librdkafka.lds from rdkafka.h
Creating shared library librdkafka.so.1
/media/suryadi/DATA/anaconda3/envs/keras/bin/x86_64-conda_cos6-linux-gnu-cc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -shared -Wl,-soname,librdkafka.so.1 -Wl,--version-script=librdkafka.lds rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdaddr.o rdrand.o rdlist.o tinycthread.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_scram.o snappy.o rdgz.o rdkafka_lz4.o xxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o -o librdkafka.so.1 -lpthread -lz -L/usr/local/lib -lcrypto -L/usr/local/lib -lssl -lrt -ldl
<b>/media/suryadi/DATA/anaconda3/envs/keras/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz</b>
collect2: error: ld returned 1 exit status
../mklove/Makefile.base:88: recipe for target 'librdkafka.so.1' failed
make[1]: *** [librdkafka.so.1] Error 1
make[1]: Leaving directory '/media/suryadi/DATA/learn/librdkafka/src'
Makefile:20: recipe for target 'libs' failed
make: *** [libs] Error 2

Thanks.

Hi suryadi,

Have you managed to get issue resolved? Any result can be shared?

Thanks

This one still stuck. I gave up to install DS 4.0 on my ubuntu 18.04 (x86_64). Thanks.

Hi
You can try docker container. All have been installed. https://devtalk.nvidia.com/default/topic/1063437/deepstream-sdk/announcing-deepstream-sdk-4-0-1/