I have ubuntu 16.04.5 Desktop, 32 bit and have installed IRAF.
In the ds9 download page, (
http://ds9.si.edu/site/Download.html) there is no separated versions for 64 and 32 bit. So I downloaded the one:
Linux Ubuntu 16
When I unzipped it and try to run by typing
ds9 in the terminal, I got the error:
bash: /usr/local/bin/ds9: cannot execute binary file: Exec format error
I searched and found that this error occurs when one try to run a 64bit app on 32 bit architecture or vice versa and a solution is to compile the source code if available.
So I downloaded ds9 source and tried to compile it based on its BUILD.txt guide file. It says:
% cd SAOImageDS9
% unix/configure
% make
ds9 will be located in SAOImageDS9/bin
I did this but got this error at the end in the terminal:
/home/ashk/DS9/SAOImageDS9/tk8.6/unix/../generic/tk.h:96:25: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
Makefile:1161: recipe for target 'tkStubLib.o' failed
make[1]: *** [tkStubLib.o] Error 1
make[1]: Leaving directory '/home/ashk/DS9/SAOImageDS9/tk8.6/unix'
Makefile:50: recipe for target 'tk' failed
make: *** [tk] Error 2
................................................
Why there is no 32 bit version for ds9? (I know that there was separated versions for 32/64 bit before)
Could you provide me with a 32bit version? Or tell me the problem with compiling process?
Thanks