当前位置:网站首页>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.
修改完后,记得关掉当前终端并重新打开一个新的终端,从而使上面的配置生效。
边栏推荐
- The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
- Talk about seven ways to realize asynchronous programming
- S5PV210芯片I2C适配器驱动分析(i2c-s3c2410.c)
- Face_ Attendance statistics of recognition face recognition
- 简单易用的地图可视化
- ARTS_20220628
- 数学分析_笔记_第7章:多元函数的微分学
- 创业两年,一家小VC的自我反思
- Zhijieyun - meta universe comprehensive solution service provider
- 比李嘉诚还有钱的币圈大佬,刚在沙特买了楼
猜你喜欢

【HCIA持续更新】WLAN概述与基本概念

Weima, which is going to be listed, still can't give Baidu confidence

78岁华科教授冲击IPO,丰年资本有望斩获数十倍回报

Wuzhicms code audit

Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue

CocosCreator事件派发使用

Electronic pet dog - what is the internal structure?

Interpretation of data security governance capability evaluation framework 2.0, the fourth batch of DSG evaluation collection

To sort out messy header files, I use include what you use

雨量预警广播自动化数据平台BWII 型广播预警监测仪
随机推荐
CocosCreator事件派发使用
High school physics: force, object and balance
用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
Win32 API 访问路由的加密网页
Rainfall warning broadcast automatic data platform bwii broadcast warning monitor
Zhijieyun - meta universe comprehensive solution service provider
mysql5.7安装教程图文详解
Set the transparent hidden taskbar and full screen display of the form
Make a grenade with 3DMAX
I2C子系统之适配器的设备接口分析(i2c-dev.c文件分析)
[daily question] 556 Next bigger element III
大规模服务异常日志检索
Superscalar processor design yaoyongbin Chapter 6 instruction decoding excerpt
The top half and bottom half of the interrupt are introduced and the implementation method (tasklet and work queue)
Detectron2 installation method
俄罗斯 Arenadata 发布基于PostgreSQL的产品
高中物理:力、物体和平衡
【华为HCIA持续更新】SDN与FVC
Perfectly integrated into win11 style, Microsoft's new onedrive client is the first to see