[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luac & 5.2?
- From: Petite Abeille <petite.abeille@...>
- Date: Fri, 30 Mar 2012 23:22:05 +0200
Hello,
In 5.1, I use luac to compile all my lua source files into one binary, which I then run in one swell step. All good.
In 5.2, the same process doesn't seem to work any longer.
Specifically, I use the fellowing makefile:
http://dev.alt.textdrive.com/browser/HTTP/Makefile
Which invokes luac the following way:
luac -o Nanoki.luac pre.lua debugx.lua HTTP.lua HTTPExtra.lua Template.lua URL.lua Wiki.lua WikiDate.lua WikiFinder.lua WikiRecent.lua WikiSearch.lua WikiService.lua Bundle.lua Cache.lua Config.lua DB.lua Data.lua Diff.lua File.lua Finder.lua IPLocation.lua IPMnemonic.lua Ident.lua MIME.lua NaturalComparator.lua TCPServer.lua Token.lua Trie.lua Unidecode.lua WikiAbout.lua WikiContent.lua WikiContentFileService.lua WikiContentService.lua WikiControlService.lua WikiDAV.lua WikiDateService.lua WikiDateNavigation.lua WikiDiffService.lua WikiEditorService.lua WikiFeed.lua WikiFileService.lua WikiIndex.lua WikiIndexService.lua WikiIndexNavigation.lua WikiMainService.lua WikiMessage.lua WikiPath.lua WikiPreview.lua WikiRecentService.lua WikiRevisionService.lua WikiSearchService.lua WikiVersionService.lua XML.lua base64.lua Nanoki.lua
But now when running the resulting Nanoki.luac in 5.2, I get the following exception:
$ lua Nanoki.luac . 0 1080
lua: HTTP.lua:12: attempt to call global 'require' (a nil value)
stack traceback:
HTTP.lua:12: in main chunk
(luac): in main chunk
[C]: in ?
For the record, running the above directly out of the lua source file does work as expected (i.e. 'require' hasn't suddenly disappeared).
Would anyone have an educated guess as to what went wrong?
Thanks in advance.
--