光洋山
作者光洋山·2017-02-04 16:54
数据库架构师·金融科技公司

安装提示JAVA虚机问题:No Java virtual machine could be found

字数 1056阅读 2813评论 0赞 0

安装提示JAVA虚机问题:No Java virtual machine could be found

在某些情况下,安装GBase 8t或者CSDK客户端时提示:
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

错误提示信息无法找到JAVA VM,但是GBase 8t安装包本身包含了JRE,应该是可正常执行安装过程的。
正常情况下,自带的JRE将在安装过程中,自动解压到 /tmp/install.dir.X 目录,需要确认是否正常。
有些情况,由于/tmp文件系统的一些不太明确的原因(比如是否有执行权限 x),导致无法正常的解压自带的JRE到tmp目录。

我们可以尝试通过环境变量,换一个有执行权限的目录,通过IATEMPDIR定义,如/mytmp。
另外,/usr/lib64:/lib64 是有必要的,可以解决一些特点产品bug问题。

export IATEMPDIR=/mytmp
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64:/lib64 ./ids_install
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Preparing CONSOLE Mode Installation...

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广