On 11 Apr, 2013, at 11:27 , Andrew Starks <
andrew...@trms.com> wrote:
> I was contemplating the use of this for a project at work. I got hung up on trying to deploy it on windows with Lua 5.2. It said, in effect, that there was a conflict with the installed 5.1.x and I couldn't get bootstrap to run with 5.2. In the limited time that I had, I also couldn't figure out how to get the thing to spawn an alternate tree with 5.2 and required dists.
The luadist-git CLI app is bound to lua-5.1.5 by luasocket which has not yet been updated to support Lua 5.2. Therefore the default deployment directory LuaDist uses contains lua-5.1.5 which ends up in conflict with lua-5.2. You can however use luadist to install to a different (empty) deployment directory that will pull in the latest lua it can for the given packages you want to install.
Typically:
# By default LuaDist uses deployment directory LuaDist is in
> luadist list
# Lists installed modules, contains lua-5.1.5
> luadist install lua-5.2.2
# Conflict with installed lua-5.1.5
Solution, specify a destination:
# use ~/my_lua as the target installation destination which should be empty
> luadist ~/my_lua list
# Nothing is installed, empty listing
> luadist ~/my_lua install lua-5.2.2
# Install should succeed
> Is that where things are at or did I just mess something up?
You did not. LuaDist prevented you from replacing the lua-5.1.5 which it relies on to lua-5.2.2 which would render it unusable.
There are two solutions to this .. the above approach allows you to install to different destinations whatever you want. The second solution is to update luasocket and luadist-git to support lua-5.2. The later is planned after batteries for lua 5.1.5 have been released.
pd