当前位置:网站首页>LD_ LIBRARY_ Path environment variable setting
LD_ LIBRARY_ Path environment variable setting
2022-07-04 18:12:00 【Zi Yan Ruoshui】
LD_LIBRARY_PATH yes Linux environment variable name , This environment variable is mainly used to specify the search of shared libraries ( Dynamic link library ) In addition to the default path .
A lot of software doesn't root Permission installation will be difficult , Mainly because of various system library files , That is to say LD_LIBRARY_PATH The files in this environment variable .
We can do it in ~/.bashrc perhaps ~/.bash_profile Add export sentence , The former in every login and every open shell Read once , The latter is read only once when logging in . My habit is to add ~/.bashrc in , At the end of the file , The following statement can be used to make the setting effective :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
I put it on ~/.profilel Inside ,
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.
After modification , Remember to turn off the current terminal and reopen a new terminal , So that the above configuration takes effect .
边栏推荐
- 高中物理:力、物体和平衡
- 正则表达式
- 比李嘉诚还有钱的币圈大佬,刚在沙特买了楼
- android使用SQLiteOpenHelper闪退
- About the pit of firewall opening 8848 when Nacos is started
- 股价大跌、市值缩水,奈雪推出虚拟股票,深陷擦边球争议
- 简单易用的地图可视化
- Vscode modification indentation failed, indent four spaces as soon as it is saved
- 【211】go 处理excel的库的详细文档
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
猜你喜欢
78岁华科教授冲击IPO,丰年资本有望斩获数十倍回报
庆贺!科蓝SUNDB与中创软件完成七大产品的兼容性适配
12 - explore the underlying principles of IOS | runtime [isa details, class structure, method cache | t]
Easy to use map visualization
Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding
如何进行MDM的产品测试
Rainfall warning broadcast automatic data platform bwii broadcast warning monitor
MVC mode and three-tier architecture
Recast of recastnavigation
Offline and open source version of notation -- comprehensive evaluation of note taking software anytype
随机推荐
About the pit of firewall opening 8848 when Nacos is started
使用3DMAX制作一枚手雷
Summary of subsidy policies across the country for dcmm certification in 2022
【每日一题】871. 最低加油次数
Five thousand words to clarify team self-organization construction | Liga wonderful talk
【Hot100】32. Longest valid bracket
简单易用的地图可视化
机器学习概念漂移检测方法(Aporia)
2022年DCMM认证全国各地补贴政策汇总
Self reflection of a small VC after two years of entrepreneurship
【211】go 处理excel的库的详细文档
【210】PHP 定界符的用法
The controversial line of energy replenishment: will fast charging lead to reunification?
DB engines database ranking in July 2022: Microsoft SQL Server rose sharply, Oracle fell sharply
超标量处理器设计 姚永斌 第6章 指令解码 摘录
Great Wall Securities security does not open a securities account
[daily question] 871 Minimum refueling times
[test development] software testing - Basics
Redis主从复制
Face_ Attendance statistics of recognition face recognition