LINUX_ORACLE :Checking operating system version

本文提供了解决Linux发行版本与Oracle安装不匹配导致的安装问题的方法,包括修改发行标记和使用runInstaller参数。对于在非推荐版本的Linux发行版上安装Oracle的情况,通过调整系统标识或使用特定参数,可以成功解决安装过程中的错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在Linux系统中安装oralce的过程中,如果Linux发行版本不是oracle的推荐版本,可能会报如下错误,导致runInstaller无法完成:

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<

遇到这个问题,可以通过如下两种方式解决

1、修改Linux的发行标记

如在redhat-5上安装oracle的时候,需要将文件 '/etc/redhat-release'的内容由

Red Hat Enterprise Linux Server release 5 (Tikanga)

修改为

Red Hat Enterprise Linux Server release 4 (Tikanga)

2、runInstaller的时候加上-ignoreSysPreReqs参数,如:

./runInstaller -ignoreSysPreReqs
### JDK 17 for Linux Installation To obtain the JDK 17 installation package for Linux, one must visit the official Oracle website or adopt an open-source alternative such as OpenJDK. The download link typically provides `.tar.gz` archives suitable for Linux distributions. These archives contain the necessary binaries required to set up Java Development Kit version 17 on your system. For example, downloading from Oracle's official site requires navigating through their downloads section where specific links are provided for different operating systems including Linux x64 and other architectures[^1]. Once downloaded, extracting the archive using standard tools like `tar` will make it ready for configuration: ```bash tar -zxvf jdk-17_linux-x64_bin.tar.gz ``` After extraction, setting environment variables becomes crucial so applications recognize paths correctly when invoking java commands. This involves modifying shell profile scripts (`~/.bashrc`, `/etc/profile`) by adding lines similar to those shown below which define `$JAVA_HOME` pointing towards extracted directory followed by appending relevant directories into global search path variable named `$PATH`. Here’s how you configure these settings based upon previously mentioned reference materials about configuring JAVA_HOME under LINUX environments specifically mentioning export command usage patterns within bash shells context : ```bash export JAVA_HOME=/path/to/your/jdk-17-directory export PATH=$JAVA_HOME/bin:$PATH source ~/.bashrc ``` Once completed successfully after sourcing updated configurations back again via terminal session restarts if needed then verifying proper setup could be done executing simple test case checking current active versions available inside user space scope without requiring administrative privileges at all times unless otherwise specified during initial installations phases itself depending entirely upon chosen methods applied earlier stages accordingly too!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值