Cannot find java, gcc, Oracle on RedHat 7.2

We received Linux RedHat. I tried

java -version

no result

gcc -c 

no result
I cannot even find Oracle version or directory
Do you know if JAVA, gcc, Oracle are supposed to come with Linux by default?

Thanks,

I'd be surprised if gcc were not installed by default. Check the installation log and try e.g. whereis . All the others you may need to install manually after system setup.

Check your path settings for the user you are working with. Also Oracle (DB?) software should not be preinstalled with any linux distribution (afaik), unless you are using a VM image provided from the Oracle website.

gcc is not installed in a RedHat 7.x by default. It is a development tool and it doesn't belong in production servers. If you need it for development then you can install it by issuing, as root, the command:

yum groupinstall "Development Tools"

The available java package for RedHat 7.x is OpenJDK and is not installed by default, however you can install it with:

yum install java

The Oracle JDK or JRE are not part of the available packages for Redhat 7.x. on the default repositories. However, you can download it from Oracle and install it, once you accept the license.

1 Like