尝试在Mac OS Catalina上安装GNUPlot... ../term/lua.trm:107:10:致命错误:找不到'lua.h'文件



我正在使用Mac OS Catalina安装gnuplot,这是一个基于java的应用程序的依赖项,我收到致命错误:"lua.h"文件未找到

#./configure --with-readline=builtin
#make                     # build the program and documentation
make[4]: *** [term.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
#make check               # run unit tests to confirm successful build
../term/lua.trm:107:10: fatal error: 'lua.h' file not found
#include <lua.h>
^~~~~~~
1 error generated.
make[3]: *** [term.o] Error 1
make[2]: *** [check-recursive] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1

谁能帮我?

我建议使用像HomeBrew(http://brew.sh(这样的包管理器,它在安装时处理所有依赖项(如Lua(。 有没有理由需要像这样自己构建它?

最新更新