[Mesa-users] Encountering compile errors building mesa-r11554 on iMacPro
Josiah Schwab
jwschwab at ucsc.edu
Mon Mar 18 11:18:56 EDT 2019
>
> It looks like anaconda3 isn’t playing nicely with the MESA SDK. Your PATH
> shows that anaconda has prepended several things. Consequently, your
> compilers aren’t coming from the SDK.
>
> You might be able to fix this by editing your ~/.profile so that the
> command "source $MESASDK_ROOT/bin/mesasdk_init.sh” comes after everything
> else. In particular, it needs to come after anything anaconda might have
> put in there. Does that help? This might screw up anaconda, but hopefully
> at least MESA will install…
>
If you sometimes need to use the anaconda gfortran and sometimes the MESA
SDK gfortran, then you may not want to unconditionally activate the SDK in
your .bashrc. A simple alternative is to put something like this in your
.bashrc
export MESASDK_ROOT=/opt/mesasdk
sdkon(){
PS1="[mesasdk] $PS1"
source ${MESASDK_ROOT}/bin/mesasdk_init.sh
}
then you just have to remember to type sdkon in the terminal where you're
using MESA. (The change to PS1 is to give you a visual indicator that you
did so.)
Josiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190318/5f62169f/attachment.html>
More information about the Mesa-users
mailing list