Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Mod_v8 issues - build 1.10.6


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
john.hardiman at missi...
Guest





PostPosted: Thu Jul 01, 2021 9:25 am    Post subject: [Freeswitch-users] Mod_v8 issues - build 1.10.6 Reply with quote

Hi All,

I hope you can help with something I have noticed.

Current build is below and I am looking to use some scripting with v8 (javascript is required here), but I am hitting a whole host of issues with just trying to get mod_v8 installed. The rest of the software I have tried is perfect and has been for a few days.

Ubuntu 20.04 server – latest and upto date.
FreeSWITCH build 1.10.6

Here is my debug and steps taken, but I am at a loss currently so any help would be appreciated here.

Am I missing something simple here?

Many Thanks,

John.



From the documentation: https://freeswitch.org/confluence/display/FREESWITCH/mod_v8

"
Build/Install
mod_v8 is built and installed by default as of revision b76233266931ca0b53f3bcc589277b972d714216.

If for some reason it's not, do the following:

Uncomment languages/mod_v8 in modules.conf in your src directory (make it always build and install mod_v8)
Run 'make mod_v8-install' to make and install just the v8 module
Edit conf/autoload_configs/modules.conf.xml in your FreeSWITCH™ install directory to load mod_v8
In fs_cli, run "load mod_v8"
"

If you uncomment it from the autoload_configs/modules.conf.xml and reloadxml then you won't get any errors, but as the module doesn't exist, if you try to do a javascript command from fs_cli it will give you an error:

"-ERR javascript Command not found!"

Running through the 'make mod_v8-install' throws some errors about:
"
making install mod_v8
make[2]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
make install-am
make[3]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
CXX mod_v8_la-mod_v8.lo
In file included from mod_v8.h:36,
from mod_v8.cpp:68:
./include/javascript.hpp:35:10: fatal error: v8.h: No such file or directory
35 | #include <v8.h>
| ^~~~~~
compilation terminated.
"

Trying to recompile with: "sudo ./configure -C" throws the below errors:

"
checking for v8-6.1_static >= 6.1.298... checking for v8fs_static >= 6.1.298... checking for v8 >= 6.1.298... configure: error: You need to either install libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298) or disable mod_v8 in modules.conf
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email])
"

On Ubunutu and Debian this is libv8-dev and is installed.

root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email]) sudo apt-get install libv8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libnode-dev' instead of 'libv8-dev'
libnode-dev is already the newest version (10.19.0~dfsg-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email])
Back to top
andywolk at gmail.com
Guest





PostPosted: Thu Jul 01, 2021 9:53 am    Post subject: [Freeswitch-users] Mod_v8 issues - build 1.10.6 Reply with quote

We don't have libv8 for Ubuntu.
You should try building libv8 packages from here: https://github.com/freeswitch/libv8-packaging

git clone https://github.com/freeswitch/libv8-packaging


apt-get install cdbs git dos2unix lsb-release build-essential curl wget python devscripts libglib2.0-dev pkg-config
apt-get install libtinfo5


cd libv8-packaging/linux

make build DEBUILD=debuild



чт, 1 июл. 2021 г. в 16:29, John Hardiman <john.hardiman@missionlabs.co.uk (john.hardiman@missionlabs.co.uk)>:

Quote:

Hi All,
 
I hope you can help with something I have noticed.
 
Current build is below and I am looking to use some scripting with v8 (javascript is required here), but I am hitting a whole host of issues with just trying to get mod_v8 installed. The rest of the software I have tried is perfect and has been for a few days.
 
Ubuntu 20.04 server – latest and upto date.
FreeSWITCH build 1.10.6
 
Here is my debug and steps taken, but I am at a loss currently so any help would be appreciated here.
 
Am I missing something simple here?
 
Many Thanks,
 
John.
 
 
 
From the documentation: https://freeswitch.org/confluence/display/FREESWITCH/mod_v8
 
"
Build/Install
mod_v8 is built and installed by default as of revision b76233266931ca0b53f3bcc589277b972d714216.
 
If for some reason it's not, do the following:
 
Uncomment languages/mod_v8 in modules.conf in your src directory (make it always build and install mod_v8)
Run 'make mod_v8-install' to make and install just the v8 module
Edit conf/autoload_configs/modules.conf.xml in your FreeSWITCH™ install directory to load mod_v8
In fs_cli, run "load mod_v8"
"
 
If you uncomment it from the autoload_configs/modules.conf.xml and reloadxml then you won't get any errors, but as the module doesn't exist, if you try to do a javascript command from fs_cli it will give you an error:
 
"-ERR javascript Command not found!"
 
