IRAF安装(Mac M1/M2)
最近在装iraf,按着说明文档怎么都装不上去,最后在GitHub上找到了帮助说明,为了帮助后来的同学,打算在B站上发个说明文稿
强烈建议遇到问题时搜索iraf的git:https://github.com/iraf-community
如果使用iraf2.17安装时,在make sysgen阶段时有报错
sysdep.c:112:3: error: call to undeclared function 'rmdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
rmdir(s);
^
sysdep.c:112:3: note: did you mean 'rmtdir'?
sysdep.c:107:1: note: 'rmtdir' declared here
rmtdir(Void)
^
1 error generated.
make[1]: *** [sysdep.o] Error 1
make: *** [sysgen] Error 2
是因为新版本的Xcode不支持iraf2.17,需要使用开发版本(下载地址:https://github.com/iraf-community/iraf/archive/refs/heads/main.tar.gz)
可以参照文件内的install.md进行安装