Unable to install freeswitch

322 views
Skip to first unread message

Siddharth Saha

unread,
Aug 18, 2011, 6:28:41 AM8/18/11
to Plivo Users
Hi,

I am new to Plivo and am trying to install it on Ubuntu. I have been
for almost 2 days now and every time I encounter some problems while
installing freeswitch using the procedure in the Getting started guide
on Plivo website.

I am getting this error-

Creating mod_spandsp.la
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
quiet_libtool: link: gcc -shared .libs/mod_spandsp_la-
mod_spandsp.o .libs/mod_spandsp_la-udptl.o .libs/mod_spandsp_la-
mod_spandsp_fax.o .libs/mod_spandsp_la-mod_spandsp_dsp.o .libs/
mod_spandsp_la-mod_spandsp_codecs.o -Wl,-rpath -Wl,/usr/src/
freeswitch/.libs -Wl,-rpath -Wl,/usr/local/freeswitch/lib -ljpeg /usr/
src/freeswitch/.libs/libfreeswitch.so /usr/src/freeswitch/libs/spandsp/
src/.libs/libspandsp.a /usr/src/freeswitch/libs/tiff-3.8.2/
libtiff/.libs/libtiff.a -lssl -lcrypto -lncurses -pthread -Wl,-
soname -Wl,mod_spandsp.so -o .libs/mod_spandsp.so
make[4]: *** [mod_spandsp.la] Error 1
make[3]: *** [mod_spandsp-all] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I don't know how to fix this. Can someone please help?

Thanks.

mi...@plivo.com

unread,
Aug 18, 2011, 6:32:33 AM8/18/11
to plivo...@googlegroups.com
Hi,


try :

sudo apt-get install libjpeg-dev

and run again install script.

Let me know if it worked ;)

Le Thu, 18 Aug 2011 03:28:41 -0700 (PDT),
Siddharth Saha <sidch...@gmail.com> a écrit :

Siddharth Saha

unread,
Aug 18, 2011, 6:46:58 AM8/18/11
to plivo...@googlegroups.com
Thanks. I will let you know if the script completes successfully. It is running now :)
--
-Siddharth Saha


Siddharth Saha

unread,
Aug 18, 2011, 6:55:14 AM8/18/11
to plivo...@googlegroups.com
Thanks Mike. It worked :)
--
-Siddharth Saha


Siddharth Saha

unread,
Aug 18, 2011, 7:16:33 AM8/18/11
to plivo...@googlegroups.com
Hi,

I have successfully installed Plivo but I get errors when I start plivo using <path-to-plivo>/bin/plivo start. The following is the error message which i get 

Error loading config: 'rest_server'Traceback (most recent call last):
  File "/usr/local/plivo/bin/plivo-rest", line 7, in <module>
    execfile(__file__)
  File "/usr/local/plivo/src/plivo/src/bin/plivo-rest", line 47, in <module>
    rest_server = PlivoRestServer(configfile, daemon=daemon, pidfile=pidfile)
  File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/apiserver.py", line 56, in __init__
    self.load_config()
  File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/apiserver.py", line 226, in load_config
    raise e
KeyError: 'rest_server'
Error loading config: 'outbound_server'Traceback (most recent call last):
  File "/usr/local/plivo/bin/plivo-outbound", line 7, in <module>
    execfile(__file__)
  File "/usr/local/plivo/src/plivo/src/bin/plivo-outbound", line 47, in <module>
    outbound_server = PlivoOutboundServer(configfile, daemon=daemon, pidfile=pidfile)
  File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundserver.py", line 42, in __init__
    self.load_config()
  File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundserver.py", line 119, in load_config
    raise e
KeyError: 'outbound_server'
Plivo-Rest [default] start failed
Plivo-Outbound [default] start failed
--
-Siddharth Saha


mi...@plivo.com

unread,
Aug 18, 2011, 8:44:59 AM8/18/11
to plivo...@googlegroups.com
Ok let me check this error :)


