Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XML in LUA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 885
Location: Germany

PostPosted: Thu Dec 01, 2016 7:33 am    Post subject: XML in LUA Reply with quote

Hi,

I'm trying to run a lua programme (PathOfBuilding - https://github.com/Openarl/PathOfBuilding/releases) on Gentoo (not written for Linux).
I was expecting problems, but not so early :D.

When I run the install script (lua LaunchInstall.lua), lua comes up with this:
Code:
lua: LaunchInstall.lua:10: module 'xml' not found:
   no field package.preload['xml']
   no file './xml.lua'
   no file '/usr/share/lua/5.1/xml.lua'
   no file '/usr/share/lua/5.1/xml/init.lua'
   no file '/usr/lib64/lua/5.1/xml.lua'
   no file '/usr/lib64/lua/5.1/xml/init.lua'
   no file '/usr/share/lua/5.1/xml.lua'
   no file '/usr/share/lua/5.1/xml/init.lua'
   no file './xml.so'
   no file '/usr/lib64/lua/5.1/xml.so'
   no file '/usr/lib64/lua/5.1/xml.so'
   no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
   [C]: in function 'require'
   LaunchInstall.lua:10: in main chunk
   [C]: ?

Corresponding line is:
Code:
local xml = require("xml")

I wouldn't have expected this to be a problem. However, the files like xml.lua, init.lua etc. actually don't exist.
Any idea why this is so and what lua packages I might need to merge to get them?
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Thu Dec 01, 2016 7:47 am    Post subject: Reply with quote

You probably need
Code:
$ eix luaexpat
* dev-lua/luaexpat
     Available versions:  1.2.0-r1 ~1.3.0 1.3.0-r1 {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Homepage:            http://www.keplerproject.org/luaexpat/
     Description:         LuaExpat is a SAX XML parser based on the Expat library

:?:
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum