1. Linux中源文件列表
@H_403_21@/etc/apt/sources.list @H_403_21@添加源 查看源sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
cat /etc/apt/sources.list.d/gazebo-stable.list
2 . Linux中环境变量配置文件
@H_403_21@之后 执行 source .bashrc 生效@H_403_21@在方式12如何添加 用vim打开,结尾添加 例如
- 在/etc/profile文件中添加变量【对所有用户生效(永久的)】
- 在个人用户主目录下的~/.bashrc中增加变量【对单一用户生效(永久的)】
- 直接运行export命令定义变量【只对当前shell(BASH)有效(临时的)】
pkg_config 库文件全局变量
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/hualong/opt/gsr_1.5.2/out/lib/pkgconfig @H_403_21@方式3 直接export PKG_CONFIG_PATH=/home/ubuntu/gst_1.6.0/out/lib/pkgconfig
查看
echo $ PATH
或者 echo $ PKG_CONFIG_PATH