Le Thu, 18 Aug 2011 16:46:33 +0530,

mi...@plivo.com

unread,
Aug 18, 2011, 9:10:01 AM8/18/11
to plivo...@googlegroups.com
Ah,

can you reinstall from scratch :
rm -rf /usr/local/plivo
sh plivo_install_beta.sh /usr/local/plivo


I think your plivo config is outdated .


Michael


Le Thu, 18 Aug 2011 16:46:33 +0530,

Siddharth Saha

unread,
Aug 18, 2011, 9:29:42 AM8/18/11
to plivo...@googlegroups.com
Well, yes, I did that and it is now running. 

For reference, here is what I did - 
  • Kept freeswitch running
  • Installed plivo - sudo sh plivo_install_beta.sh /usr/local/plivo
  • Descended to plivo directory - cd /usr/local/plivo/bin
  • Activated the virtual environment which came with plivo - source activate (activate file is in /usr/local/plivo/bin itself)
  • Then started plivo - sudo ./plivo start which started it-
Plivo-Rest [default] started
Plivo-Outbound [default] started

The status can be obtained with sudo ./plivo status.

Thanks for the help.
--
-Siddharth Saha


mi...@plivo.com

unread,
Aug 18, 2011, 9:42:56 AM8/18/11
to plivo...@googlegroups.com
Ok =)

the weird thing is the starter plivo script must activate virtualenv :(
(in script /usr/local/plivo/bin/plivo the variable VENV_ON )

Le Thu, 18 Aug 2011 18:59:42 +0530,


Siddharth Saha <sidch...@gmail.com> a écrit :

> Well, yes, I did that and it is now running.


>
> For reference, here is what I did -
>

> - Kept freeswitch running
> - Installed plivo - sudo sh plivo_install_beta.sh /usr/local/plivo
> - Descended to plivo directory - cd /usr/local/plivo/bin
> - Activated the virtual environment which came with plivo - source


> activate (activate file is in /usr/local/plivo/bin itself)

> - Then started plivo - sudo ./plivo start which started it-

Siddharth Saha

unread,
Aug 18, 2011, 9:53:07 AM8/18/11
to plivo...@googlegroups.com
I am now trying to do something in Plivo. I am under the impression that default.conf is currently being used by plivo REST server. 

I changed the AUTH_ID and AUTH_TOKEN to siddharth and saha respectively and now I am trying to access http://siddharth:sa...@127.0.0.1:8088. But it gives me a popup saying - "You are about to log in with username but the website does not require authentication. This might be to trick you. Do you want to continue?" 

On saying Yes, it gives a 401 Unauthorized error. What is the matter?

The default.conf looks ok to me with 127.0.0.1 in the ALLOWED_IPS. I have also restarted plivo after changing the default.conf. Doesn't seem to work.
--
-Siddharth Saha


mi...@plivo.com

unread,
Aug 18, 2011, 10:25:20 AM8/18/11
to plivo...@googlegroups.com
Yes it's the normal way because you can't use GET for accessing REST api .

The best way (and easy way) is to use one of the plivo helper library :

http://www.plivo.org/docs/helper-libraries/

and using your AUTH_ID and AUTH_TOKEN in it .

Le Thu, 18 Aug 2011 19:23:07 +0530,


Siddharth Saha <sidch...@gmail.com> a écrit :

> I am now trying to do something in Plivo. I am under the impression that


> default.conf is currently being used by plivo REST server.
>

> I changed the AUTH_ID and AUTH_TOKEN to *siddharth* and *saha* respectively

drawa54

unread,
Jun 19, 2012, 10:28:38 AM6/19/12
to plivo...@googlegroups.com
This post is very helpful, thanks. Now waiting to see how Saha got on before I try.

Saltriver Saltriver

unread,
Jun 21, 2012, 6:46:57 AM6/21/12
to plivo...@googlegroups.com
Hello,,
   
         You need to update the ubuntu os.
Reply all
Reply to author
Forward
0 new messages