从零开始设置Mac的编译环境
2018-01-24 00:27
190 查看
今天重新安装了mac的系统,现在是brand new的状态。
我的Mac是10.10.5的OS X Yosemite系统。
1. Install XCode
Install Xcode to get Command Line tools, which is essential for scientific programming.
Normally, you get it from App store. But I can't, because it says the version not available for my system(10.10.5 is too old I guess).
So I just have to find the right version online: https://zh.wikipedia.org/zh-hans/Xcode
wiki says I need Xcode 7.1/7.1.1/7.2
I downloaded Xcode 7.2 from:
https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7.2/Xcode_7.2.dmg
open the dmg file and you will get the XCode application. Open the app to validate it then it will be installed completely.
Then, I need to get Command Line Tools by typing this in terminal:
2. Install X11
Choose the latest version on this site: https://www.xquartz.org/
download and open the dmg file. it is easy.
3. Install a app manager like Fink, MacPorts, Homebrew
well I chose Homebrew, it is quite popular lately so..
very easy step after installation of Xcode, simply enter :
我的Mac是10.10.5的OS X Yosemite系统。
1. Install XCode
Install Xcode to get Command Line tools, which is essential for scientific programming.
Normally, you get it from App store. But I can't, because it says the version not available for my system(10.10.5 is too old I guess).
So I just have to find the right version online: https://zh.wikipedia.org/zh-hans/Xcode
wiki says I need Xcode 7.1/7.1.1/7.2
I downloaded Xcode 7.2 from:
https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7.2/Xcode_7.2.dmg
open the dmg file and you will get the XCode application. Open the app to validate it then it will be installed completely.
Then, I need to get Command Line Tools by typing this in terminal:
xcode-select --install
2. Install X11
Choose the latest version on this site: https://www.xquartz.org/
download and open the dmg file. it is easy.
3. Install a app manager like Fink, MacPorts, Homebrew
well I chose Homebrew, it is quite popular lately so..
very easy step after installation of Xcode, simply enter :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"[/code]
(probably you need to press return to continue and type your password of your Mac)
and it is done!
==>
Cleaning up /Library/Caches/Homebrew...
==>
Migrating /Library/Caches/Homebrew to /Users/Carol/Library/Caches/Homebrew..
==>
Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
enter "man brew" if you want to know how to use HomeBrew
with HomeBrew, I can install many things easily, for example:brew install python --with-brewed-openssl
with the command line above I get python-2.7.6
相关文章推荐
- Mac下设置Android源代码编译环境
- Mac下设置Android源代码编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- Mac下设置Android源代码编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- 在VC6.0下设置Unicode编译环境
- LANP环境编译设置
- java环境变量设置和命令行编译运行
- Mac下搭建quick cocos2d-x编译环境
- Mac OS X 设置环境变量(转)
- mac环境编译nginx
- VIM 设置C++文本环境以及调式和编译
- MAC中设置android adb环境变量
- mac系统环境变量设置