mac os中terminal标签页的切换
Command+Shift+{}
{ 切换到左边的标签页
} 切换到右边的标签页
普通键盘对应于mac下的按键:
CTRL->CONTROL
WIN->COMMAND
ALT-OPTION
如何关闭OSX 10.11 SIP (System Integrity Protection)
重启 Mac,按住option,进入 Recovery Mode
点击 Utilities > Terminal
在 Terminal 中输入 csrutil disable,之后回车
重启 Mac
让Mac也能拥有apt-get类似的功能——Brew
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
repo init 报:ValueError: invalid literal for int() with base 10: '8 (Apple Git-58)'
yingctekiMac-mini:androidtv yingc$ repo init -u http://git.nationalchip.com/git/androidtv/manifests.git
Traceback (most recent call last):
File "/usr/bin/repo", line 733, in <module>
main(sys.argv[1:])
File "/usr/bin/repo", line 700, in main
_Init(args)
File "/usr/bin/repo", line 229, in _Init
_CheckGitVersion()
File "/usr/bin/repo", line 266, in _CheckGitVersion
ver_act = tuple(map(lambda x: int(x), ver_str.split('.')[0:3]))
File "/usr/bin/repo", line 266, in <lambda>
ver_act = tuple(map(lambda x: int(x), ver_str.split('.')[0:3]))
ValueError: invalid literal for int() with base 10: '4 (Apple Git-61)'
解决方法:更新2.5以上的git版本即可:
下载链接地址:
http://sourceforge.net/projects/git-osx-installer/files/
Xcode中Command Line Tools安装方法
yingc:IJKPlayer yingc$ clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
496 ./init-ios.sh
497 ls
498 cd ios/
499 ls
500 ./compile-ffmpeg.sh
501 ./compile-ffmpeg.sh all