全部博文(172)
分类: Mysql/postgreSQL
2014-01-01 17:42:56
In most Unix-like platforms, simply do "make" with a suitable target. Here are the details.
aix ansi bsd freebsd generic linux macosx mingw posix solaris
If your platform is listed, just do "make xxx", where xxx is your platform name.
If your platform is not listed, try the closest one or posix, generic, ansi, in this order.
If you're running Linux and get compilation errors, make sure you have installed the readline development package. If you get link errors after that, then try "make linux MYLIBS=-ltermcap".
(由于lua编译依赖readline库,而其依赖ncurses库,但没有指定,所以出现“未定义的符合引用”错误。需要修改${LUA_DIR}/src/Makefile中linux编译target,在SYSLIBS变量中追加‘-lncurses’选项即可。修改后,如下:
linux:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"