Questions about installation and usage

42 views
Skip to first unread message

Paul Merrell

unread,
Mar 1, 2013, 4:27:18 PM3/1/13
to lua...@googlegroups.com
Hi, All,

I've successfully installed Lustdist to Mint 14 (derived from Ubuntu 12.10), or at least the console told me so. 

However, I noticed flying by that it was configured for Lua 5.1. 

    1. Can it be configured for Lua 5.2 and if so how?

I want to use Luadist in conjunction with Lua 5.2 (latest release) embedded in an app, the NoteCase Pro outliner. http://notecasepro.com/ (.)

    2. Can I configure Luadist to do so and if so how?

Displaying my Linux ignorance, I can't find a method to uninstall Luadist. I installed with: sudo echo "$(curl -fksSL https://raw.github.com/gist/2394281/luadist.sh)" | bash 

    3. How  may I uninstall Luadist?

I suggest that answers to those questions be added to the wiki. 

Best regards,

Paul E. Merrell, J.D. 

Peter Drahoš

unread,
Mar 1, 2013, 7:44:24 PM3/1/13
to lua...@googlegroups.com
On Fri, Mar 1, 2013 at 10:27 PM, Paul Merrell <mar...@gmail.com> wrote:
Hi, All,

I've successfully installed Lustdist to Mint 14 (derived from Ubuntu 12.10), or at least the console told me so. 

However, I noticed flying by that it was configured for Lua 5.1. 

    1. Can it be configured for Lua 5.2 and if so how?

I want to use Luadist in conjunction with Lua 5.2 (latest release) embedded in an app, the NoteCase Pro outliner. http://notecasepro.com/ (.)
LuaDist itself is based on Lua 5.1, however you can use it to install Lua-5.2 into a separate directory (we call these "deployments"). Using the following command you can install latest Lua on to your Desktop

./luadist /home/myself/Desktop/lua-5.2 install lua  

Once this is done you can point LUA_CPATH and LUA_PATH environment variables into /home/myself/Desktop/lua-5.2/lib/lua as indicated by the Lua manual.

export LUA_CPATH=/home/myself/Desktop/lua-5.2/lib/lua/?.so
export LUA_PATH=/home/myself/Desktop/lua-5.2/lib/lua/?.lua

With this done the embedded Lua in notecasepro should look for modules there.


    2. Can I configure Luadist to do so and if so how?

Displaying my Linux ignorance, I can't find a method to uninstall Luadist. I installed with: sudo echo "$(curl -fksSL https://raw.github.com/gist/2394281/luadist.sh)" | bash 
No, not LuaDist itself but as mentioned above you can have a deployment that is lua-5.2 based and use LuaDist to manage it. For example:

 ./luadist /home/myself/Desktop/lua-5.2 install luafilesystem

will install luafilesystem into your lua 5.2 deployment. Please note that the number of lua 5.2 compatible modules is very limited.

    3. How  may I uninstall Luadist?
Simply delete the directory it was installed into. There are no components installed into the system, nor does this require elevated privileges.

pd
Reply all
Reply to author
Forward
0 new messages