1. Installed lua5.1 using sudo apt-get install lua5.1
2. Downloaded the lunatic-python zip from [1] and extracted to home folder
3. Run command sudo make
4. Run command sudo make install
I am looking for a way to install lunatic-python. Please help
ravi@ravi:~$ uname -a
Linux ravi 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ravi@ravi:~$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lua
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/dist-packages/lua.so: undefined symbol: lua_gettop
>>>
ravi@ravi:~$ lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require("python")
stdin:1: module 'python' not found:
no field package.preload['python']
no file './python.lua'
no file '/usr/local/share/lua/5.1/python.lua'
no file '/usr/local/share/lua/5.1/python/init.lua'
no file '/usr/local/lib/lua/5.1/python.lua'
no file '/usr/local/lib/lua/5.1/python/init.lua'
no file '/usr/share/lua/5.1/python.lua'
no file '/usr/share/lua/5.1/python/init.lua'
no file './python.so'
no file '/usr/local/lib/lua/5.1/python.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/python.so'
no file '/usr/lib/lua/5.1/python.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?