Hi,

can anyone please help me to find out a solution for the below mentioned problem??
While installing oracle 11g in linux on a remote desktop, failed dependencies occured when installing rpm packages
[i want a soluion withou using yum software]

[root@TomcatServer Server]# rpm -Uvh gcc-4.*
warning: gcc-4.1.2-44.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:cpp = 4.1.2-44.el5 is needed by gcc-4.1.2-44.el5.x86_64

Dani AI

Generated

Short summary and quick plan (for the rpm error about gcc needing a missing cpp package):

This error means the GCC RPM you tried to install expects a specific provider package (the cpp package) of the same version/architecture that is not present on the system. Common root causes are mixed architectures (x86_64 vs i686/i386), trying to install an RPM built against a different distro release, or simply not having the matching dependency RPMs available. As began to show, the solution is to identify the exact requirement, fetch the matching RPM(s) from a trusted mirror or the OS install media, and install those first.

How to inspect and plan (do this before attempting installs):

  • Confirm the machine architecture, e.g. with uname -m, so you know whether to use x86_64 or 32-bit RPMs.
  • Inspect the offending RPM to see what it requires and what it provides (use the rpm query options such as the --requires/--provides/--whatprovides family).
    These queries let you map the missing capability (for example, the cpp = 4.1.2-44.el5 requirement) to an actual RPM file you must obtain. (gnu.org)

Offline workflow without yum:

  • Prefer copy/collecting RPMs from your distribution media or official mirrors (mount the ISO / use the distro repo tree) so you get matching versions and architectures. Oracle installation notes also recommend installing the OS packages listed in their prerequisites for Oracle 11g rather than ad‑hoc picks.
  • Use the rpm query results above to determine install order (core libc and toolchain libraries first, then cpp/gcc, then -devel packages). If available, creating a local repo from those RPMs makes dependency resolution far safer; otherwise install the collected RPMs in dependency order. (oracle.com)

Cautions and practical advice:

  • Avoid --nodeps / --force unless you fully understand the consequences: forcing a package past dependency checks can break other packages or the system. If this gets messy, a clean VM or a container using a supported distro (Oracle Linux / same RHEL version) is often faster and safer for Oracle installations. (dsilas.fedorapeople.org)

Tieback: , start by running the architecture check and the rpm query commands above on the GCC RPM you tried; ’s idea of collecting the required RPMs is right — just prefer official distro media/mirrors and plan installs from the dependency queries so you don’t end up forcing mismatched packages.

A. Check the machine is installed gcc
In the terminal enter: gcc: rpm -q gcc
Before installing the return result is:
[Root @ localhost gcc] # rpm -q gcc
package gcc is not installed
The results are returned after the installation:
[Root @ localhost /] # rpm -q gcc
gcc-4.1.2-44.el5
If you can use yum:

Installation gcc compiler (can compile C program)

yum install gcc

Install g ++ (before installation can compile C ++ programs)

yum install gcc-c ++
If you can not use yum:
Second, download the required packages:
1.kernel-headers-2.6.18-128.el5.i386.rpm
2.glibc-common-2.5-34.i386.rpm
3.glibc-2.5-34.i386.rpm
4.glibc-headers-2.5-34.i386.rpm
5.glibc-devel-2.5-34.i386.rpm
6.cpp-4.1.2-44.el5.i386.rpm
7.libgomp-4.3.2-7.el5.i386.rpm
8.libgcc-4.1.2-44.el5.i386.rpm
9.gcc-4.1.2-44.el5.i386.rpm
Below is needed to install g ++ package, I did not succeed to install
10.libstdc ++ - devel-4.1.2-44.el5.i386.rpm
11.gcc-c ++ - 4.1.2-44.el5.i386.rpm
Most packages http://xiaolong0211.iteye.com/blog/758269 page can be downloaded directly onto the bottom,
glibc-common-2.5-34.i386.rpm Download package is -0-2.5-34.html ,
Download glibc-2.5-34.i386 package is http://rpm.pbone.net/index.php3/stat/4/idpl/12883715/dir/startcom_5/com/glibc-2.5-34.i386.rpm. html ,
I'll upload some packages later.
The focus of these packages into a folder, such as: / opt / gcc
III. To begin the installation
1. Go to the root user (su -)
2. Go to the folder where the files package (cd / opt / gcc)
3. Run the following command:
rpm -ivh ./kernel-headers-2.6.18-128.el5.i386.rpm
rpm -ivh --force glibc-common-2.5-34.i386.rpm
rpm -ivh --force glibc-2.5-34.i386.rpm (rpm -ivh --force rpmpackage.rpm able to force the installation of a piece of software)
rpm -ivh glibc-headers-2.5-34.i386.rpm
.......
From 1 in accordance with the above - the order of> 10 to install on the line
IV. Some cases may occur during installation
1. There is no use of root privileges:
In the terminal enter: rpm -ivh --force glibc-2.5-34.i386.rpm displays the following information,
warning: glibc-common-2.5-34.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 652e84dc
error: can not create transaction lock on /var/lib/rpm/__db.000
Use the root user (su -)
2. The system of some package than the package you want to install the update
eg: [root @ localhost gcc] # rpm -ivh cpp-4.1.2-44.el5.i386.rpm states the following:
A new is ....... and ........... probably means a package to install the update now than we would want to install,
No need to install, but now the package but not installed, would not be able to resolve dependencies, there is no way to install other packages, resulting in the earliest software can not be installed.
Solutions are as follows:
Enter the root user: rpm -e softWareName (eg: rpm -e cpp-4.1.2-44.el5 or rpm -e --allmatches cpp-4.1.2-44.el5),
Then reinstall the package
3. Some package does not solve the problem if you rely on input rpm -ivh ./xxxxx.rpm following message appears,
eg: [root @ localhost gcc] # rpm -ivh cpp-4.1.2-44.el5.i386.rpm
warning: ./glibc-headers-2.5-34.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
That is before you install glibc-headers-2.5.34.i386.rpm package, you should first install the glibc-2.5.-34.rpm package, google search at the appropriate package installed on the line.
4. Some packages require the mandatory installation rpm -ivh ./xxxxx.rpm appear if you enter the following information:
eg: [root @ localhost gcc] # rpm -ivh cpp-4.1.2-44.el5.i386.rpm
file / usr / bin / cpp from install of cpp-4.1.2-44.el5.i386 conflicts with file from package cpp-4.1.2-46.el5.i386
file /usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1 from install of cpp-4.1.2-44.el5.i386 conflicts with file from package cpp-4.1.2-46.el5.i386
file /usr/share/man/man1/cpp.1.gz from install of cpp-4.1.2-44.el5.i386 conflicts with file from package cpp-4.1.2-46.el5.i386
At this point it should be modified to order:
[Root @ localhost gcc] # rpm -ivh --force cpp-4.1.2-44.el5.i386.rpm
5. If a package is installed successfully installed successfully usually states the following:
[Root @ localhost Server] # rpm -ivh ./kernel-headers-2.6.18-128.el5.i386.rpm
warning: ./kernel-headers-2.6.18-128.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing ... ########################################### [100% ]
1: kernel-headers ########################################### [100 %]
........
V. problem I encountered
1. The following two are installed g ++ package, I did not succeed to install
libstdc ++ - devel-4.1.2-44.el5.i386.rpm
gcc-c ++ - 4.1.2-44.el5.i386.rpm
When you run the libstdc ++ - devel-4.1.2-44.el5.i386.rpm when prompted:
[Root @ localhost gcc] # rpm -ivh ./libstdc++-devel-4.1.2-44.el5.i386.rpm
warning: ./libstdc++-devel-4.1.2-44.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libstdc ++ = 4.1.2-44.el5 is needed by libstdc ++ - devel-4.1.2-44.el5.i386
I did not find libstdc ++ online - 4.1.2-44.el5.rpm package ( , Who has made a chant), we do not yet installed g ++
2. If use yum like, this installed a retHat5.4 not registered, you should install a fedora, can simply get the problem must not be complicated

References:
http://xiaolong0211.iteye.com/blog/758269

http://www.jb51.net/os/RedHat/1266.html
http://blog.csdn.net/zgbsoap/article/details/411646

search here
www.rpmseek.com
www.rpmfind.net

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.