what is problem ::: mod_lua.cpp:198 pela.lua:30: module 'c

Moderator: areski

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

Postby serhat » Fri Mar 22, 2013 2:55 pm

How can I disable Acapela ? for workaround
serhat
 
Posts: 49
Joined: Sat Feb 18, 2012 5:25 pm

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

Postby areski » Sun Mar 24, 2013 10:14 am

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.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

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

Postby cxavier » Sun Mar 24, 2013 2:44 pm

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 ?
cxavier
 
Posts: 2
Joined: Wed Mar 20, 2013 4:43 pm

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

Postby areski » Sun Mar 24, 2013 7:31 pm

Hi Carlos,

Can you contact me directly ?
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

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

Postby cxavier » Mon Mar 25, 2013 4:31 pm

Do you want by email or by phone ?
cxavier
 
Posts: 2
Joined: Wed Mar 20, 2013 4:43 pm

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

Postby areski » Mon Mar 25, 2013 5:35 pm

email
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

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

Postby jsuwala » Thu Mar 28, 2013 8:21 am

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
jsuwala
 
Posts: 2
Joined: Thu Mar 28, 2013 1:00 am

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

Postby areski » Thu Mar 28, 2013 10:20 am

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
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

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

Postby jsuwala » Thu Mar 28, 2013 5:39 pm

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
jsuwala
 
Posts: 2
Joined: Thu Mar 28, 2013 1:00 am

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

Postby areski » Thu Mar 28, 2013 6:06 pm

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
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 21 guests

cron