-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luarocks install FFI_DIR=~/SANDBOX alien #34
Comments
Maybe you have another Lua installation and this is what configure is detecting? Could you try luarocks install LUA_INCDIR= Fabio |
Hi Fabio: There is another, slightly older Lua installed on my system. I hoped that I had bypassed it by setting LUA_PATH to point to my SANDBOX, where I installed Lua 5.2. gederer@moddev2-c64% echo "$LUA_PATH" When I run gederer@moddev2-c64% luarocks install LUA_INCDIR=$SANDBOX/include FFI_DIR=$SANDBOX alien Error: Build error: Failed building. As I said in my previous email, it finds ffi fine. But it does not seem to like lua itself. Thanks, |
Hi Fabio: Here is some more information. I tried building using the Autoconf configure script with the following command: It failed as follows (from the config.log file): It looks like the Autoconf macro that constructs the command to compile the little test program "conftest.c" adds an extra argument to the C compiler command line; it adds an extra "/home/gederer/SANDBOX/include" with no compiler switch. The C compiler sees that it's a directory, not a file to compile, and dies. I think it has something to do with the following at the bottom of m4/ax_lua.m4 I wonder if CPPFLAGS already has "-I/home/gederer/SANDBOX/include -L/home/gederer/SANDBOX/lib " and the line CPPFLAGS="$CPPFLAGS $LUA_INCLUDE" appends an extra "/home/gederer/SANDBOX/include" Regards, |
Hi, Greg. Can you help me to start compiling Alien? Thanks. HERNAN |
On 09/05/2016 01:58 AM, jhernancanom wrote:
I have not used lua in several years -- development priorities changed.I --greg |
Fine, Gregory.
I would like something like that, too. Thanks for taking time to answer me. |
There also LuaFFI library. It has no external deps. |
Yes, friend. Thanks, friend. See you later. 2016-09-08 2:18 GMT-05:00 Alexey Melnichuk:
|
What compiler you use. There bat file to MSVC. Which should works just fine, |
Fine, Alexey. I had downloaded it from http://files.luaforge.net/releases/luaffi/luaffi I searched in LuaRocks and I find luaffi by colesbury with sources in I have "Microsoft Visual Basic 2010 Express" and "Microsoft Visual Studio I'll try later with msvcbuild.bat and inform to you how is going to me. I I have in my Internet explorer these two URLs: https://github.com/jmckaskill/luaffi https://github.com/facebook/luaffifb luaffifb says updates for Lua 5.3 (something very important for me) until 3 Both have the .BAT in mention. Thanks my friend. 2016-09-08 2:44 GMT-05:00 Alexey Melnichuk:
|
Hi Fabio:
When I try to install alien using luarocks, it finds ffi ok, but I get an error that lua.h is not correct version, as follows:
Installing http://www.luarocks.org/repositories/rocks/alien-0.7.0-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/alien-0.7.0-1.src.rock... switching to 'build' mode
Archive: /tmp/luarocks_luarocks-rock-alien-0.7.0-1-7965/alien-0.7.0-1.src.rock
...
checking ffi.h usability... yes
checking ffi.h presence... yes
checking for ffi.h... yes
checking for ffi_closure_alloc in -lffi... yes
...
checking Lua version is in range 501 <= v < 503... yes
checking lua.h usability... yes
checking lua.h presence... yes
checking for lua.h... yes
checking lualib.h usability... yes
checking lualib.h presence... yes
checking for lualib.h... yes
checking lua.h version is in range 501 <= v < 503... no
configure: error: in
/tmp/luarocks_alien-0.7.0-1-9794/alien-0.7.0': configure: error: lua.h version not in desired range See
config.log' for more detailsError: Build error: Failed building.
So I look in lua.h,
% grep LUA_VERSION ~/SANDBOX/include/lua.h
define LUA_VERSION_MAJOR "5"
define LUA_VERSION_MINOR "2"
define LUA_VERSION_NUM 502
define LUA_VERSION_RELEASE "1"
define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE
which looks like lua.h is a valid version. Is there an issue with the build/install script? I've been able to successfully install other lua rocks that need compiling (eg NumLua).
Thanks,
--greg
The text was updated successfully, but these errors were encountered: