iraf-community / x11iraf

X11/GUI utilities and applications for IRAF (xgterm, ximtool, xtapemon)
https://iraf-community.github.io/x11iraf
21 stars 8 forks source link

X11iraf installation #44

Closed astronomypicture closed 2 years ago

astronomypicture commented 2 years ago

Hi, This is the first time I try to install X11IRAF, I have no experience as a system manager. I am working on Linux Mint 20.2 and followed the recipe. However, something is wrong. Here is the output I got:

$ make make -C xgterm make[1]: Entering directory '/home/andres/IRAF/x11iraf-2.1/xgterm' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/andres/IRAF/x11iraf-2.1/xgterm' make -C ximtool make[1]: Entering directory '/home/andres/IRAF/x11iraf-2.1/ximtool' cd clients && mkpkg || true Warning, hlib$mkpkg.inc line 5: macro IRAFARCH' not found warning: librarylibpkg.a' not found xc -c -w idxstr.x ism.x wcsgfterm.x idxstr.c:13:10: fatal error: f2c.h: No such file or directory 13 | #include "f2c.h" | ^~~ compilation terminated. ar r /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a idxstr.o ism.o wcsgfterm.o ar: creating /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a ar: idxstr.o: No such file or directory xc -c -w t_wcspix.x wcimage.x wcmef.x wcmspec.x wcunknown.x t_wcspix.c:13:10: fatal error: f2c.h: No such file or directory 13 | #include "f2c.h" | ^~~ compilation terminated. ar r /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a t_wcspix.o wcimage.o wcmef.o wcmspec.o wcunknown.o ar: creating /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a ar: t_wcspix.o: No such file or directory ranlib libpkg.a ranlib: 'libpkg.a': No such file Updated 8 files in libpkg.a Warning, mkpkg line 13: module libpkg.a' not found or returned error xc -c -w x_ism.x x_ism.c:13:10: fatal error: f2c.h: No such file or directory 13 | #include "f2c.h" | ^~~~~~~ compilation terminated. xc -Nz -z x_ism.o libpkg.a -o ism_wcspix.e -lds -lxtools -liminterp -lslalib Warning: filex_ism.o' not found Warning: file `libpkg.a' not found make[1]: Leaving directory '/home/andres/IRAF/x11iraf-2.1/ximtool'

olebole commented 2 years ago

You probably have IRAF already installed from Mint, right? Then you should set the environment variable iraf:

export iraf=/usr/lib/iraf/

(make sure you put a trailing slach /).

astronomypicture commented 2 years ago

Hi, Thank you very much.

I followed your recommendation and got this:

@.:~/IRAF/x11iraf-2.1$ export iraf=/usr/lib/iraf/ @.:~/IRAF/x11iraf-2.1$ make make -C xgterm make[1]: Entering directory '/home/andres/IRAF/x11iraf-2.1/xgterm' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/andres/IRAF/x11iraf-2.1/xgterm' make -C ximtool make[1]: Entering directory '/home/andres/IRAF/x11iraf-2.1/ximtool' cd clients && mkpkg || true Warning, hlib$mkpkg.inc line 5: macro IRAFARCH' not found warning: librarylibpkg.a' not found xc -c -w idxstr.x ism.x wcsgfterm.x ar r /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a idxstr.o ism.o wcsgfterm.o ar: creating /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a xc -c -w t_wcspix.x wcimage.x wcmef.x wcmspec.x wcunknown.x ar r /home/andres/IRAF/x11iraf-2.1/ximtool/clients/libpkg.a t_wcspix.o wcimage.o wcmef.o wcmspec.o wcunknown.o ranlib libpkg.a Updated 8 files in libpkg.a xc -c -w x_ism.x xc -Nz -z x_ism.o libpkg.a -o ism_wcspix.e -lds -lxtools -liminterp -lslalib gcc: error: libcfitsio.a: No such file or directory Warning, mkpkg line 3: module `relink' not found or returned error make[1]: Leaving directory '/home/andres/IRAF/x11iraf-2.1/ximtool'

On Fri, Oct 15, 2021 at 10:09 AM Ole Streicher @.***> wrote:

You probably have IRAF already installed from Mint, right? Then you should set the environment variable iraf:

export iraf=/usr/lib/iraf/

(make sure you put a trailing slach /).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iraf-community/x11iraf/issues/44#issuecomment-944284337, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWCL3R3OH7U623MO3QLXVULUHARXBANCNFSM5GB5UFDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

olebole commented 2 years ago

This looks like if you have different IRAF versions mixed somehow; maybe one self-compiled and one installed with apt. In this case you must make sure that all environment variables are set OK, and that the "xc" executable is the one that matches the installation you want to use. Specifically, the one that comes with the system doesn't link to libcfitsio.a, but to the dynamic library, so you probably use a different one. However, the failure is related to the build of ximtool and there is just important to display world coordinates on the display (instead of pixel coordinates). In case you don't need the display of world coordinates or if you only want xgterm (and use f.e. ds9 for display), you can ignore this problem.

Finally, I really recommend not to start with IRAF anymore. IRAF is an old, abandoned system with no future. Instead, have a look at Astropy and its affiliated packages. They already good to replace most of the tasks IRAF did before and is evolving quickly. IRAF is a dead end.