[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Concurrent 5.1 and 5.2 installation
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 21 Aug 2012 06:32:36 +0200
2012/8/20 Jerome Vuarand <jerome.vuarand@gmail.com>:
> I'd like to know how others solved (or didn't solve) that problem: how
> to make Lua 5.1 cohabitate with Lua 5.2 on the "system" (whatever the
> system is)?
It's only a problem when building libraries written in C, since Lua's own
package management is version-aware. I do this in the Makefile (no C
project is too small for a Makefile).
When making a new Makefile, I copy this stub to the new file before
starting to edit in the new stuff:
-----
# Configuration: LUA must point to your Lua 5.1 or 5.2 include directory
# and (if 5.1) the corresponding compiler definition should appear in CC
#LUA=/usr/include/lua5.1
#CC=cc -DLUA_5_1
LUA=/usr/local/include/
LIB=/usr/local/lib/lua/5.2
CC=cc
-----
Yes, the Debian underskirt is showing :-)