# V8js not working with dreamfactory on debian 9.1

**URL:** <https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062>\
**Category:** Server-Side Scripting\
**Created:** [September 19, 2017, 9:42pm UTC](https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062 "2017-09-19T21:42:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RQJ](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@RQJ](https://community.dreamfactory.com/u/RQJ)\
**Post date:** [September 19, 2017, 9:42pm UTC](https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062/1 "2017-09-19T21:42:32Z")

</div>

Does anyone know how to get v8js installed and working with dreamfactory on debian 9.1 64-bit?

I’m trying to work through the custom script example with v8js [here](https://blog.dreamfactory.com/put-some-swagger-in-your-dreamfactory-custom-scripting-services). I’ve installed dreamfactory from git using php7 on debian 9.1 64-bit. When I go to the API docs and try the API out, I get the following error: “This instance cannot run server-side javascript scripts. The ‘v8js’ is not available.”

I’ve tried building and installing v8js as described [here](https://github.com/phpv8/v8js/blob/php7/README.Linux.md), but this does not solve the issue. v8js also does not show up when running `php -m`, although I’ve added `extension=v8js.so` to the php.ini file for both the cli and php7.0-fpm.

Luckily the Bitnami installation seems to work, but I would like to know how to install it myself if possible.

Any help much appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![tizzyapunkt](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tizzyapunkt](https://community.dreamfactory.com/u/tizzyapunkt)\
**Post date:** [September 22, 2017, 1:24pm UTC](https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062/2 "2017-09-22T13:24:11Z")

</div>

You need to compile the v8 extension by yourself.

[Here](https://wiki.dreamfactory.com/DreamFactory/APT/Ubuntu_16.04/Modules/v8js) is a link to the Dreamfactory wiki page which tells you how to do that.

---

<div class="post-metadata">

**Author:** ![RQJ](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@RQJ](https://community.dreamfactory.com/u/RQJ)\
**Post date:** [September 25, 2017, 5:09pm UTC](https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062/3 "2017-09-25T17:09:44Z")

</div>

Thank you for the link. This does work for Ubuntu, and I can use that if necessary. Are there install instructions for Debian specifically? I followed the instructions on installing v8js here ([https://github.com/phpv8/v8js/blob/php7/README.Linux.md](https://github.com/phpv8/v8js/blob/php7/README.Linux.md)). I compiled v8 fine, however v8js stopped at `./configure --with-v8js=/opt/v8` with the following error:  
`checking for V8 version... NONE`  
`configure: error: could not determine libv8 version`

So it seems there’s an issue with installing on Debian 9.1, any ideas how to fix it?

---

<div class="post-metadata">

**Author:** ![tizzyapunkt](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tizzyapunkt](https://community.dreamfactory.com/u/tizzyapunkt)\
**Post date:** [October 4, 2017, 1:31pm UTC](https://community.dreamfactory.com/t/v8js-not-working-with-dreamfactory-on-debian-9-1/4062/4 "2017-10-04T13:31:39Z")

</div>

I just tried this on Ubuntu yet and it worked without any errors. Maybe you can use other resources to find the answer for your problem.
