One of the easiest ways to install a Python 3 distribution on MacOSX with most of the needed libraries for iSpec is by using Anaconda.
Follow the instructions, anaconda will be installed in /home/your_user/anaconda3/ by default. The installer will ask if you want to initialize/modify .bashrc or .bash_profile, select 'yes'. The installer should have added to your .bashrc or .bash_profile files (in your home directory) something like this:
# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/your_user/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/your_user/anaconda3/etc/profile.d/conda.sh" ]; then . "/home/your_user/anaconda3/etc/profile.d/conda.sh" else export PATH="/home/your_user/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
Close all the terminals and open a new one in order to re-load this new setup.
Install a library that does not come by default and that it is needed by iSpec:
conda update conda conda update --all conda install lockfile dill
xcode-select --install, and click the Install button to install the required command line developer tools. Don't worry if you see a message telling you the software cannot be installed because it is not currently available from the Software Update Server. This usually means you already have the latest version installed. Once installed, verify that this version of gcc is the one being executed from your terminal:
which gcc gcc --version
which should show something similar to:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1 Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin17.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
which gfortran gfortran --version
which should show:
GNU Fortran (GCC) 6.3.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make clean make spectrum make turbospectrum make moog