manoelcampos / xml2lua

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
MIT License
287 stars 73 forks source link

How to install with ZeroBraneStudio? #71

Closed FiftyTifty closed 2 years ago

FiftyTifty commented 2 years ago

The instructions aren't exactly comprehensive. It's no more than "Get LuaRocks, and install via LuaRocks". But that's a mess, when you are not using LuaRocks.

ZBS Uses LuaDist as a package manager, and has a couple of caveats. How would I install XML2Lua for ZBS?

manoelcampos commented 2 years ago

I've never even heard about LuaDist. If you just place the lib files inside your project (following the same directory structure) it will probably work right away.

It doesn't matter what IDE or editor you are using, you don't need them to install the lib using LuaRocks, the instructions above, or any other method that I'm not aware of.

By the way, PRs are welcome.

ferdnyc commented 2 years ago

@manoelcampos I wouldn't worry about it: LuaDist is entirely abandoned at this point, with all of its repos archived and a banner across the top of the luadist.org landing page reading:

image

Looks like ZBS needs to get with the times. (Or @FiftyTifty just needs to install luarocks, which is as easy as the instructions found at https://luarocks.org/#quick-start):

$ wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz
$ tar zxpf luarocks-3.8.0.tar.gz
$ cd luarocks-3.8.0
$ ./configure && make && sudo make install
manoelcampos commented 2 years ago

Great, thanks @ferdnyc