Page 2 of 2

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Fri Mar 22, 2013 2:55 pm
by serhat
How can I disable Acapela ? for workaround

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Sun Mar 24, 2013 10:14 am
by areski
Acapela is the only part using curl, so perhaps...
Nevertheless this is a configuration issue, there is no reasons why you shouldn't find a way to solve curl module on lua.

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Sun Mar 24, 2013 2:44 pm
by cxavier
Well I'm having the exactely same issue ... Made a couple of installation and all off them occur the same ...

no file './curl.lua'
no file '/usr/local/share/lua/5.1/curl.lua'
no file '/usr/local/share/lua/5.1/curl/init.lua'
no file '/usr/local/lib/lua/5.1/curl.lua'
no file '/usr/local/lib/lua/5.1/curl/init.lua'
no file '/usr/share/newfies-lua/curl.lua'
no file '/usr/share/newfies-lua/libs/curl.lua'
no file '/usr/share/newfies-lua/curl.lua'
no file '/usr/share/newfies-lua/libs/curl.lua'
no file '/usr/share/newfies-lua/curl.lua'
no file '/usr/share/newfies-lua/libs/curl.lua'
no file '/usr/share/newfies-lua/curl.lua'
no file '/usr/share/newfies-lua/libs/curl.lua'
no file '/usr/lib/x86_64-linux-gnu/curl.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/curl.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/curl.so'
no file '/usr/local/lib/lua/5.1/curl.so'

for some reason those files are not there the directory is not present...

like this one the system required the directory /usr/lib/x86_64-linux-gnu/lua/5.1/curl.so and it is installed at /usr/lib/i386-linux-gnu/lua/5.1/curl.so
also the directory /usr/lib/i386_64-linux-gnu and the directory /usr/lib/i386_64-linux-gnu/lua/5.1/luasql/ doen't have the 'curl.so'.

The ubuntu server is the follwing

login as: root
root@192.168.10.138's password:
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 2.6.32-16-pve i686)

I tryed do this:

root@dialer-2-0:~# apt-get install curl.lua
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package curl.lua
E: Couldn't find any package by regex 'curl.lua'

I found a repository tha has some lua packages:

http://packages.ubuntu.com/source/hardy/lua-curl
http://packages.ubuntu.com/source/lucid/lua-curl
http://packages.ubuntu.com/source/oneiric/lua-curl
http://packages.ubuntu.com/source/precise/lua-curl
http://packages.ubuntu.com/source/quantal/lua-curl
http://packages.ubuntu.com/source/raring/lua-curl

But I'm not sure if they are the write files to use.

Do you have any idea ?

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Sun Mar 24, 2013 7:31 pm
by areski
Hi Carlos,

Can you contact me directly ?

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Mon Mar 25, 2013 4:31 pm
by cxavier
Do you want by email or by phone ?

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Mon Mar 25, 2013 5:35 pm
by areski
email

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Thu Mar 28, 2013 8:21 am
by jsuwala
I had this exact same problem on my installation of Newfies Dialer. My FreeSwitch CLI was constantly reporting that curl could not be found when running the Lua scripts. Most interestingly, it wasn't a problem that acapela was enabled (it wasn't) - the parsing of the 'require(curl)' in the acapela.lua file was enough to cause everything to stop working.

After digging into this for a while, I found that the problem was that lua was looking in the wrong places for the lua curl library.

Using 'locate curl.so', I found that the library was in '/usr/lib/i386-linux-gnu/lua/5.1/curl.so', and that the path '/usr/lib/i386-linux-gnu/lua/5.1/' wasn't being searched at all.

So the solution I found was to edit the '/usr/local/freeswitch/conf/autoload_configs/lua.conf.xml' file, and add the following line (under the <settings> tag)
Code: Select all
<param name="module-directory" value="/usr/lib/i386-linux-gnu/lua/5.1/?.so"/>


I then restarted freeswitch and Newfies Dialer started working!

I hope this helps anyone else who runs into this problem.

- Jason

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Thu Mar 28, 2013 10:20 am
by areski
Thanks for the input Jason, we use to test on 64bits and we might have missed that correct path.
I just brought a correcting in our install script so that it will be solved at installation time.

Yours,
/Areski

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Thu Mar 28, 2013 5:39 pm
by jsuwala
areski wrote:I just brought a correcting in our install script so that it will be solved at installation time.

Hey Areski: the 64 vs 32 bit problem is all over the place - it's good to take it into consideration in the install script.

One comment on the install script: it's really really really annoying that the current install script deletes any existing install of Apache. And it does it without confirmation. This has caused us lots of delays on other projects because Apache was blown away by your install script.

- Jason

Re: what is problem ::: mod_lua.cpp:198 pela.lua:30: modul

PostPosted: Thu Mar 28, 2013 6:06 pm
by areski
Hi Jason,

Our install script is made to install Newfies-Dialer on a dedicate server, with a new Ubuntu 12.04 LTS installed.
We won't support installation on system that are running other applications.

For your information, Newfies-Dialer will run perfectly on VM, if you cannot spare a dedicate server for it.

Yours,
/Areski