TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

Unable to Install Tensorrt 6.0.1.5 with CUDA 10.1 on Ubuntu 18.04

Open Myron1996 opened this issue 6 years ago • 7 comments

Can someone please help me with following issue. I am trying to install Tensorrt 6.0.1.5. System Configuration

  • Ubuntu 18.04

  • CUDA 10.1

  • CUDNN 7

  • Tensor-RT - nv-tensorrt-repo-ubuntu1804-cuda10.1-trt6.0.1.5-ga-20190913_1-1_amd64.deb

sudo apt-get install tensorrt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 tensorrt : Depends: libnvinfer6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-plugin6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvparsers6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvonnxparsers6 (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-bin (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-plugin-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvparsers-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvonnxparsers-dev (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-samples (= 6.0.1-1+cuda10.1) but it is not going to be installed
            Depends: libnvinfer-doc (= 6.0.1-1+cuda10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Myron1996 avatar Oct 20 '20 19:10 Myron1996

I have solved this issue with installing Tar File. Please follow instructions.

hakanbogan avatar Oct 27 '20 08:10 hakanbogan

thanks @redrussianarmy , hello @Myron1996 could you follow the suggestion by @redrussianarmy ?

ttyio avatar Nov 27 '20 09:11 ttyio

For deb/rpm install, the Cuda/cublas should also built with deb/rpm, and could choose between different Cuda version.

wangyuehy avatar Feb 04 '21 08:02 wangyuehy

I have solved this issue with installing Tar File. Please follow instructions.

I installed it but when i try and run sample code it gives me following code.

“error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory” when running sample

On the other hand when i try and check the installed version of TensorRT version using dpkg -l | grep TensorRT , it shows nothing.

@redrussianarmy @ttyio

Environment

  • Ubuntu 18.04
  • CUDA 10.1
  • CuDnn 7 -TensorRT-6.0.1.5

Myron1996 avatar Mar 10 '21 10:03 Myron1996

Hello @Myron1996 , when install using the tar version, you cannot find it using dpkg, you can only find it via LD_LIBRARY_PATH

the error message shows that you are running sample that require TRT 7.x, you need install sample and TRT that released with the same version number.

ttyio avatar Mar 10 '21 13:03 ttyio

https://blog.csdn.net/qq_35975447/article/details/115632742

It may helps.

gmt710 avatar Apr 13 '21 02:04 gmt710

closing since no activity for more than 3 weeks, please reopen if you still have question, thanks!

ttyio avatar May 26 '21 10:05 ttyio