Reputation: 157
I'm trying to compile Lua 1.1. Why? Because I can. Here's the makefile contents.
all:
(cd src; make)
(cd clients/lib; make)
(cd clients/lua; make)
clean:
(cd src; make clean)
(cd clients/lib; make clean)
(cd clients/lua; make clean)
Here's the error I get just from running make all
.
(cd src; make)
process_begin: CreateProcess((null), (cd src; make), ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [all] Error 2
Why do I get this error? I'm on WinXP-32.
Upvotes: 1
Views: 971
Reputation: 72422
Get lua-all.tar.gz which contains the source of all Lua distributions with a few changes made to make them easy to compile.
Upvotes: 3
Reputation: 29021
Because I can.
Your post begs to differ. :)
That makefile is written for Linux (which uses ';' as a command separator). The Windows command interpreter will choke on that.
You're going to need to edit those makefiles, or try the following command line (I'm using Visual Studio's command line compiler, substitute your compiler if necessary):
cl clients\lua\*.c clients\lib\*.c src\*.c -I include
Upvotes: 2