Can someone list the steps I would need to take to put a lua file (theclass.lua) somewhere on my system so that I can do this:
require 'theclass'
and the compiler will find it without having to copy theclass into every directory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The list of places you may put it is part if the error message you receive:
Lua consults at least three places for the list of directories to search:
The C
LUA_PATHin the configuration headerThe Lua global
LUA_PATHThe environment variable
LUA_PATHSee PiL