dstndstn / tractor

The Tractor: measuring astronomical sources via probabilistic inference
Other
86 stars 24 forks source link

installation failure because of missing mix_wrap.c #2

Closed djbard closed 10 years ago

djbard commented 10 years ago

If I check out the package and try to install using the instructions given I get an error because of a missing file tractor/mix_wrap.c:

[djbard@ki-ls07 tractor]$ python setup.py install --prefix=$PWD/install/ running install running build running build_py running build_ext building 'tractor._mix' extension C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

compile options: '-UNDEBUG -I/afs/slac/g/ki/software/python/2.5.4/lib/python2.5/site-packages/numpy/core/include -I/afs/slac/g/ki/software/python/2.5.4/include/python2.5 -c' gcc: tractor/mix_wrap.c gcc: tractor/mix_wrap.c: No such file or directory gcc: no input files gcc: tractor/mix_wrap.c: No such file or directory gcc: no input files error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -UNDEBUG -I/afs/slac/g/ki/software/python/2.5.4/lib/python2.5/site-packages/numpy/core/include -I/afs/slac/g/ki/software/python/2.5.4/include/python2.5 -c tractor/mix_wrap.c -o build/temp.linux-x86_64-2.5/tractor/mix_wrap.o" failed with exit status 1

Indeed, tractor/mix_wrap.c is missing.

dstndstn commented 10 years ago

Hmm, did the previous "make" command work? mix_wrap.c is generated by running the "swig" program on mix.i

What happens if you "make" (in the tractor directory)?

djbard commented 10 years ago

ah - 'make' does indeed produce that file. Now the installation runs fine. There is no mention of 'make' in the README.md. This should be added.

djbard commented 10 years ago

ah - I see the problem. I checked out the repository via git clone, not via the wget pipe into bash. I suspect others will also clone without thinking (that's the default thing to do with github), so perhaps that could be accommodated in the documentation.

dstndstn commented 10 years ago

thanks, done, I think. Feel free to push improved text!