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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-29-2003, 07:26 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Rep:
|
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
|
|
|
08-29-2003, 07:57 AM
|
#2
|
Member
Registered: Jul 2003
Distribution: Debian sarge
Posts: 40
Rep:
|
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
|
|
|
08-29-2003, 08:57 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
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
|
|
|
08-29-2003, 10:05 PM
|
#4
|
LQ Newbie
Registered: Aug 2003
Location: PA
Distribution: Mandrake 9.1
Posts: 2
Rep:
|
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.
|
|
|
08-29-2003, 10:33 PM
|
#5
|
LQ Newbie
Registered: Jun 2003
Location: Seabeck WA,USA
Distribution: gentoo hybrid
Posts: 29
Rep:
|
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.
|
|
|
08-29-2003, 10:36 PM
|
#6
|
LQ Newbie
Registered: Aug 2003
Location: PA
Distribution: Mandrake 9.1
Posts: 2
Rep:
|
Thanks for the reply, but the version I bought off Amazon, was a 2-cd version, I think it's the standard version.
|
|
|
08-30-2003, 12:40 AM
|
#7
|
LQ Newbie
Registered: Jun 2003
Location: Seabeck WA,USA
Distribution: gentoo hybrid
Posts: 29
Rep:
|
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.
|
|
|
08-30-2003, 03:58 AM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
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
|
|
|
08-30-2003, 02:20 PM
|
#9
|
LQ Newbie
Registered: Aug 2003
Posts: 4
Original Poster
Rep:
|
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 02:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|