<div dir="ltr">Hi all!<div><br></div><div>New MacPorts user here. So this is what i have done so far:</div><div><br></div><div>Installed Xcode</div><div>Installed MacPorts</div><div>All working fine</div><div>Replaced MacPorts with Homebrew because i needed something that was in Homebrew but not in MacPorts. Now i cannot remember what.</div><div>Removed Homebrew.</div><div>Removed and reinstalled MacPorts. Cannot find port command.</div><div>Removed MacPorts.</div><div>Removed Xcode.</div><div>Reinstalled Xcode.</div><div>Reinstalled MacPorts.</div><div><br></div><div>Now, when i want to compile something i get the following error:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">TM-MBP:lir03-51 Ton$ ./configure</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">checking OS... checking for gcc... /usr/bin/gcc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">-------------------------------------------------------</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">In file included from &lt;built-in&gt;:321: &lt;command line&gt;:2:9: warning: &#39;__STDC_VERSION__&#39; macro redefined [-Wmacro-redefined] #define __STDC_VERSION__ 0L ^ &lt;built-in&gt;:318:9: note: previous definition is here #define __STDC_VERSION__ 199901L ^ 1 warning generated.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">-------------------------------------------------------</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">The gcc compiler is installed but does not work.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">The reason is probably missing header files.</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Debian, Ubuntu: apt-get install libc6-dev</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Fedora: yum install gcc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">SuSE: zypper install gcc</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">———————————————————————————</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">How can i start from scratch so that MacPorts and Xcode behave nicely together?</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">OSX 10.10.3 here.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Thanks,</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Ton.</p></div></div>