swig both on Ubuntu 12.04 and OS X

133 views
Skip to first unread message

Michal Kočer

unread,
May 31, 2013, 7:39:59 AM5/31/13
to astro...@googlegroups.com
Hello, 
we're in process of installing new camera on our observatory (246), so we're rechecking our 
data-flow procedure. There are many new technologies around and lot of computation power, so we're 
trying wether some part of your interesting project would fit in.

Unfortunately ob both OSs I tryed, ie. on Ubuntu 12.04 and on OS X (using macports) ,I've got during instalation phase response like this connected
with swig at ./sdss subdirectory of instalation directory:

~/src/astrometry.net-0.43/sdss $ make
python setup.py build --force --build-base build --build-platlib build/lib
running build
running build_ext
building '_cutils' extension
swigging cutils.i to cutils_wrap.c
swig -python -o cutils_wrap.c cutils.i
:3: Error: Unable to find 'python.swg'
error: command 'swig' failed with exit status 1
make: *** [_cutils.so] Error 1

On Ubuntu 12.04 I solved that by installing "swig" package and make-ing new install;
on OS X I'm not able to go through. So my quiestion is: is there any way of installing
the SW without using swig tool? 

I tryed newer snapshots as well - I did not get better result :(

Thank you 

Michal

Philip Bergen

unread,
May 31, 2013, 1:50:25 PM5/31/13
to astro...@googlegroups.com
Look at using homebrew instead of macports. I installed on OSX last weekend with no problems. Homebrew is superior to ports in that it doesn't install a parallel Linux env on your OSX. Instead it downloads, patches and compiles libraries and tools for your platform.
Switching to homebrew will likely require that you drop your ports installation. Still worth it in my opinion.

Good luck,
Phil

Dustin Lang

unread,
May 31, 2013, 1:54:25 PM5/31/13
to astro...@googlegroups.com
I thought I includeded all the swig-generated files in the source tarball -- I'm not sure why it's trying to re-run swig, unless I forgot something.

Could you please re-extract the tarball, and:

'''
ls -l sdss
make     # and when it fails...
make -d
'''

I'm trying to figure out why it's trying to run swig.  It shouldn't have to.

cheers,
--dstn

Michal Kočer

unread,
May 31, 2013, 4:05:55 PM5/31/13
to astro...@googlegroups.com
Dustin, thx for reply.

I forgot to write that both on Ubuntu and OS X it fails during "make install" and I found that the cause is in sdss.
So I did  now on freshly extracted tarball  following (OS X+macports):

ls -l sdss
# changed util/makefile.netpbm
make
make install
make -d install
ls -l sdss

Output is attached in a file

Hope it helps 

Michal
screenlog.0.txt.gz

Michal Kočer

unread,
May 31, 2013, 4:09:52 PM5/31/13
to astro...@googlegroups.com
THX Phil for reply,
I'm thinking for a long time to switch over to homebrew, but still it is some research to find which base packages I do need for my projects
and then uninstall all the ports and install coresponding homebrewed one - but may be, the time has come ;)

Michal  

Dustin Lang

unread,
Jun 2, 2013, 11:02:48 AM6/2/13
to astro...@googlegroups.com
Hi,

Could you please try this snapshot and let me know how it works:  I just tried on my Mac system without swig and it worked for me -- does it work for you?
  http://astrometry.net/downloads/astrometry.net-22914.tar.gz

thanks,
dustin

Michal Kocer

unread,
Jun 2, 2013, 2:46:55 PM6/2/13
to astro...@googlegroups.com
Hi Dustin,
it seems to compile and instlall well on my Mac.

Thank you :) for your effort 

Michal


--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry?hl=en.
 
 



--
Michal Kocer
http://www.koceri.net/
Reply all
Reply to author
Forward
0 new messages