我正在尝试在Mac OSX Catalina上编译程序,并且遇到以下错误:
[USER:~/Seisan/PRO]$make all
cd ../LIB; /Library/Developer/CommandLineTools/usr/bin/make all; cd ../PRO
-------------------------------------------------
---- COMPILING SEISAN LIBRARIES -----------------
-------------------------------------------------
gcc -m64 -c -I../INC -I/usr/X11R6/include -g -o xlib.o xlib.c
gcc: warning: couldn’t understand kern.osversion ‘19.2.0
In file included from xlib.c:44:0:
/usr/X11R6/include/X11/Xlib.h:38:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [xlib.o] Error 1
--------------------------------------------------
---- COMPILING SEISAN PROGRAMS -------------------
--------------------------------------------------
make: *** No rule to make target `../LIB/./seisan.a', needed by `afadsei'. Stop.
运行which gcc
时,我得到/usr/local/bin/gcc
。我已经通过执行以下操作更新了Xcode:xcode-select --install
。我已经安装了XQuartz。可能是什么问题?感谢您的帮助。