<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks!</div><div class=""><br class=""></div>I just forgot that <div class=""><br class=""></div><div class="">sudo port select mp-gcc7</div><div class=""><br class=""></div><div class="">was not going to do what I expected and started to try several commands, getting mad…</div><div class=""><br class=""></div><div class="">Laurent</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Le 29 juin 2018 à 17:26, Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class="">On 29/06/18 16:21, pagani laurent via macports-users wrote:<br class=""><blockquote type="cite" class="">Hi,<br class="">I have gcc7.0 installed :<br class=""><blockquote type="cite" class="">sudo port installed gcc7<br class=""></blockquote>The following ports are currently installed:<br class="">   gcc7 @7.3.0_0 (active)<br class="">but I can’t use it under that name. There are several gcc-* files in the /bin<br class="">I figured out that gcc-mp-7 was the one I was looking for but how can I get it to be the default gcc compiler ?<br class="">I tried various sudo port select gcc… but all failed.<br class=""></blockquote><br class="">port select is the way. It works fine.<br class=""><br class="">Titan ~ > sudo port select gcc<br class="">Available versions for gcc:<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span>mp-gcc7<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>none (active)<br class=""><br class="">Titan ~ > which gcc<br class="">/usr/bin/gcc<br class=""><br class="">Titan ~ > sudo port select gcc mp-gcc7<br class="">Selecting 'mp-gcc7' for 'gcc' succeeded. 'mp-gcc7' is now active.<br class=""><br class="">Titan ~ > which gcc<br class="">/opt/local/bin/gcc<br class=""><br class="">Titan ~ > gcc --version<br class="">gcc (MacPorts gcc7 7.3.0_1) 7.3.0<br class="">Copyright (C) 2017 Free Software Foundation, Inc.<br class="">This is free software; see the source for copying conditions.  There is NO<br class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br class=""><br class=""><br class="">Please provide details on exactly what you did and exactly how it failed.<br class=""><br class="">Chris<br class=""><br class=""><blockquote type="cite" class="">By the way, I tested the 3 other gcc-*-mp-7 (ranlib, ar, and nm) and all complained :<br class=""><blockquote type="cite" class="">gcc-ranlib-mp-7<br class=""></blockquote>gcc-ranlib-mp-7: Cannot find plugin ‘liblto_plugin.so'<br class="">Does it matter ?<br class="">L.<br class="">"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)<br class=""></blockquote></div></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Palatino; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div class="">"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)</div></span>
</div>
<br class=""></div></body></html>