<div dir="ltr"><p style="margin:0px;font-size:11px;font-family:Menlo">TM-MBP:~ Ton$ /usr/bin/gcc -v</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Target: x86_64-apple-darwin14.3.0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Thread model: posix</p></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 2:45 PM, Ryan Schmidt <span dir="ltr">&lt;<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Apr 13, 2015, at 7:18 AM, Ton Machielsen wrote:<br>
<br>
&gt; New MacPorts user here. So this is what i have done so far:<br>
&gt;<br>
&gt; Installed Xcode<br>
&gt; Installed MacPorts<br>
&gt; All working fine<br>
&gt; Replaced MacPorts with Homebrew because i needed something that was in Homebrew but not in MacPorts. Now i cannot remember what.<br>
&gt; Removed Homebrew.<br>
&gt; Removed and reinstalled MacPorts. Cannot find port command.<br>
&gt; Removed MacPorts.<br>
&gt; Removed Xcode.<br>
&gt; Reinstalled Xcode.<br>
&gt; Reinstalled MacPorts.<br>
&gt;<br>
&gt; Now, when i want to compile something i get the following error:<br>
&gt;<br>
&gt; TM-MBP:lir03-51 Ton$ ./configure<br>
&gt; checking OS... checking for gcc... /usr/bin/gcc<br>
&gt; -------------------------------------------------------<br>
&gt; 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.<br>
&gt; -------------------------------------------------------<br>
&gt; The gcc compiler is installed but does not work.<br>
&gt; The reason is probably missing header files.<br>
&gt; Debian, Ubuntu: apt-get install libc6-dev<br>
&gt; Fedora: yum install gcc<br>
&gt; SuSE: zypper install gcc<br>
&gt; ———————————————————————————<br>
&gt;<br>
&gt; How can i start from scratch so that MacPorts and Xcode behave nicely together?<br>
&gt;<br>
&gt; OSX 10.10.3 here.<br>
<br>
</div></div>What is /usr/bin/gcc? Find out by running:<br>
<br>
/usr/bin/gcc -v<br>
<br>
<br>
<br>
_______________________________________________<br>
macports-users mailing list<br>
<a href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a><br>
<a href="https://lists.macosforge.org/mailman/listinfo/macports-users" target="_blank">https://lists.macosforge.org/mailman/listinfo/macports-users</a><br>
</blockquote></div><br></div>