当前位置:网站首页>LD_LIBRARY_PATH 环境变量设置
LD_LIBRARY_PATH 环境变量设置
2022-07-04 16:06:00 【子燕若水】
LD_LIBRARY_PATH是Linux环境变量名,该环境变量主要用于指定查找共享库(动态链接库)时除了默认路径之外的其他路径。
非常多的软件没有root权限安装会比较困难,主要就是因为各种系统库文件,也就是LD_LIBRARY_PATH这个环境变量里面的文件。
我们可以在 ~/.bashrc 或者 ~/.bash_profile 中加入 export 语句,前者在每次登陆和每次打开 shell 都读取一次,后者只在登陆时读取一次。我的习惯是加到 ~/.bashrc 中,在该文件的未尾,可采用如下语句来使设置生效:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
本人是放在了~/.profilel里面,
bash
as a login shell doesn't parse .profile
if either .bash_profile
or .bash_login
exists. From man bash
:
it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.
修改完后,记得关掉当前终端并重新打开一个新的终端,从而使上面的配置生效。
边栏推荐
- 【Hot100】32. Longest valid bracket
- Perfectly integrated into win11 style, Microsoft's new onedrive client is the first to see
- “在越南,钱就像躺在街上”
- regular expression
- With an estimated value of 90billion, the IPO of super chip is coming
- 为啥有些线上演唱会总是怪怪的?
- What if Kaili can't input Chinese???
- Why are some online concerts always weird?
- Interpretation of data security governance capability evaluation framework 2.0, the fourth batch of DSG evaluation collection
- 内核中时间相关的知识介绍
猜你喜欢
Wuzhicms code audit
The controversial line of energy replenishment: will fast charging lead to reunification?
celebrate! Kelan sundb and Zhongchuang software complete the compatibility adaptation of seven products
Solve the El input input box For number number input problem, this method can also be used to replace the problem of removing the arrow after type= "number"
数学分析_笔记_第7章:多元函数的微分学
With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
Interpretation of data security governance capability evaluation framework 2.0, the fourth batch of DSG evaluation collection
Mathematical analysis_ Notes_ Chapter 7: differential calculus of multivariate functions
Five thousand words to clarify team self-organization construction | Liga wonderful talk
DB engines database ranking in July 2022: Microsoft SQL Server rose sharply, Oracle fell sharply
随机推荐
VSCode修改缩进不成功,一保存就缩进四个空格
12 - explore the underlying principles of IOS | runtime [isa details, class structure, method cache | t]
VB cannot access database stocks
超标量处理器设计 姚永斌 第7章 寄存器重命名 摘录
High school physics: force, object and balance
动态规划股票问题对比
Vscode modification indentation failed, indent four spaces as soon as it is saved
"In Vietnam, money is like lying on the street"
[daily question] 556 Next bigger element III
Make a grenade with 3DMAX
shell脚本的替换功能实现
2022年DCMM认证全国各地补贴政策汇总
What if Kaili can't input Chinese???
CocosCreator事件派發使用
ARTS_20220628
Device interface analysis of the adapter of I2C subsystem (I2C dev.c file analysis)
Recast of recastnavigation
要上市的威马,依然给不了百度信心
Clever use of curl command
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!