LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2003, 07:26 AM   #1
Farad77
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
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
 
Old 08-29-2003, 07:57 AM   #2
secprovider
Member
 
Registered: Jul 2003
Distribution: Debian sarge
Posts: 40

Rep: Reputation: 15
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
 
Old 08-29-2003, 08:57 AM   #3
Farad77
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 08-29-2003, 10:05 PM   #4
placeways
LQ Newbie
 
Registered: Aug 2003
Location: PA
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
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.

Last edited by placeways; 08-29-2003 at 10:08 PM.
 
Old 08-29-2003, 10:33 PM   #5
endoalpha
LQ Newbie
 
Registered: Jun 2003
Location: Seabeck WA,USA
Distribution: gentoo hybrid
Posts: 29

Rep: Reputation: 15
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.

Last edited by endoalpha; 08-29-2003 at 10:37 PM.
 
Old 08-29-2003, 10:36 PM   #6
placeways
LQ Newbie
 
Registered: Aug 2003
Location: PA
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
Thanks for the reply, but the version I bought off Amazon, was a 2-cd version, I think it's the standard version.
 
Old 08-30-2003, 12:40 AM   #7
endoalpha
LQ Newbie
 
Registered: Jun 2003
Location: Seabeck WA,USA
Distribution: gentoo hybrid
Posts: 29

Rep: Reputation: 15
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.
 
Old 08-30-2003, 03:58 AM   #8
Farad77
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 08-30-2003, 02:20 PM   #9
Farad77
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration