Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building astrometry.net code
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
npaust
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Walla Walla, WA

PostPosted: Tue Feb 18, 2014 9:37 pm    Post subject: Building astrometry.net code Reply with quote

This is more of a hint to myself, but it may help other astronomers trying to get the astrometry.net suite to actually build correctly. As it is, the code seemingly can't find the netpbm libraries that it really needs and the documentation seems to have at least one hole in it.

Here are the steps to build
Astrometry.net isn't in portage, so download it from astrometry.net

1) Make sure you have all the dependencies
emerge cairo netpbm libpng libjpet-turbo zlib python numpy pyfits cfitsio -pv
Of course, only install what you don't have. For pyfits and cfitsio, I'd unmask the most recent versions. It's probably better to use astropy and virtual/pyfits too.
2) You have to specifically point to the netpbm libraries and includes, it won't find them. Then everything works as expected
make NETPBM_INC="-I/usr/include/netpbm/" NETPBM_LIB="-L/usr/lib/ -lnetpbm"
make py
make extra
make install

Then follow the instructions to get all of the index files and you'll be set to put nice WCSs into all your fits!

quick edit: you seem to need the NETPBM stuff on all of the make lines.


Last edited by npaust on Thu May 15, 2014 6:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 212
Location: AU

PostPosted: Sun Feb 23, 2014 2:29 pm    Post subject: Reply with quote

sci-astronomy/astrometry-0.43 is in the science overlay. If you like
you could bump it and send a pull request.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum