{"id":130,"date":"2008-07-16T17:21:38","date_gmt":"2008-07-16T16:21:38","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=130"},"modified":"2009-02-02T20:53:43","modified_gmt":"2009-02-02T19:53:43","slug":"getting-gcc-on-a-mac-oh-the-pain","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=130","title":{"rendered":"Getting gcc on a Mac &#8211; oh the pain!"},"content":{"rendered":"<p>Someone came to visit me today with a MATLAB mex problem and, among other things, I needed to install gcc for them.  Now on a Linux machine this would have been trivial.  Something like<\/p>\n<p>yum install gcc<\/p>\n<p>or<\/p>\n<p>apt-get install gcc<\/p>\n<p>would do the trick, depending on which flavour of Linux you are using.  One command, a quick download and you&#8217;re done.  Couldn&#8217;t be simpler.<\/p>\n<p>I am as green as grass when it comes to Mac usage and so I assumed that there would be some Mac equivalent to these commands but it seems that this is not the case (please <strong>please <\/strong>correct me if I am wrong).  As far as I can tell, one needs to install something called <a href=\"http:\/\/developer.apple.com\/tools\/xcode\/\">Xcode<\/a> in order to get gcc which is 1 Gigabyte in size.  You heard me right &#8211; 1GB&#8230;.for gcc!  Of course it isn&#8217;t <strong>just<\/strong> gcc taking up that 1GB &#8211; you get lots of other gubbins too &#8211; but I don&#8217;t want all of the other gubbins.  I just want gcc.<\/p>\n<p align=\"left\">\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"\/images\/random\/1GBsmall.jpg\" alt=\"\" \/><\/p>\n<p>But the size isn&#8217;t the worst bit.  It turns out that you have to go through a registration process in order to get your hands on XCode &#8211; giving Apple information such as your email address, home address, what area you work in, what you are going to use XCode for etc etc<\/p>\n<p>All this to get hold of one of the most fundamental open-source applications there is.  There has to be a better way.  If anyone can enlighten me as to what that better way might be I would be very grateful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Someone came to visit me today with a MATLAB mex problem and, among other things, I needed to install gcc for them. Now on a Linux machine this would have been trivial. Something like yum install gcc or apt-get install gcc would do the trick, depending on which flavour of Linux you are using. One [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,26],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac-os-x"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-26","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":1,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":622,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/622"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}