gpt4 book ai didi

JAVA_HOME 环境变量未设置 Validator.nu HTML 解析器

转载 作者:搜寻专家 更新时间:2023-11-01 01:56:56 25 4
gpt4 key购买 nike

我正在尝试安装本地版本的 Validator.nu 服务器,但它在尝试构建 HTML 解析器时总是失败。

它说它找不到我在 .bashrc 文件中设置的 JAVA_HOME 变量,当我在提示符下键入“echo $JAVA_HOME”时正确显示

感谢感谢

错误输出

"hg" pull --update -R build https://bitbucket.org/validator/build/
Not trusting file build/.hg/hgrc from untrusted user dave, group dave
Not trusting file /home/dave/src/checker/build/.hg/hgrc from untrusted user dave, group dave
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cacerts config setting)
pulling from https://bitbucket.org/validator/build/
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cacerts config setting)
searching for changes
no changes found
Error: The JAVA_HOME environment variable is not set.
Set the JAVA_HOME environment variable to the pathname of the directory where your JDK is installed.

最佳答案

代替:

$ sudo python build/build.py all

尝试:

$ sudo -E python build/build.py all

出于安全原因,sudo 命令会重置环境(因此即使在导出时,python 进程的 JAVA_HOME 也会被清除)。 “sudo -E”将保护环境。

关于JAVA_HOME 环境变量未设置 Validator.nu HTML 解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6790278/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com