Click to See Complete Forum and Search --> : trying to find C on Mandrake 7.2


sahti
02-15-2001, 08:01 PM
I've spent a good chunk of the day looking for Gnu CC today and have not had any luck :confused:. There is a gcc-cpp-2.95.2-12mdk.i586.rpm file on the installation disk that I tried to install, but I got the message that gcc was already installed. I've tried searching with 'find' and 'which' to locate gcc, cc, c and have not found any of them. Is there some wierd directory somewhere that it gets installed into?
TIA

Sweede
02-15-2001, 09:08 PM
install egcs-compat RPM

link rename whatever,
/usr/bin/kgcc to /usr/bin/egcs

Molecule Man
02-15-2001, 11:09 PM
Erm, have you tried gcc ?

Malakin
02-16-2001, 06:55 AM
If you want to see where the files from an rpm are placed you can do a "rpm rpmfilename.rpm -qpl" and it will give you a list.
Other ideas:
"whereis gcc"
"locate gcc"
looks like you're using mandrake, gcc should be in the path or a link to it anyways. "gcc -v" should give you the version if it's installed properly.

sahti
02-16-2001, 01:56 PM
running the rpm -qpl filename.rpm I got a list of files and directories:
/lib/cpp
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/cpp
/usr/share/info/cpp.info-1.bz2
/usr/share/info/cpp.info-2.bz2
/usr/share/info/cpp.info-3.bz2
/usr/share/info/cpp.info.bz2
/usr/share/man/man1/cccp.1.bz2
/usr/share/man/man1/cpp.1.bz2

I discovered that this stuff is for the Gnu C compilier preprocessor. I wonder if C is not installed. I've tired typing gcc or gcc -v (as well as c an cc) which and whereis commands, locate gives me a command not found error. Well I guess I'll just download the compiler from gnu and try installing it. Thanks for you help.

Kinjana
02-16-2001, 02:49 PM
From rpmfind.net

Source code

ftp://fr.rpmfind.net/linux/Mandrake/7.2/SRPMS/gcc-2.95.2-12mdk.src.rpm

Binary rpm

ftp://fr.rpmfind.net/linux/Mandrake/7.2/i586/Mandrake/RPMS/gcc-2.95.2-12mdk.i586.rpm


Kinj

If "gcc --version" from a shell prompt gives you an error, then you are correct, it just wasn't installed --

Get the install rpm and you'll be fine

sahti
02-16-2001, 04:42 PM
Thanks. just what I was looking for. Now to get the file from the computer I downloaded it with to my *nix box.