lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Now I have it.

1) the C code and/or Lua code should do something like

assert(VERSION == "Lua5.1", "this version requires 5.1")

or

assert(VERSION == "Lua5.1" or VERSION == "Lua5.0,2",
  "this version requires 5.0.2 or 5.1")


2) What you are referring to at the end of the day is a name of a tarball or
zip file. Yes? Anecdotally the most common error I hear of with lua
packages is that they grab the wrong version of the tarball.

Why not like linux or MS and have:

luasocket-2.0-lua5.1.tar.gz
luasocket-2.0-lua5.2.tar.gz
luasocket-2.0-lua5.3.tar.gz

Using zlib as an example, it gets installed as libz.a

The fedora (as an example) tarball is something like zlib-1.4-i386.tar.gz

The above should solve the problem.

or do I still miss it?

DB