Installation - ASankaran/AIMBAT_Qt GitHub Wiki
Overview
AIMBAT-Qt can be installed on Mac OS, Linux, and Windows. However Mac OS and Linux are the preferred operating systems as the program has bugs when running on Windows.
Installing
Tested known working installation methods:
- OSX with Anaconda
- Linux with Anaconda
- Linux without Anaconda
- Windows without Anaconda (Reading from pkl files is broken. Must pass SAC files individually)
Other installation methods should work, but are untested
Note: If you already have a library installed you should be able to skip the step
-
OSX
- Using Anaconda (Python 2.7)
- Numpy and Scipy will be preinstalled by Anaconda
- Install pyqtgraph
- conda install pyqtgraph
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- sudo python setup.py build
- sudo python setup.py install
- Install GFortran
- Download and install binary https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- sudo python setup.py build --fcompiler=gfortran
- sudo python setup.py install
- Install GMT and add to PATH
- Without using Anaconda
- Install Python 2.7 from https://www.python.org/downloads/
- PyQt is reportedly not compatible with the OS X preinstalled version
- Install Numpy
- Download latest installer from http://sourceforge.net/projects/numpy/files/NumPy/
- Install Scipy
- Download latest installer from http://sourceforge.net/projects/scipy/files/scipy/
- Install Qt and PyQt4
- Download installer from https://sourceforge.net/projects/pyqtx/
- Install pyqtgraph
- git clone https://github.com/pyqtgraph/pyqtgraph.git
- cd pyqtgraph
- sudo python setup.py install
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- sudo python setup.py build
- sudo python setup.py install
- Install GFortran
- Download and install binary https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- sudo python setup.py build --fcompiler=gfortran
- sudo python setup.py install
- Install GMT and add to PATH
- Install Python 2.7 from https://www.python.org/downloads/
- Using Anaconda (Python 2.7)
-
Linux
- Using Anaconda (Python 2.7)
- Numpy and Scipy will be preinstalled by Anaconda
- Install pyqtgraph
- conda install pyqtgraph
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- sudo python setup.py build
- sudo python setup.py install
- Install GFortran
- sudo apt-get install gfortran
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- sudo python setup.py build --fcompiler=gfortran
- sudo python setup.py install
- Install GMT and add to PATH
- Without using Anaconda
- Python 2.7 should be included by default
- Install Numpy
- sudo apt-get install python-numpy
- Install Scipy
- sudo apt-get install python-scipy
- Install Qt and PyQt4
- sudo apt-get install python-qt4
- Install pyqtgraph
- git clone https://github.com/pyqtgraph/pyqtgraph.git
- cd pyqtgraph
- sudo python setup.py install
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- sudo python setup.py build
- sudo python setup.py install
- Install GFortran
- sudo apt-get install gfortran
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- sudo python setup.py build --fcompiler=gfortran
- sudo python setup.py install
- Install GMT and add to PATH
- Using Anaconda (Python 2.7)
-
Windows
- Using Anaconda (Python 2.7)
- Numpy and Scipy will be preinstalled by Anaconda
- Install pyqtgraph
- conda install pyqtgraph
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- python setup.py build
- python setup.py install
- Install GFortran
- Download and install binary https://gcc.gnu.org/wiki/GFortranBinaries#Windows
- Install a C compiler
- MinGW32 from http://www.mingw.org/wiki/Getting_Started
- Visual Studio compiler from https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx
- Ready environment to build pysmo.aimbat_qt
- Make sure gfortran is in the PATH
- Make sure you have a valid C compiler
- To use mingw32
- Set distutils config file: http://stackoverflow.com/questions/27289056/python-install-package-getting-error-with-msvccompiler
- To use visual studio compiler
- Override environment variables to match python version and expected compiler version: http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/10558328#10558328
- Note: This apparently can break stuff
- Override environment variables to match python version and expected compiler version: http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/10558328#10558328
- To use mingw32
- Add a HOME variable
- set HOME=%USERPROFILE%
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- python setup.py build --fcompiler=gfortran
- python setup.py install
- Install GMT and add to PATH
- Without using Anaconda
- Install Python 2.7 from https://www.python.org/downloads/
- Install Numpy
- Download latest installer from http://sourceforge.net/projects/numpy/files/NumPy/
- Install Scipy
- Download latest installer from http://sourceforge.net/projects/scipy/files/scipy/
- Install Qt and PyQt4
- Download installer from http://sourceforge.net/projects/pyqt/files/
- Install pyqtgraph
- git clone https://github.com/pyqtgraph/pyqtgraph.git
- cd pyqtgraph
- python setup.py install
- Install pysmo.sac
- git clone https://github.com/pysmo/sac.git
- cd sac
- python setup.py build
- python setup.py install
- Install GFortran
- Download and install binary https://gcc.gnu.org/wiki/GFortranBinaries#Windows
- Install a C compiler
- MinGW32 from http://www.mingw.org/wiki/Getting_Started
- Visual Studio compiler from https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx
- Ready environment to build pysmo.aimbat_qt
- Make sure gfortran is in the PATH
- Make sure you have a valid C compiler
- To use mingw32
- Set distutils config file: http://stackoverflow.com/questions/27289056/python-install-package-getting-error-with-msvccompiler
- To use visual studio compiler
- Override environment variables to match python version and expected compiler version: http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/10558328#10558328
- Note: This apparently can break stuff
- Override environment variables to match python version and expected compiler version: http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/10558328#10558328
- To use mingw32
- Add a HOME variable
- set HOME=%USERPROFILE%
- Install pysmo.aimbat_qt
- git clone https://github.com/ASankaran/AIMBAT_Qt.git
- cd aimbat_qt
- python setup.py build --fcompiler=gfortran
- python setup.py install
- Install GMT and add to PATH
- Using Anaconda (Python 2.7)