mac 查看C++及各种环境的命令

Posted 希望是附丽于存在的,有存在便有希望,有希望便是光明!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac 查看C++及各种环境的命令相关的知识,希望对你有一定的参考价值。

MacBook-Air:$ which g++
/usr/bin/g++
MacBook-Air:$ arch
i386
MacBook-Air:$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
MacBook-Air:$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
MacBook-Air:$ clang++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
MacBook-Air:$ brew --config
^[[B^[[B^[[B^[[BHOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: cc10c632a8c2803b7e62a37c9490beca8fb48128
Last commit: 3 months ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 94bfaedfec6c0c6e6434fd147956aa2478dffd1d
Core tap last commit: 3 months ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
Clang: 7.3 build 703
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_60, 1.6.0_65-b14-468
System Ruby: 2.0.0-p648
OS X: 10.11.6-x86_64
Xcode: N/A
CLT: 7.3.1.0.1.1461711523
X11: N/A

以上是关于mac 查看C++及各种环境的命令的主要内容,如果未能解决你的问题,请参考以下文章

Mac 必备工具之 brew

13.Mac 必备工具之 brew

有关在新版mac上配置 git 的问题

Mac安装adb环境(内附问题解决方案)

mac 使用brew安装nginx 各种命令

mac下查看和设置环境变量