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 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" |
@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?
I would, but we didn't actually change the script, just typed the commands differently into the terminal on the RaspberryPi which I don't have with me.
…On Tue, Mar 10, 2020, 10:17 Sequoia Ploeg ***@***.***> wrote:
@smithjn98 <https://github.com/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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/1d17252c52b4958a9e424262a1bc4626?email_source=notifications&email_token=AOPTS66JBVIUMO3KIDHVVFTRGZR3LA5CNFSM4LDGVUUKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAGDXSO#gistcomment-3206951>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOPTS66HXLYN63TVNVKN3TLRGZR3LANCNFSM4LDGVUUA>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.