runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:/home/

Dabria ·
更新时间:2024-11-13
· 710 次阅读

编译ROS工程的过程中,因为安装了anaconda导致系统库的路径被覆盖掉,因而报错的时候

runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib

首先查看路径,可以看到返回结果中,第一个查找路径是anaconda的。

export $PATH bash: export: `/home/rw/anaconda3/bin:/home/rw/anaconda3/condabin:/home/rw/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin': not a valid identifier 修改方法: 1. 可以直接通过修改PATH的方式解决这个问题,修改命令为(用户名需根据自己电脑的名称修改)(这种方法只能适用于当前的终端): export PATH="/home/rw/anaconda3/condabin:/home/rw/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" 2. 在终端里编译ROS工程以前,先退出base环境 conda deactivate 3. 修改.bashrc文件: sudo gedit ~/.bashrc

在末尾添加:

export PATH="/home/rw/anaconda3/condabin:/home/rw/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

然后重启,或者

source ~/.bashrc 详细问题描述 CMake Warning at /opt/ros/dashing/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:229 (add_library): Cannot generate a safe runtime search path for target mpc_trajectory_tracking__rosidl_typesupport_c__pyext because files in some directories may conflict with libraries in implicit directories: runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib runtime library [libcrypto.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): /opt/ros/dashing/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/dashing/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:32 (rosidl_generate_interfaces) CMake Warning at /opt/ros/dashing/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:176 (add_library): Cannot generate a safe runtime search path for target mpc_trajectory_tracking__python because files in some directories may conflict with libraries in implicit directories: runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib runtime library [libcrypto.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): /opt/ros/dashing/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/dashing/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:32 (rosidl_generate_interfaces) CMake Warning at /opt/ros/dashing/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:229 (add_library): Cannot generate a safe runtime search path for target mpc_trajectory_tracking__rosidl_typesupport_fastrtps_c__pyext because files in some directories may conflict with libraries in implicit directories: runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib runtime library [libcrypto.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): /opt/ros/dashing/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/dashing/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:32 (rosidl_generate_interfaces) --- Finished <<< mpc_trajectory_tracking [10.2s] Summary: 1 package finished [10.4s] 1 package had stderr output: mpc_trajectory_tracking
作者:小朱 智能驾驶



x86_64 library hidden x8 Linux BY IN gnu runtime

需要 登录 后方可回复, 如果你还没有账号请 注册新账号