* [gentoo-user] Problems lua/luarocks
@ 2012-06-19 18:02 meino.cramer
2012-06-20 21:30 ` Michael Scherer
0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2012-06-19 18:02 UTC (permalink / raw
To: Gentoo
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] Problems lua/luarocks
2012-06-19 18:02 [gentoo-user] Problems lua/luarocks meino.cramer
@ 2012-06-20 21:30 ` Michael Scherer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Scherer @ 2012-06-20 21:30 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-20 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 18:02 [gentoo-user] Problems lua/luarocks meino.cramer
2012-06-20 21:30 ` Michael Scherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox