Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » External Lib : Lua LOOP not running
External Lib : Lua LOOP not running [message #1416750] Mon, 03 December 2012 20:04 Go to next message
Thomas Winkler is currently offline Thomas WinklerFriend
Messages: 23
Registered: July 2009
Junior Member
Hello,


I am new to LDT ( using version 0.9) under Debian Linux and I like it so far.
I can run Lua files within the LDT and it shows the output in the console.

However, if I use external libraries, errors will appear when trying to run them.

For example I tried to use the http://loop.luaforge.net/index.html :


local oo = require "loop.base"



I installed LOOP via LuaRocks and I can run classes based on LOOP without any problems on the Linux Shell.

However, running it in Linux will cause the following error message :

Quote:
> Exception in thread "main" com.naef.jnlua.LuaRuntimeException: /home/dev/lua/src/main.lua:1: module 'loop.base' not found:
> no field package.preload['loop.base']
> no file '/home/dev/lua/src/loop/base.lua'
> no file '/home/dev/lua/src/loop/base/init.lua'
> no file '/home/dev/lua/src/loop/base.luac'
> no file '/home/dev/lua/src/loop/base/init.luac'
> no file './loop/base.so'
> no file '/usr/local/lib/lua/5.1/loop/base.so'
> no file '/usr/lib/lua/5.1/loop/base.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> no file './loop.so'
> no file '/usr/local/lib/lua/5.1/loop.so'
> no file '/usr/lib/lua/5.1/loop.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> at com.naef.jnlua.LuaState.lua_pcall(Native Method)
> at com.naef.jnlua.LuaState.call(LuaState.java:555)
> at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLuaLauncher.run(JNLuaLauncher.java:122)
> at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLuaLauncher.main(JNLuaLauncher.java:137)


How can I fix it so that I can use LDT for LOOP-based lua files, too.
Re: External Lib : Lua LOOP not running [message #1416751 is a reply to message #1416750] Tue, 04 December 2012 10:50 Go to previous message
Kevin KIN-FOO is currently offline Kevin KIN-FOOFriend
Messages: 28
Registered: July 2009
Junior Member
Hi,

It sounds like there is a difference between the $LUA_PATH available from your terminal and the one available from where you run Koneki LDT.
Do you modify your $LUA_PATH in your .bashrc?
You can check this easily by running the following from shell and from a Koneki LDT project.
print( package.path )
If outputs differ, Koneki LDT and shell do not use same $LUA_PATH.
I think you might either uniform your $LUA_PATH or http://wiki.eclipse.org/Koneki/LDT/Developer_Area/User_Guides/User_Guide_0.9#Managing_Interpreters.

Kevin
Previous Topic:How to Document Module's Local Function
Next Topic:LDT debugging the L
Goto Forum:
  


Current Time: Wed Nov 14 18:05:46 GMT 2018

Powered by FUDForum. Page generated in 0.02433 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top