LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RPM Problems in Red Hat 9 (https://www.linuxquestions.org/questions/linux-software-2/rpm-problems-in-red-hat-9-a-56896/)

bad_cmd/filenam 04-26-2003 02:45 PM

RPM Problems in Red Hat 9
 
Sorry if there's been a thread like this already but im in a rush.

I have recently migrated from MandrakeLinux 9 to Red Hat 9 because my wireless network adapter (Netgear MA101B) has drivers that are supposedly supported to work on Red Hat.

To install these drivers, I have to install gcc. I go to the Package Manager and select the Development tools option (which shows that there is nothing installed from that section). I install them all (to be on the safe side) and close down Package Manager. I then run the relevant make commands to compile the driver and I get the error: gcc - command not found or something along those lines. So I go back into Package Manager and find that the Development tools section is marked as having nothing installed in it. So I install all the packages (gcc is one that is automatically installed) and close the program, run the make commands and I get the same error.

Any ideas as to how I can install gcc so that I can set my wireless adapter up?

BTW, I am a newbie to Linux and so far I like what I see. I really need to get it working ASAP.


Dave

bad_cmd/filenam 04-26-2003 02:49 PM

If this is in the wrong forum - sorry but in the Distros forum there was no Red Hat sub-forum so i thought here would be the best place


Dave

MasterC 04-26-2003 03:00 PM

Find out if they are actually getting installed. After you "supposedly" run the gui install app, as root run (in a termnal):
ldconfig &&
updatedb

Then type:
whereis gcc

If a path is returned, then gcc is installed and you simply need to add that to your PATH variable.

If it turns up a blank:
whereis gcc
gcc:

Then you don't have it installed. You'll either need to find an alternative way to install it (Check out apt-get and Synaptic at www.freshmeat.net) or get the RPM's from your disc installed an alternate way, maybe via the command line:
rpm -ivh /path/to/cd/gcc.blah.blah.rpm

:)

Cool

bad_cmd/filenam 04-26-2003 03:07 PM

is that run as a whole command or as
ldconfig [return]
updatedb [return]
whereis gcc [return]

????

Thanks so far

Dave

bad_cmd/filenam 04-26-2003 03:37 PM

Damn - whereis gcc returns
gcc:

nothing else. will try the command based rpm installation

Thanks

Dave

MasterC 04-26-2003 03:41 PM

FYI, you will have dependency hell with this particular program. gcc is massively involved and needs many apps to run. To install many apps at the same time add them all to the same command, for example:
rpm -ivh filenam1.rpm filename2.rpm

So in your case you'll need a plethora of apps, add them all to the same line, use tab to autocomplete (this will not only ease the lengthy filename typing since it auto completes the filename for you, but it also ensure you are typing the package correctly. It really sucks to type out an 800 letter rpm name only to find out you meant v instead of b in the 16th letter ;) )

Cool

bad_cmd/filenam 04-26-2003 03:54 PM

Right, I tried doing it via the command line with the following command:
Quote:

rpm -ivh gcc-3.2.2-5.i386.rpm
and the following errors come up:
Quote:

error: gcc-3.2.2-5.i386.rpm: V3 DSA signature: Bad, key ID db42a60e
error: gcc-3.2.2-5.i386,rpm cannot be installed

What the hell is going wrong?

Should I download the RPM from the gcc website - wherever that is :)

Quote:

Originally posted by MasterC
gcc is massively involved and needs many apps to run. To install many apps at the same time add them all to the same command, for example:
rpm -ivh filenam1.rpm filename2.rpm

So in your case you'll need a plethora of apps, add them all to the same line, use tab to autocomplete (this will not only ease the lengthy filename typing since it auto completes the filename for you, but it also ensure you are typing the package correctly. It really sucks to type out an 800 letter rpm name only to find out you meant v instead of b in the 16th letter ;) )

Wht programs might these be?

Quote:

Originally posted by MasterC
Cool
That's not the word Iwould use morelike p****d off

Dave

MasterC 04-26-2003 04:21 PM

gcc is the gnu compiler. Since you need a compiler to compile you cannot grab the source for this and compile it.

Your best bet is to grab something like Synaptic from www.freshmeat.net and install it to help with those dependencies. From that you should be able to get gcc installed with much less of a headache than if you were to do it by hand.

Cool, or in your case, pissed off ;)

nakkaya 04-26-2003 04:26 PM

or another option to use rhn to install programs goto rhn.redhat.com login its free and they gcc it will find you the program rpm download it if ask for depenci download them from rhn too. they are all there

bad_cmd/filenam 04-28-2003 11:43 AM

OK thanks everyone

I have given up with Red Hat, mainly because I find Mandrake is more suited to me. In a few months tho I will probably re-install it and select the 'Everything' option. Hopefully this will work.


Dave


All times are GMT -5. The time now is 05:01 AM.