-
Notifications
You must be signed in to change notification settings - Fork 23
Troubleshooting
Linux and Lua trouble e
sometimes. If you run into any problems with compiling or linking Lua, chances are this is due to missing libraries or problematic Lua configuration. Fret not, here are some answers to common problems!
On some Linux systems, you might have to first install libreadline
—or libreadline-dev
, depending on your package manager. This is required by Lua.
If there are still problems, you can adjust the LUA_OPT
flag to your operating system, and see whether that changes anything. Valid values are: aix bsd c89 freebsd generic linux macosx mingw posix solaris
. generic
is the default. Your make call might then look like this:
make install_lua LUA_OPT=linux
If the linker complains about missing functions, you can adjust the LUA_FLAGS
flag to your needs. On Ubuntu, for instance, it is needed that we link libdl
and libmath
into e
—look out for this if the linker complains about dlopen
and various math functions such as floor
. This leads us to the following call:
make install_lua LUA_OPT=linux LUA_FLAGS="-lm -ldl"
If this still doesn’t fix your problems, you might have encountered a bug! Yay! Please file an issue.