lua-users home
lua-l archive

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


I assume you've a good reason for banging your head against rocks
instead of just installing luasocket?

aptitude install liblua5.1-socket2

On Sat, Aug 6, 2011 at 11:03 PM, Steve Litt <slitt@troubleshooters.com> wrote:
> So, for Ubuntu 11.04, where must I tell
> ./configure to put the rocks?

I've never used rocks, but if you want lua5.1 on ubuntu to find the
rocks automatically, you'd need the modules
to appear in one of the paths it uses:

% lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> print(package.path)
./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua
> print(package.cpath)
./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so

Cheers,
Sam