You know, this problem has confounded me from the very beginning. I've taken a few computer programming courses in my life. And way back in the old old days when I had a TI-64, I had a tape cassette player as my drive and a wonderful language called basic. I saved my programs on my tape drive and loaded them back up and it was an easy thing to run my programs.
Nowadays, though, you have to use a stupid compiler or some such. You can't just type up your program and run it. Anyway, I could never get any of these compiler things to work right because, well, the instructions were never very good.
In college we used Lynix, but I don't much remember the command lines from back then anyway. Maybe if I could find the old book we used in the attic - - somewhere - - if it even is there.
So, here I am trying to learn a little lua, cause I'm impatient for other people to do the things I want to see done. I have my book, Programming in Lua and I want to do some of the things the little book is talking about just to make sure that I understand what is going on.
Well, I don't have lua on my computer. I have a lue editor (luaedit) that will run stuff somehow or nother, but it's just not quite the same thing. I want to run the "stand alone interpretor" that they use in the book. Well, I go to the lua site and download the download there, look around through the files and realize that there is no .exe files there for me to run. I go back and look at the lua site, and OHHH, I've got to COMPILE it.
Well, OK, internet is a bigger and better place these days, I will just download a compiler. So I find this GCC thing and decide I will download it. I do so, and look at the installation requirements.
Well, I need a compiler to compile gcc because it turns out this compiler can't just"bootstrap" itself. GREAT.
I tried out this thing called Cygwin, and I did manage to get a prompt, but when I would type GCC, it didn't know where it was and sheesh, I'm not sure what to do with it anyway.
So anyway, I go to minGW, a newer alternative to Cygwin. They have something called minSys that actually has an .exe installation file on it. I do that, but alas . . . Ihave to somehow get that to work with minGW before it will work.
I look through countless faqs, installation instructions, etc, but in not a single one do I find a step-by-step type in this to do that instruction guide. It is always very vague and presumes knowledge that, sadly, I just don't have.
ALL I want to do is get Lua 5.0 working on my computer so I can do all (well at least some of) the nifty things they talk about in the book Programming in Lua."
So please, could somebody please guide me through as though I were a blind man in a dangerous obstacle course, give me a step by step, blow by blow guide to getting this lua interpreter up and running.
Unzip it to a shared location (such as c:\windows).
Create a test.lua in notepad.
Put something like this in it;
print("Hello World!")
Save it and close it.
Go to your test lua in a command-prompt (you'll need a fundamental knowledge of the command-prompt system for this, prior DOS experience helps but you can find tutorials online).
Do the following;
lua -l test.lua
And there you go.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Nowadays, though, you have to use a stupid compiler or some such. You can't just type up your program and run it. Anyway, I could never get any of these compiler things to work right because, well, the instructions were never very good.
In college we used Lynix, but I don't much remember the command lines from back then anyway. Maybe if I could find the old book we used in the attic - - somewhere - - if it even is there.
So, here I am trying to learn a little lua, cause I'm impatient for other people to do the things I want to see done. I have my book, Programming in Lua and I want to do some of the things the little book is talking about just to make sure that I understand what is going on.
Well, I don't have lua on my computer. I have a lue editor (luaedit) that will run stuff somehow or nother, but it's just not quite the same thing. I want to run the "stand alone interpretor" that they use in the book. Well, I go to the lua site and download the download there, look around through the files and realize that there is no .exe files there for me to run. I go back and look at the lua site, and OHHH, I've got to COMPILE it.
Well, OK, internet is a bigger and better place these days, I will just download a compiler. So I find this GCC thing and decide I will download it. I do so, and look at the installation requirements.
Well, I need a compiler to compile gcc because it turns out this compiler can't just"bootstrap" itself. GREAT.
I tried out this thing called Cygwin, and I did manage to get a prompt, but when I would type GCC, it didn't know where it was and sheesh, I'm not sure what to do with it anyway.
So anyway, I go to minGW, a newer alternative to Cygwin. They have something called minSys that actually has an .exe installation file on it. I do that, but alas . . . Ihave to somehow get that to work with minGW before it will work.
I look through countless faqs, installation instructions, etc, but in not a single one do I find a step-by-step type in this to do that instruction guide. It is always very vague and presumes knowledge that, sadly, I just don't have.
ALL I want to do is get Lua 5.0 working on my computer so I can do all (well at least some of) the nifty things they talk about in the book Programming in Lua."
So please, could somebody please guide me through as though I were a blind man in a dangerous obstacle course, give me a step by step, blow by blow guide to getting this lua interpreter up and running.
http://lua-users.org/wiki/LuaBinaries
Grab the windows binary package.
Unzip it to a shared location (such as c:\windows).
Create a test.lua in notepad.
Put something like this in it;
print("Hello World!")
Save it and close it.
Go to your test lua in a command-prompt (you'll need a fundamental knowledge of the command-prompt system for this, prior DOS experience helps but you can find tutorials online).
Do the following;
lua -l test.lua
And there you go.