Upgrading to El Capitan removes the link to magma from /usr/bin, with the result that typing magma into a terminal window will no longer find it. To fix this, create the file /etc/paths.d/Magma containing the single line
/Applications/MagmaAfter doing so, magma should once again be runnable by typing magma in a terminal window