https://jingyan.baidu.com/article/8065f87f47b29523312498e4.html
2018.06.22 17:38 字数 104 阅读 1464评论 0喜欢 0
比如想要将/Applications/GPAC.app/Contents/MacOS添加到环境变量中。
本文从用户级别添加环境变量。
cd ~
cp ./.bash_profile ./.bash_profile_bck
vim .bash_profile
然后在尾部添加:
export PATH=$PATH:/Applications/GPAC.app/Contents/MacOS
然后使之生效。
source .bash_profile
然后可以用env查看是否添加成功。
发现成功之后,就可以用GPAC中的MP4Box查看版本信息。
TheFlyingPenguindeMacBook-Pro:~ Private$ MP4Box -version
MP4Box - GPAC version 0.7.2-DEV-rev563-g3096514b-master
(c) Telecom ParisTech 2000-2018 - Licence LGPL v2
GPAC Configuration: --extra-cflags=-Wno-deprecated
Features: GPAC_64_BITS GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG
References:
https://blog.csdn.net/huxinguang_ios/article/details/78709428