Installing GPSTk in Anaconda Python

GPSTk 2.9 Python install and examples

GPSTk 2.5 Python 2.7 install (old version)

This is for an obsolete GPSTk, for reference. You should be using the current version of GPSTk instead.

  1. Download GPSTk 2.5 source
  2. comment out (type //) line 15 of file gpstk-2.5.src/python/bindings/swig/gpstk.i to avoid

    Error: Unable to find ‘doc/doc.i’

  3. make sure the command which python points to your Python 2.7, NOT Python 3. If it points to Python 3, check your ~/.bashrc. Yes I normally make python point to Python 3, but I temporarily override this for this install.
  4. get prereqs

    apt install g++ make cmake swig doxygen
    
  5. run

    ./script_gpstk.sh -bcp -l $(python -c "import site; site.getsitepackages()[0])") -s ~/gpstk
    
  6. add to your ~/.bashrc

    export LD_LIBRARY_PATH=$HOME/gpstk/lib:$LD_LIBRARY_PATH
    

Leave a Comment