LD_LIBRARY_PATH It can compromise security

简介: LD_LIBRARY_PATH It can compromise security

产生场景

Ubuntu 20.04 环境通过 apt 安装的 clickhouse-client ,详见笔记:Ubuntu20.04安装

在安装完成后终端上输入 clickhouse-client 出现如下错误:

$ clickhouse-client
Environment variable LD_LIBRARY_PATH is set to /home/iric/.gvm/pkgsets/go1.17.5/global/overlay/lib:. It can compromise security.点击复制复制失败已复制


意思是 LD_LIBRARY_PATH可能会涉及危害


产生原因

目前还不太懂具体原理,先放一篇网上文章:https://askubuntu.com/questions/801570/is-ld-library-path-a-security-risk


解决办法

使用sudo

$ sudo clickhouse-client -V
ClickHouse client version 22.4.2.1 (official build).
目录
相关文章
|
并行计算
解决Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0
解决Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0
3341 0
|
8月前
|
机器学习/深度学习 算法 算法框架/工具
Library
Library
47 1
|
Android开发
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
469 0
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
Mac M1 报错 ld: library not found for -lSystem
Mac M1 报错 ld: library not found for -lSystem
452 0
|
缓存 关系型数据库 MySQL
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
Linux环境变量设置(PATH/LIBRARY_PATH/LD_LIBRARY_PATH)
5246 0
|
Python
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
622 0
|
Python
ld: library not found for -lssl
ld: library not found for -lssl
82 0
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
130 0
|
Linux PHP
configure: error: Cannot find ldap libraries in /usr/lib
<p style="padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; clear:both; height:auto; overflow:hidden; color:rgb(80,80,80); font-family:宋体,'Arial Narrow',arial,serif; font-siz
1817 0
|
Ubuntu
Could not load dynamic library 'libcudnn.so.8'
Could not load dynamic library 'libcudnn.so.8'
931 0

热门文章

最新文章