lua - Installing luarocks to use both lua5.1 and luajit on Ubuntu -
i want able run luarocks-jit install x
, have newly installed rock use luajit it's interpreter. ultimately, i'm trying run busted tests through luajit.
here's i've tried:
current versions of luarocks have "--lua-version" flag in configure script, accepts "5.1" or "5.2", no dice there. i've thought editing script accept "jit" well, haven't done yet.
i've tried follow wiki page, written different os , i'm suspicious it's out of date couple of reasons:
- i can't find documentation lot of variables references (lua_bindir, etc)
- the scripts @ /usr/local/bin/luarocks5.1 on machine totally different on page.
- the config-x.lua files shown on page rather different have installed.
actually though, i'm having on unfortunately old version of ubuntu (7.10) perhaps it's more system that's out of date. either way, couldn't luarocks-jit working.
thanks help.
nevermind, after messing luarocks configure script realized luajit lua5.1 in lot of ways. ./configure --lua-suffix=jit --with-lua=/usr seems work on system.
Comments
Post a Comment