Created
June 14, 2013 08:16
-
-
Save shirosaki/5780295 to your computer and use it in GitHub Desktop.
Install manual of Lua interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/INSTALL b/src/INSTALL | |
--- a/src/INSTALL | |
+++ b/src/INSTALL | |
@@ -172,6 +172,30 @@ | |
And to not search for locally installed headers and libraries at all, use: | |
./configure --without-local-dir | |
+Unix: COMPILING WITH LUA | |
+ | |
+When you want to compile with the Lua interface features enabled, make sure | |
+you compile on a machine where Lua is installed, otherwise the configure tests | |
+may fail. You need to compile with "luainterp" features: | |
+ ./configure --with-luainterp | |
+ | |
+If Lua headers and libraries are installed not in /usr, for example in | |
+/usr/local, use: | |
+ ./configure --with-luainterp --with-lua-prefix=/usr/local | |
+ | |
+Or set LUA_PREFIX environment variable: | |
+ export LUA_PREFIX=/usr/local | |
+ ./configure --with-luainterp | |
+ | |
+When you want to compile with LuaJIT instead of Lua, make sure you compile on | |
+a machine where LuaJIT is installed, otherwise the configure tests may fail. | |
+You need to compile with --with-luajit in addition to --with-luainterp: | |
+ ./configure --with-luainterp --with-luajit | |
+ | |
+When you want to compile with Lua interface feature using dynamic loading, | |
+use: | |
+ ./configure --with-luainterp=dynamic | |
+ | |
3. OS/2 | |
======= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment