Created
December 13, 2019 04:20
-
-
Save sequoiap/1d17252c52b4958a9e424262a1bc4626 to your computer and use it in GitHub Desktop.
Install astromery.net on Ubuntu-based Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WORKSPACE_DIR="/tmp" | |
# basic linux install/build libs, python, and other support | |
cd $WORKSPACE_DIR && \ | |
apt install -y make && \ | |
apt-get update && \ | |
apt-get install -y build-essential python python-pip netpbm zlib1g-dev libcairo2-dev libjpeg-dev libcfitsio-dev && \ | |
pip install numpy scipy pyfits && \ | |
# astrometry | |
rm -f astrometry.net-latest.tar.gz* && \ | |
wget http://astrometry.net/downloads/astrometry.net-latest.tar.gz && \ | |
tar xvzf astrometry.net-latest.tar.gz && \ | |
cd astrometry.net-* && \ | |
make CFITS_INC="-I$WORKSPACE_DIR/cfitsio/include" CFITS_LIB="-L$WORKSPACE_DIR/cfitsio/lib -lcfitsio" && \ | |
make py && \ | |
make extra && \ | |
make CFITS_INC="-I$WORKSPACE_DIR/cfitsio/include" CFITS_LIB="-L$WORKSPACE_DIR/cfitsio/lib -lcfitsio" install && \ | |
# download and install index files | |
rm -rf /usr/local/astrometry/data/* && \ | |
wget -r -nd -np -P /usr/share/astrometry/ "data.astrometry.net/4100/4119" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.