{"id":98,"date":"2013-05-03T09:11:32","date_gmt":"2013-05-03T09:11:32","guid":{"rendered":"http:\/\/blog.chen-hongyi.com\/?p=98"},"modified":"2013-05-03T09:12:57","modified_gmt":"2013-05-03T09:12:57","slug":"install-gcc-on-mac-snowleopad-and-homebrew","status":"publish","type":"post","link":"https:\/\/chen-hongyi.com\/?p=98","title":{"rendered":"install gcc on  mac snowleopad and homebrew"},"content":{"rendered":"<p>1 To install gcc on mac just follow the link:<\/p>\n<p>https:\/\/github.com\/kennethreitz\/osx-gcc-installer<\/p>\n<p>2 to install homebrew:<\/p>\n<p>http:\/\/mxcl.github.io\/homebrew\/<\/p>\n<p>now try gcc with<\/p>\n<blockquote><p>gcc -v<\/p><\/blockquote>\n<p>you will see:<\/p>\n<blockquote><p>\nUsing built-in specs.<br \/>\nTarget: i686-apple-darwin10<br \/>\nConfigured with: \/var\/tmp\/gcc\/gcc-5666.3~123\/src\/configure &#8211;disable-checking &#8211;enable-werror &#8211;prefix=\/usr &#8211;mandir=\/share\/man &#8211;enable-languages=c,objc,c++,obj-c++ &#8211;program-transform-name=\/^[cg][^.-]*$\/s\/$\/-4.2\/ &#8211;with-slibdir=\/usr\/lib &#8211;build=i686-apple-darwin10 &#8211;program-prefix=i686-apple-darwin10- &#8211;host=x86_64-apple-darwin10 &#8211;target=i686-apple-darwin10 &#8211;with-gxx-include-dir=\/include\/c++\/4.2.1<br \/>\nThread model: posix<br \/>\ngcc version 4.2.1 (Apple Inc. build 5666) (dot 3)<\/p><\/blockquote>\n<p>great! done.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 To install gcc on mac just follow the  &hellip; <a href=\"https:\/\/chen-hongyi.com\/?p=98\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":2,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}