Running through the 'make mod_v8-install' throws some errors about:
"
making install mod_v8
make[2]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
make  install-am
make[3]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
  CXX      mod_v8_la-mod_v8.lo
In file included from mod_v8.h:36,
                 from mod_v8.cpp:68:
./include/javascript.hpp:35:10: fatal error: v8.h: No such file or directory
   35 | #include <v8.h>
      |          ^~~~~~
compilation terminated.
"
 
Trying to recompile with: "sudo ./configure -C" throws the below errors:
 
"
checking for v8-6.1_static >= 6.1.298... checking for v8fs_static >= 6.1.298... checking for v8 >= 6.1.298... configure: error: You need to either install libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298) or disable mod_v8 in modules.conf
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email])
"
 
On Ubunutu and Debian this is libv8-dev and is installed.
 
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email]) sudo apt-get install libv8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libnode-dev' instead of 'libv8-dev'
libnode-dev is already the newest version (10.19.0~dfsg-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release#[/email])
 
 
 
 
 
 

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
john.hardiman at missi...
Guest





PostPosted: Thu Jul 01, 2021 3:09 pm    Post subject: [Freeswitch-users] Mod_v8 issues - build 1.10.6 Reply with quote

Thanks Andrey,

I tried to make it work but ran into the same issues.

So I changed to Debian buster (as mentioned in the documentation) and it works without issue now.

Thank you for the quick response though.

Speak soon,

John.

From: Andrey Volk <andywolk@gmail.com>
Sent: 01 July 2021 14:37
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Mod_v8 issues - build 1.10.6


We don't have libv8 for Ubuntu.
You should try building libv8 packages from here: https://github.com/freeswitch/libv8-packaging


git clone https://github.com/freeswitch/libv8-packaging



apt-get install cdbs git dos2unix lsb-release build-essential curl wget python devscripts libglib2.0-dev pkg-config
apt-get install libtinfo5



cd libv8-packaging/linux


make build DEBUILD=debuild



чт, 1 июл. 2021 г. в 16:29, John Hardiman <john.hardiman@missionlabs.co.uk (john.hardiman@missionlabs.co.uk)>:
Quote:

Hi All,

I hope you can help with something I have noticed.

Current build is below and I am looking to use some scripting with v8 (javascript is required here), but I am hitting a whole host of issues with just trying to get mod_v8 installed. The rest of the software I have tried is perfect and has been for a few days.

Ubuntu 20.04 server – latest and upto date.
FreeSWITCH build 1.10.6

Here is my debug and steps taken, but I am at a loss currently so any help would be appreciated here.

Am I missing something simple here?

Many Thanks,

John.



From the documentation: https://freeswitch.org/confluence/display/FREESWITCH/mod_v8

"
Build/Install
mod_v8 is built and installed by default as of revision b76233266931ca0b53f3bcc589277b972d714216.

If for some reason it's not, do the following:

Uncomment languages/mod_v8 in modules.conf in your src directory (make it always build and install mod_v8)
Run 'make mod_v8-install' to make and install just the v8 module
Edit conf/autoload_configs/modules.conf.xml in your FreeSWITCH™ install directory to load mod_v8
In fs_cli, run "load mod_v8"
"

If you uncomment it from the autoload_configs/modules.conf.xml and reloadxml then you won't get any errors, but as the module doesn't exist, if you try to do a javascript command from fs_cli it will give you an error:

"-ERR javascript Command not found!"

Running through the 'make mod_v8-install' throws some errors about:
"
making install mod_v8
make[2]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
make install-am
make[3]: Entering directory '/usr/src/freeswitch-1.10.6.-release/src/mod/languages/mod_v8'
CXX mod_v8_la-mod_v8.lo
In file included from mod_v8.h:36,
from mod_v8.cpp:68:
./include/javascript.hpp:35:10: fatal error: v8.h: No such file or directory
35 | #include <v8.h>
| ^~~~~~
compilation terminated.
"

Trying to recompile with: "sudo ./configure -C" throws the below errors:

"
checking for v8-6.1_static >= 6.1.298... checking for v8fs_static >= 6.1.298... checking for v8 >= 6.1.298... configure: error: You need to either install libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298) or disable mod_v8 in modules.conf
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release[/email])
"

On Ubunutu and Debian this is libv8-dev and is installed.

root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release[/email]) sudo apt-get install libv8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libnode-dev' instead of 'libv8-dev'
libnode-dev is already the newest version (10.19.0~dfsg-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@freeswitch:/usr/src/freeswitch-1.10.6.-release# ([email]root@freeswitch:/usr/src/freeswitch-1.10.6.-release[/email])








_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services