Sponsored Content
Full Discussion: Building a Compiler
Top Forums UNIX for Beginners Questions & Answers Building a Compiler Post 302973019 by Aia on Friday 13th of May 2016 12:50:35 AM
Old 05-13-2016
Quote:
Originally Posted by kopfgeldjagar1
In an earlier thread, I mentioned that I needed something like Netcat or Socat to create a serial > IP connection. I realized after some thought that I had downloaded the netcat tarball, unpacked it and ended up with the uncompiled program. I attempted to put it together with cc and discovered that i have no compiler application on my production box. Google mentioned GCC, which I found the correct RPM's (including dependencies) for, and I was able to install most of then until I realized that I have a quandry:

[root@dev21 /home/dev/gcc] rpm -Uvh gcc-4.6.3-2.aix5.2.ppc.rpm
error: failed dependencies:gcc-cpp = 4.6.3-2 is needed by gcc-4.6.3-2

[root@dev21 /home/dev/gcc] rpm -Uvh gcc-cpp-4.6.3-2.aix5.2.ppc.rpm
error: failed dependencies: gcc = 4.6.3-2 is needed by gcc-cpp-4.6.3-2

A needs B needs A

Please explain this to me. Can i use the --nodeps flag?

I'm at a loss at this point. Any help would be appreciated.
No, you can not use the --nodeps flag it you want it to work. Each rpm has its own dependency and it is necessary for that dependency to be met.
If you want to do it manually (which is what you are doing), you must know the dependencies of each package and issue the rpm command with each one in daisy chain. That is:
Code:
rpm -Uvh one.rpm two.rpm three.rpm ...

Now, there is a tool that automatically checks for each dependency required and it will try to download it from the configured distribution repository.
This tool is yum for RHEL and clones of it, and Fedora <= 21.
Fedora >= 22 had yum replaced by DNF.
Suse uses zypper.

The basic command for yum:
Code:
yum install gcc


Last edited by Aia; 05-13-2016 at 01:56 AM..
 

9 More Discussions You Might Find Interesting

1. IP Networking

building a server

hi, i am a pretty good linux user..but i have no idea on building a server witha domain and everthing. please help! (5 Replies)
Discussion started by: hamza11050
5 Replies

2. UNIX for Dummies Questions & Answers

Building a new PC

Hi, im building a new PC for my FreeBSD - sorry it's not really UNIX related but I dont really visit any other online forums, and lost ideas of people to ask, Basically would it work if bought this motherboard -... (0 Replies)
Discussion started by: ErNci
0 Replies

3. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

4. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

5. UNIX and Linux Applications

Help with building firewall

Hi, I've installed firewall builder into my operating system (PCLinuxOS) from the repository. Now I need to configure and make run firewall builder in the main server (production server) of my company. The technique that I want to use is pushing the script from my laptop (where I've got the... (3 Replies)
Discussion started by: anaigini45
3 Replies

6. Red Hat

Building a ppc476 enabled GCC cross compiler and toolchain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (0 Replies)
Discussion started by: raghuhb
0 Replies

7. UNIX for Advanced & Expert Users

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

8. Linux

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

9. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies
MAKEDELTARPM(8) 					      System Manager's Manual						   MAKEDELTARPM(8)

NAME
makedeltarpm - create a deltarpm from two rpms SYNOPSIS
makedeltarpm [-v] [-V version] [-z compression] [-s seqfile] [-r] [-u] oldrpm newrpm deltarpm makedeltarpm [-v] [-V version] [-z compression] [-s seqfile] [-u] -p oldrpmprint oldpatchrpm oldrpm newrpm deltarpm DESCRIPTION
makedeltarpm creates a deltarpm from two rpms. The deltarpm can later be used to recreate the new rpm from either filesystem data or the old rpm. Use the -v option to make makedeltarpm more verbose about its work (use it twice to make it even more verbose). If you want to create a smaller and faster to combine "rpm-only" deltarpm which does not work with filesystem data, specify the -r option. makedeltarpm normally produces a V3 format deltarpm, use the -V option to specify a different version if desired. The -z option can be used to specify a different compression method, the default is to use the same compression method as used in the new rpm. The -s option makes makedeltarpm write out the sequence id to the specified file seqfile. If you also use patch rpms you should use the -p option to specify the rpm-print of oldrpm and the created patch rpm. This option tells makedeltarpm to exclude the files that were not included in the patch rpm but are not byteswise identical to the ones in oldrpm. makedeltarpm can also create an "identity" deltarpm by adding the -u switch. In this case only one rpm has to be specified. An identity deltarpm can be useful to just replace the signature header of a rpm or to reconstruct a rpm from the filesystem. SEE ALSO
applydeltarpm(8) combinedeltarpm(8) AUTHOR
Michael Schroeder <mls@suse.de> Feb 2005 MAKEDELTARPM(8)
All times are GMT -4. The time now is 03:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy