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.

About Syed Raheel

I have total of 17 years and more than 15 years experience in Oracle ERP E-Business Suite R11i , R12.1.3 , 12.2.4 to 12.2.11 with Oracle 10g/11g/12c and 19c with Red Hat / Oracle Enterprise Linux Environments. I am Working as Oracle EBS APPS Database Consultant in Advanced Operations Technology, A Saudi Arabian IT/ERP Consulting firm, I am responsible for New Technical Implementations, Upgradation, Migrations and Providing 24x7 support for critical ERP Production Application & Databases. Specialties: Oracle Application Oracle E-Business Suite R12 Oracle Applications System Administration Oracle Applications Database Administration

Check Also

txkCfgUtlfileDir.pl Error in getUtlFileDir Mode

Fixing txkCfgUtlfileDir.pl Error in getUtlFileDir Mode After Restoring Oracle EBS 19c Database   Recently, after …

Leave a Reply