How to fix Unable to locate ‘g++’ in Linux 8.10

While performing a database tier clone in Oracle E-Business Suite 12.2 on Linux 8.10, you may encounter a failure during the execution of:

perl adcfgclone.pl dbTechStack

The error that i am getting today is:

Unable to locate ‘g++’ utility in path

This issue occurs due to missing OS-level dependencies required for relinking binaries during the clone process.

In this blog, we will walk through a step-by-step solution to resolve this error quickly and efficiently.


Issue

During the execution of the DB TechStack clone, the system performs prerequisite checks for required utilities like gcc, g++, make, etc.

Even though some utilities are present, the process fails specifically due to missing g++.

Error Output

Checking for make… found – /usr/bin/make
Checking for ld… found – /usr/bin/ld
Checking for gcc… found – /usr/bin/gcc
Checking for g++…
Unable to locate ‘g++’ utility in path

Verification confirms that g++ is not installed:
which g++
/usr/bin/which: no g++ in PATH


Solution

To resolve the issue, install the required package using yum.

Install gcc-c++

yum install gcc-c++.x86_64

This command installs:

  • gcc-c++
  • Required dependencies (cpp, gcc, libgomp, etc.)

Verify Installation

After installation, confirm that g++ is available:

which g++

Expected output:

/usr/bin/g++


Re-run Clone

Now execute the clone command again:

perl adcfgclone.pl dbTechStack

This time, the process should proceed successfully:

Running: Context clone…


Conclusion

The “Unable to locate g++ utility in path” error is a straightforward but blocking issue during Oracle EBS DB Tier cloning.

By simply installing the gcc-c++ package, you can resolve the problem and continue your cloning activity without further interruptions.

Hope this helps.

This entry was posted in Uncategorised. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *