Download the cuDNN archive from cudnn archive. Since the download link may redirect, you can either locate the actual link for wget or curl or download it in Windows and copy it into WSL using VS Code.
Extract and install cuDNN:
1 2 3 4
cd ~ && tar -xvf cudnn-linux-x86_64-8.9.7.29_cuda12-archive.tar.xz sudocp cudnn-linux-x86_64-8.9.7.29_cuda12-archive/include/* /usr/local/cuda-12.4/include sudocp cudnn-linux-x86_64-8.9.7.29_cuda12-archive/lib/* /usr/local/cuda-12.4/lib64 rm -rf cudnn-linux-x86_64-8.9.7.29_cuda12-archive.tar.xz cudnn-linux-x86_64-8.9.7.29_cuda12-archive/
Common Issue: Symbolic Link Errors
If you encounter the error:
1
/usr/local/cuda/lib64/libcudnn*.so.* is not a symbolic link
You can use this script to fix the links:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash
for file in /usr/local/cuda/lib64/libcudnn*.so.*; do next_file=$(echo$file | sed -E 's/\.[0-9]+$//')
while [[ ! -e $next_file ]]; do next_file=$(echo$next_file | sed -E 's/\.[0-9]+$//') if [[ $next_file == $file ]]; then echo"No link for $file" break fi done echo"Linking $file -> $next_file" # sudo ln -sf $file $next_file done
Uncomment the ln command only after verifying the links are correct.
mkdir -p ~/workspace && cd ~/workspace git clone https://github.com/Livox-SDK/Livox-SDK.git cd Livox-SDK && mkdir build && cd build cmake .. make -j$(nproc) && sudo make install
For the ROS driver:
1 2 3 4
cd ~/workspace && git clone https://github.com/Livox-SDK/livox_ros_driver.git ws_livox/src cd ws_livox catkin_make echo"source ~/workspace/ws_livox/devel/setup.bash" >> ~/.bashrc && source ~/.bashrc
Install TensorRT
Download and extract TensorRT:
1 2 3 4 5
cd ~ && wget https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/secure/8.6.1/tars/TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-12.0.tar.gz tar -xzvf TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-12.0.tar.gz sudomv TensorRT-8.6.1.6 /opt/TensorRT-8.6.1.6 echo"export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/TensorRT-8.6.1.6/lib" >> ~/.bashrc source ~/.bashrc
sudo apt-get install fmt.dev git clone https://ghproxy.com/https://github.com/fmtlib/fmt.git cdfmt/ git checkout 11.0.2 mkdir build cd build cmake -DFMT_ENABLE_STRING_VIEW=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. make -j${proc} sudo make install
MenGrey's Space
Share to QR code
This piece of writing is an original article, utilizing theCC BY-NC-SA 4.0Agreement. For complete reproduction, please acknowledge the source as Courtesy ofMenGrey's Space