Skip to content
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

xml module does not work #10

Open
tastyminerals opened this issue Nov 16, 2016 · 4 comments
Open

xml module does not work #10

tastyminerals opened this issue Nov 16, 2016 · 4 comments

Comments

@tastyminerals
Copy link

tastyminerals commented Nov 16, 2016

The following code:

local xml = require("xml")

produces the following error:

error loading module 'xml.core' from file '/usr/lib/lua/5.3/xml/core.so':
	/usr/lib/lua/5.3/xml/core.so: undefined symbol: lua_tonumber
lua: /usr/share/lua/5.3/xml/init.lua:31: attempt to call a nil value (field 'Parser')
stack traceback:
	/usr/share/lua/5.3/xml/init.lua:31: in main chunk
	[C]: in function 'require'
	lua_doc_reader.lua:3: in main chunk
	[C]: in ?
@gaspard
Copy link
Member

gaspard commented Nov 22, 2016

Hi @tastyminerals !

Can you provide information on your build/runtime environment so that I can reproduce this ?

  • OS version
  • Lua version
  • Installation (via luarocks, custom build, etc)

Cheers...

@tastyminerals
Copy link
Author

Linux dell-tasty 4.7.10-1-MANJARO #1 SMP PREEMPT Sat Oct 22 19:15:11 UTC 2016 x86_64 GNU/Linux
[tastyminerals@dell-tasty ~]$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
> 

Installation was performed via luarocks.

@iamjokerjun
Copy link

lua: ./xml.lua:24: module 'lub' not found:
no field package.preload['lub']
no file '/usr/local/share/lua/5.3/lub.lua'
no file '/usr/local/share/lua/5.3/lub/init.lua'
no file '/usr/local/lib/lua/5.3/lub.lua'
no file '/usr/local/lib/lua/5.3/lub/init.lua'
no file './lub.lua'
no file './lub/init.lua'
no file '/usr/local/lib/lua/5.3/lub.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './lub.so'
stack traceback:
[C]: in function 'require'
./xml.lua:24: in main chunk
[C]: in function 'require'
mytest.lua:1: in main chunk

where is lub lib????

@gaspard
Copy link
Member

gaspard commented Dec 15, 2016

@809851978 https://luarocks.org/search?q=lub

Should install along. Let me check all this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants