LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gcc and me (https://www.linuxquestions.org/questions/linux-software-2/gcc-and-me-86935/)

Farad77 08-29-2003 07:26 AM

Gcc and me
 
Hello everybody,
(First i want to beg everyone's pardon in advance for my bad english)
Here's my problem,i've already search more than 3 hours using google and found many answer but none were good for me.
So ,please could you help me?
I 've just installed Mandrake 9.1,full install: all of the two CD packages.But i didn't succed in compiling any source (tar.gz..Etc)
Indeed,here's the error when i put: ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
I don't understant why because, gcc is supposed to be installed,
the rpm manager of kde tell me that it is installed (i can uninstall it)
So i test: rpm -q gcc
and it say that gcc package is not installed?!?
I install a lower version (i have the 3.2.2,and installed the 2.95)
I doesn't work; so I tried to download the last version 3.3.1 but i have to compile it And here's the result:
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/farad77/gcc-3.3.1 using "mt-frag"
./configure: line 8: cc: command not found
*** The command 'cc -o conftest -I/opt/devlib/include conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Argh...
I don't know what to do ...
Please,Help me
Thanks a lot.
PS:I don't want any RPM's i just want to know how to do this basic linux operation

secprovider 08-29-2003 07:57 AM

Hi,

It seems gcc in defined in your $PATH.

So first find out where gcc installed.

$ whereis gcc

Then add the path of gcc into your $PATH
$ export PATH=$PATH:gccPath

Then try again installing the program

Farad77 08-29-2003 08:57 AM

Hello,
Thanks for your help,
But it seems that gcc are not installed :
--
whereis gcc
gcc:
--
I don't understand why?Does mdrk 9.1 not include gcc with is 2 CD pack?I don't think so.
I'm going to reinstall the 2.95 to test,
But have you got an idea of what happening?
When i look (thanks to kde rpm manager) where gcc is here's the result:
--------------------------------------
Nom : gcc-cpp
Version : 3.2.2-3mdk
Taille : 230 Ko
Intitulé : The C Preprocessor

Description : The C preprocessor is a 'macro processor' which is used automatically by the C compiler to transform your program before actual compilation. It is called a macro processor because it allows ....

Fichiers :
/lib/cpp
/usr/bin/cpp
/usr/bin/cpp-3.2.2
/usr/lib/gcc-lib/i586-mandrake-linux-gnu
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/cpp0
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/tradcpp0
/usr/share/man/man1/cpp.1.bz2
--------------------------------

Thank you in avance

placeways 08-29-2003 10:05 PM

I'm having the same problem as Farad77 with Mandrake 9.1 and the apparent lack of GCC for compiling C code. When I installed Mandrake, I added all the packages and still cannot seem to be able to use GCC. I was attempting to install Wine using the source code and wineinstall. Any help would be appreciated.

endoalpha 08-29-2003 10:33 PM

mandrake 9.1 download edition is a 3 CD set, not two. you may have to be root in order to compile on Mandrake.
Most of the GCC is on the first cd. Why dont you use mandrake control center to install this? If you install the kernel-source (from the 3rd cd) this will automatically install all the the tools you need to compile stuff, minus the devel libs.

placeways 08-29-2003 10:36 PM

Thanks for the reply, but the version I bought off Amazon, was a 2-cd version, I think it's the standard version.

endoalpha 08-30-2003 12:40 AM

The only think I can tell you is to get the mandrake compiled gcc. usr mandrake conrtol center, and set up a mandrake mirror for install cds.

Farad77 08-30-2003 03:58 AM

Hello,
The first thing i did was: trying to install gcc with the mandrake control center by it says that it is already installed.So i use the terminal to test other possibilities.I've only gots 2 CD (it's the standar version).And gcc is in the first one but ...It's like it is not a real gcc ...I don't know...I'm going searching for a solution
Thanks

Farad77 08-30-2003 02:20 PM

Hello,
I'm back with more information,
"gcc not found " because it's not installed,the only package installed was gcc-cpp,it's not the same so.

placeways:you have to find 3 package:
gcc
gcc-c++
gcc-cpp in the same version,i found them on Two Mandrake's Installation CD (7.1),
Now the ./configure say:
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Argh...
If someone can help me....
Thanks


All times are GMT -5. The time now is 04:59 PM.