lua-users home
lua-l archive

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


<snip>
> That works.
> 
> > or, even better, just use the files as installed by luarocks and do nothing,
> > but issue `lua5.1 -lluarocks.loader`. Can you please try that and see if it
> > works?
> >  
> And so does that.

Great, thanks!

> > > 5.2  $ sudo mkdir /usr/local/lua/5.2/numlua
> > >      $ sudo cp numlua.so /usr/local/lua/5.2
> > >      $ sudo cp *.lua /usr/local/lua/5.2/numlua
> > 
> > luarocks does not work with 5.2 out of the box, but you can fool it into
> > building a 5.2 module by installing luarocks using
> > 
> > $ ./configure --with-lua-include=/usr/local/include --with-lua-lib=/usr/local/lib
> > 
> Not that simple.  luarocks, even luarocks 2.0.5, makes use of setfenv.

Sorry, I wasn't clear; I meant compiling luarocks still using Lua 5.1, but
specifying --with-lua-include to the dir where Lua 5.2 is installed so that
5.2's lua.h is used to build modules. You still have to manually install the
files though.

Cheers,
Luis

-- 
Computers are useless. They can only give you answers.
                -- Pablo Picasso

-- 
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'