|Importing Rocks [message #1023830]
||Mon, 25 March 2013 05:11
| Nick Scott
Registered: March 2013
This is definitely a newbie rant but please indulge me and be assured that any help which can be provided is much appreciated.|
I have recently decided to learn Lua and the work of the Eclipse M2M Group seems like a good starting point. To that end I've installed Koneki and, after getting the Hello World application to work, I decided to try and add a library.
So I've installed LuaRocks, and pull down LuaSocket. But the line 'require "socket"' works fine in my command line but not in Koneki.
I realise that this is a path issue but, after a day spent trying to fix it, I'm just frustrated. I can't be the only one struggling with this (in fact, someone else has already made a post here on this matter).
As an observation, for a new comer, Koneki configuration can be very confusing (I realise this is partly just a hangover from Eclipse). I've tried adding a library, adding a project, adding source, configuring an External Tool, changing the Executable Environment and defining my own Interpreter. I don't really understand what the difference between all these things is and I'd really like to be able to just point Koneki at the folder which LuaRocks is using.
More specifically, in the tentative plan for Koneki, it was stated that in Q3 2011 "Improve Lua Tooling: LuaRocks support" would be provided. Does any one know if that's been done? Does any one know of any documentation on it?
|Re: Importing Rocks [message #1025952 is a reply to message #1023830]
||Tue, 26 March 2013 07:21
| Kevin KIN-FOO
Registered: January 2010
Thanks for your constructive feedback.
As I am writing they is no UI available to configure native libraries nor rocks.
We may have something even better: the ability to use your system lua interpreter.
Your system interpreter is tightly tied to LuaRocks and enable you to manage your own $LUA_PATH.
require 'socket' did not work because in order to have it all working out of the box, we use a custom interpreter by default.
You said feeling confused about some concepts of Koneki LDT. I know some documentation on them.
 Manage local interpreters
 Concepts: interpreters
[Updated on: Tue, 26 March 2013 09:04]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.15908 seconds