[Freeswitch-users] Mod_v8 issues - build 1.10.6

John Hardiman john.hardiman at missionlabs.co.uk
Thu Jul 1 19:16:18 UTC 2021

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,


From: Andrey Volk <andywolk at gmail.com>
Sent: 01 July 2021 14:37
To: FreeSWITCH Users Help <freeswitch-users at 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 at missionlabs.co.uk<mailto:john.hardiman at missionlabs.co.uk>>:
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,


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

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 at freeswitch:/usr/src/freeswitch-1.10.6.-release#<mailto:root at freeswitch:/usr/src/freeswitch-1.10.6.-release>

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

root at freeswitch:/usr/src/freeswitch-1.10.6.-release#<mailto:root at freeswitch:/usr/src/freeswitch-1.10.6.-release> 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 at freeswitch:/usr/src/freeswitch-1.10.6.-release#<mailto:root at freeswitch:/usr/src/freeswitch-1.10.6.-release>


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 at freeswitch.com<mailto:sales at freeswitch.com>

Official FreeSWITCH Sites

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210701/995008b0/attachment-0001.html>

More information about the FreeSWITCH-users mailing list