lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I am trying to install lunatic-python on Ubuntu 14.04. The Ubuntu is freshly installed.  The lunatic-python available on GitHub [1] seems updated frequently, so I decided to install it. Below are the steps I followed-

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

Below is the output of terminal-
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]: ?

Reference
[1] https://github.com/bastibe/lunatic-python

-
Thanks