Search code examples
javascriptdebianv8freeswitch

Got an error trying to install mod_v8 for FreeSwitch 10 in Debian 11: You need to either install libv8-6.1-dev, ibv8fs-dev


On a "clean" Debian 11, I deployed all the necessary packages and began to build FreeSWITCH 10 with the mod_v8 module enabled.

When executing the ./configure command, I get the message:

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

There are no packages named libv8-6.1-dev and libv8fs-devlibv8fs-dev in Debian 11. I was looking for packages in Debian 11 that contain v8, with the command search v8 and installed all the packages found that mention v8 and JavaScript:

libv8-dev libnode-dev libnode72 node-babel7-standalone node-clean-css node-get-caller-file node-nan node-to-fast-properties node-v8flags nodejs

I also installed libv8 packages which are mentioned here: https://lists.freeswitch.org/pipermail/freeswitch-users/2021-July/134874.html But I still get the error message.

What packages do I need to install? Is there a command that will help me find the names of the necessary packages that contain: libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298)?


Solution

  • The procedure for installing mod_v8 on Debian 11.

    1. Download and install deb packages from here (registration required): https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/pool/main/libv/

    2. Install the downloaded packages with the command: sudo apt install -y ./package_name.deb

    List of packages (some may not install):

    libv8-6.1_6.1.298-1_bullseye_amd64.deb

    libv8-6.1_6.1.298-1_buster_amd64.deb

    libv8-6.1_6.1.298-1_stretch_amd64.deb

    libv8-6.1-dbg_6.1.298-1_bullseye_amd64.deb

    libv8-6.1-dbg_6.1.298-1_buster_amd64.deb

    libv8-6.1-dbg_6.1.298-1_stretch_amd64.deb

    libv8-6.1-dev_6.1.298-1_bullseye_amd64.deb

    libv8-6.1-dev_6.1.298-1_buster_amd64.deb

    libv8-6.1-dev_6.1.298-1_stretch_amd64.deb

    libv8fs-6.1_6.1.298-1_stretch_amd64.deb

    libv8fs-6.1-dbg_6.1.298-1_stretch_amd64.deb

    libv8fs-6.1-dev_6.1.298-1_stretch_amd64.deb

    1. If FreeSWITCH is already installed, then you need to uncomment along the path: /usr/local/freeswitch/conf/autoload_configs in the file: modules.conf.xml line: load module="mod_v8" Then install only mod_v8 via (run from the FreeSWITCH build folder): make mod_v8-install

    2. If FREESWITCH not installed, then enable mod_v8 in the modules.conf file in the freeswitch (or freeswitch-master) folder from which the build will be made.

    3. Finally, in the FreeSWITCH console, run the load mod_v8 command (the answer must be True).