On 12 Mar, 2013, at 15:24 , MC <
macha...@gmail.com> wrote:
> I'm simply working through the installation instructions on a system with no dev tools installed (other than VS2010, but that's another story...) and have a question:
>
> On the installation instructions page (
https://github.com/LuaDist/Repository/wiki/LuaDist%3A-Installation), under the Building with MinGW section, after working through the MinGW and CMake installations (both perfectly documented on the Installation of System Dependencies page, btw), I get to:
>
> Building LuaDist can now be started using the build.bat script. Simply extract sources and run:
>
> cd unpacked\l
> uadist
> bootstrap.bat
Binaries != source, the install page suggests to use git to obtain the source of LuaDist/bootstrap[1] and all its submodules. The step is marked as optional, however GitHub removed the Download section recently which actually contained the sources referred to in the install page. If you use git to get the sources the install guide is spot on.
> I've downloaded and unpacked the Binaries, and I assume there's no build.bat or bootstrap.bat because the purpose of the binaries package is to provide them pre-built. But shouldn't we say that somewhere?
Binaries are pre-built and contain many useful modules (hence + batteries). However you can use the Binaries to avoid the bootstrap process and use bin/luadist.exe to build from source or download other binary packages.
For example run cmd:
$ cd LD/bin
$ luadist list
That will list of all installed modules inside the LD directory. We call that directory the "deployment" directory. The fun begins when you realize you can have multiple deployment directories per project or just use one.
$ luadist C:\lua-5.2 install lua
This will install only latest lua to the specified deployment directory which can be used for 5.2 based projects
$ luadist C:\lua-5.2 install luasocket
Will add luasocket to that deployment directory
$ luadist C:\LuaDist install luadist-git -source -binary=false
This replicates the functionality of bootstrap as it will install Lua and the luadist utility into a new deployment at C:\LuaDist. Now you could use the latest C:\LuaDist\bin\luadist instead of the one you used to install it
$ luadist install luaexpat
Running without any path specified will always install modules into the deployment directory luadist was started from, keeping everything in one place
> I'm just wondering if the top page should be an example of how to create and build a deployment package of "hello world" to cut down on some of the confusion. (I'm trying to approach this from the complete beginner viewpoint - the installation page does instruct Windows users to build it, but only after you've been provided pre-built binaries in the download shown above, right?
No binaries are needed for that, however the install page lists the git checkout stage as (optional) which it no longer is, the instructions need minor updates .. thanks for pointing that out.
pd