FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-19-2012, 06:02 PM
 
Default Problems lua/luarocks

Hi,

I got some problems with lua and its package manager called
"luarocks". From the lua mailing list I got the information,
that luarocks normall installs lua module/packages/"rocks"
below /usr/local ... a place lua will look for, when adviced
to use a certain module.

With Gentoo, luarocks was fixed to install below
/usr/lib64/lua/luarocks/lib/luarocks/rocks
but lua wasn't instructed to do the same.

Regardless what "rocks" I am installing, lua won't find
it. So what can I do to fix that?

Thank you very much for any help in advance!
Best regards,
mcc
 
Old 06-20-2012, 09:30 PM
Michael Scherer
 
Default Problems lua/luarocks

On Tue, 19 Jun 2012 20:02:20 +0200
meino.cramer@gmx.de wrote:

> Hi,
>
> I got some problems with lua and its package manager called
> "luarocks". From the lua mailing list I got the information,
> that luarocks normall installs lua module/packages/"rocks"
> below /usr/local ... a place lua will look for, when adviced
> to use a certain module.
>
> With Gentoo, luarocks was fixed to install below
> /usr/lib64/lua/luarocks/lib/luarocks/rocks
> but lua wasn't instructed to do the same.
>
> Regardless what "rocks" I am installing, lua won't find
> it. So what can I do to fix that?
>
> Thank you very much for any help in advance!
> Best regards,
> mcc
>
>
>
>
>

I built a simple module, called by a likewise simple program.
after some searching around I found that by setting LUA_PATH with

export LUA_PATH=/usr/lib64/lua/luarocks/share/lua/5.1/?.lua;

I succeeded in running program + module.

I don't know, though, wether this works in more complicated
projects, but you might give it a try. If it works, you should
set LUA_CPATH too (if you want to include C-modules).

regards, michael
 

Thread Tools




All times are GMT. The time now is 08:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org