Skip to content

Instantly share code, notes, and snippets.

@sequoiap
Created December 13, 2019 04:20
Show Gist options
  • Save sequoiap/1d17252c52b4958a9e424262a1bc4626 to your computer and use it in GitHub Desktop.
Save sequoiap/1d17252c52b4958a9e424262a1bc4626 to your computer and use it in GitHub Desktop.
Install astromery.net on Ubuntu-based Linux
#!/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"
@smithjn98
Copy link

We had to use the built in package installer instead of pip to download scithon, we also had issues with line 16 because the format was slightly off or because the tar.gz was still there. Also, the filename in the last line is different and that led to a 404 error.

@sequoiap
Copy link
Author

@smithjn98 Could you paste below what changes to the code you made to get it to run, and I'll edit the script to include those?

@smithjn98
Copy link

smithjn98 commented Mar 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment