Installing Mod_v8


New Member
Nov 12, 2021
Hello Everyone,

I tried to install mod_v8 as per freeswitch documents but it's failing, can some one help/give a clue.

I am getting this error.

make[1]: Entering directory '/usr/src/freeswitch'

*** Warning: Linking the shared library against the
*** static library libs/libvpx/libvpx.a is not portable!
/usr/bin/mkdir -p '/usr/lib'
/bin/bash /usr/src/freeswitch/libtool --mode=install /usr/bin/install -c '/usr/lib'
libtool: install: /usr/bin/install -c .libs/ /usr/lib/
libtool: install: (cd /usr/lib && { ln -s -f || { rm -f && ln -s; }; })
libtool: install: (cd /usr/lib && { ln -s -f || { rm -f && ln -s; }; })
libtool: install: /usr/bin/install -c .libs/libfreeswitch.lai /usr/lib/
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/lib
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.
make[1]: Leaving directory '/usr/src/freeswitch'
make[1]: Entering directory '/usr/src/freeswitch/src/mod'

making install mod_v8
make[2]: Entering directory '/usr/src/freeswitch/src/mod/languages/mod_v8'
make install-am
make[3]: Entering directory '/usr/src/freeswitch/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.
make[3]: *** [Makefile:828: mod_v8_la-mod_v8.lo] Error 1
make[3]: Leaving directory '/usr/src/freeswitch/src/mod/languages/mod_v8'
make[2]: *** [Makefile:1054: install] Error 2
make[2]: Leaving directory '/usr/src/freeswitch/src/mod/languages/mod_v8'
make[1]: *** [Makefile:721: mod_v8-install] Error 1
make[1]: Leaving directory '/usr/src/freeswitch/src/mod'
make: *** [Makefile:4005: mod_v8-install] Error 2