<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Posts tagged gcc  - Entropy and Ecstasy</title><link>http://aaron.maenpaa.ca/blog/tags/gcc/</link><description>The most recent ranting and ravings of a madman.</description><lastBuildDate>Sun, 22 May 2016 05:32:35 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>New Computer, New Tools (GCC on Mac OS X)</title><link>http://aaron.maenpaa.ca/blog/entries/2010/11/11/new_computer_new_tools/</link><description>&lt;p&gt;I recently traded in my two-and-a-half year old MacBook for a sexy new 13.1 inch MacBook Pro. It's pretty much the base model plus a 128 SSD, 'cause I read somewhere that SSDs are &lt;a class="reference external" href="http://www.codinghorror.com/blog/2010/09/revisiting-solid-state-hard-drives.html"&gt;&amp;quot;... the most cost effective performance increase you can buy... &amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have to say, it's pretty awesome. Thanks to the migration assistant Chrome and Firefox were already there, Pandora and Gmail already knew who I was: It was pretty much a drop-in replacement for my old computer, except faster an shinier. &amp;quot;Pretty much&amp;quot; is kind of the operative phrase there. I did have to reinstall GCC, and that was a pain. Y'see, the entire reason I use a MacBook is because Mac OS X is a *nix with a pretty, consistent, GUI. I'm a build-from-source kind of guy, so I need a C compiler on my laptop, and getting that compiler onto my MacBook was way harder than it ought to be.&lt;/p&gt;
&lt;p&gt;Here's what setting up a build environment on Ubuntu (my other *nix of choice) looks like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;sudo apt-get install build-essential
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;One command that I can type from memory&lt;a class="footnote-reference" href="#id2" id="id1"&gt;1&lt;/a&gt; and a little bit of waiting. Contrast that with what you need to do to get GCC on Mac OS X:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Register as a developer at &lt;a class="reference external" href="http://developer.apple.com/"&gt;http://developer.apple.com/&lt;/a&gt; which includes explaining whether your interested in building iPhone apps, iPad apps or iPhone apps.&lt;/li&gt;
&lt;li&gt;Download Xcode, which is like 3 Gigs (keep in mind, I have an SSD, it's teeny). This took all. Frigging. Day. I don't know if it was Verzion, or Apple or both, but some router, somewhere was conspiring to keep me from getting my C compiler in a timely fashion.&lt;/li&gt;
&lt;li&gt;Install Xcode and remembering to not install the iOS environment which takes up like 8 Gigs (SSD!). You can't just install GCC, you &lt;em&gt;have&lt;/em&gt; to install Xcode (a development environment I will never use, I have Vim after all) so there goes 2 Gigs I'll never get back.&lt;/li&gt;
&lt;li&gt;You now have a C compiler, and can now checkout and build &lt;a class="reference external" href="http://clang.llvm.org/"&gt;clang&lt;/a&gt; from source.&lt;/li&gt;
&lt;li&gt;You now have not one, but two C compilers. All is right in the world. (Okay, so that last step is superfluous, but, who doesn't want a C compiler they built themselves from source?)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So that's only a days worth of downloading and a multi-gigabyte install so that I can compile &amp;quot;Hello World&amp;quot;: &lt;a class="reference external" href="http://www.imdb.com/title/tt0367279/quotes?qt0386330"&gt;Come on!&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now the reality is, the last time I had to do this was two and a half years ago, and if my computer only annoys me enough to write about it once every couple of years, I'm doing pretty good.&lt;/p&gt;
&lt;table class="docutils footnote" frame="void" id="id2" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label"/&gt;&lt;col/&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#id1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The package might actually be named build-essentials, but since Ubuntu's apt-get auto-completes package names, you just have to type build-^TAB and you get the right thing.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</description><guid isPermaLink="true">http://aaron.maenpaa.ca/blog/entries/2010/11/11/new_computer_new_tools/</guid><pubDate>Thu, 11 Nov 2010 23:28:09 GMT</pubDate></item></channel></rss>