当前位置:网站首页>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.
修改完后,记得关掉当前终端并重新打开一个新的终端,从而使上面的配置生效。
边栏推荐
- Mathematical analysis_ Notes_ Chapter 7: differential calculus of multivariate functions
- Dynamic programming stock problem comparison
- S5PV210芯片I2C适配器驱动分析(i2c-s3c2410.c)
- Electronic pet dog - what is the internal structure?
- What if Kaili can't input Chinese???
- MVC mode and three-tier architecture
- R language plot visualization: plot visualization of multiple variable violin plot in R with plot
- 中断的顶半部和底半部介绍以及实现方式(tasklet 和 工作队列)
- The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
- 2022年DCMM认证全国各地补贴政策汇总
猜你喜欢
估值900亿,超级芯片IPO来了
Internet addiction changes brain structure: language function is affected, making people unable to speak neatly
简单易用的地图可视化
VSCode修改缩进不成功,一保存就缩进四个空格
Ks007 realizes personal blog system based on JSP
Weima, which is going to be listed, still can't give Baidu confidence
比李嘉诚还有钱的币圈大佬,刚在沙特买了楼
78岁华科教授冲击IPO,丰年资本有望斩获数十倍回报
The Block:USDD增长势头强劲
Why are some online concerts always weird?
随机推荐
What is low code development?
[daily question] 871 Minimum refueling times
[daily question] 556 Next bigger element III
【HCIA持续更新】WLAN概述与基本概念
DB-Engines 2022年7月数据库排行榜:Microsoft SQL Server 大涨,Oracle 大跌
“在越南,钱就像躺在街上”
78岁华科教授冲击IPO,丰年资本有望斩获数十倍回报
R language plot visualization: plot visualizes overlapping histograms and uses geom at the top edge of the histogram_ The rug function adds marginal rug plots
ISO27001认证办理流程及2022年补贴政策汇总
Wuzhicms code audit
要上市的威马,依然给不了百度信心
【HCIA持续更新】网络管理与运维
居家打工年入800多万,一共五份全职工作,他还有时间打游戏
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"
curl 命令妙用
上市公司改名,科学还是玄学?
Is it science or metaphysics to rename a listed company?
S5PV210芯片I2C适配器驱动分析(i2c-s3c2410.c)
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Dynamic programming stock problem comparison