在 Ubuntu 上构建 J2V8 时遇到问题 [英] Trouble building J2V8 on Ubuntu
问题描述
我正在尝试在 Ubuntu 16.04 上构建 J2V8,但我不断收到错误消息.我正在运行 Github 上提供的安装脚本,但我不断收到此错误:(为简洁起见进行了编辑)
I'm trying to build J2V8 on Ubuntu 16.04 but I keep getting errors. I'm running the install script provided on Github but I keep getting this error: (edited for brevity)
make[1]: Leaving directory '/home/andrew/REUIOT/J2V8/node/out'
ln -fs out/Release/node node
cp: cannot stat '/data/jenkins/node': No such file or directory
com_eclipsesource_v8_V8Impl.cpp:11:17: fatal error: jni.h: No such file or directory
compilation terminated.
[INFO] Scanning for projects...
[INFO] BUILD FAILURE-----------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/andrew/REUIOT/J2V8/jni). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
我不知道 /data/jenkins/node
应该指什么,因为我知道没有任何 Linux 系统具有 /data
目录.我尝试重新安装 OpenJDK 以解决 fatal error: jni.h
但当我尝试这样做时 apt 似乎抛出错误.
I don't know what /data/jenkins/node
is supposed to refer to because I know of no Linux system that has a /data
directory.
I've tried re-installing OpenJDK to resolve the fatal error: jni.h
but apt seems to throw an error when I try to do that.
推荐答案
包含的脚本是我(作者使用)在我的 CI 服务器上构建 J2V8 的脚本./data/jenkins/node
是我在 jenkins 服务器上构建节点的位置.Linux 构建说明位于 README 中.如果你想构建 J2V8,你应该参考这些说明.
The script that is included is the one I (the author uses) on my CI server to build J2V8. /data/jenkins/node
is the location on my jenkins server that I built node. The Linux instructions for building are in the README. You should refer to those instructions if you would like to build J2V8.
这篇关于在 Ubuntu 上构建 J2V8 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!