Jump to content

gcc not installed? help


Recommended Posts

Okay I am extremely new to linux (mandriva one) .. BUT I LIKE IT... except for one annoying problem. I cannot seem to install any software using gunzip and tar. I try and keep getting errors. When i use ./configure it says i have no c compiler. I tried to install gcc rpm.. and it looked like it intalled well but i still cannot get the programs to install. I even tried to install it thru the MCC program.. with no luck. I am at a loss.

for example here is the output for my attempt to install superkaramba:

------------------------------------------------------------------------------

[root@localhost superkaramba-0.39]# ./configure

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking for -p flag to install... yes

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets $(MAKE)... no

checking for kde-config... /usr/bin/kde-config

checking where to install... /usr (as returned by kde-config)

checking for style of include used by make... none

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking dependency style of gcc... none

checking how to run the C preprocessor... gcc -E

checking for g++... no

checking for c++... no

checking for gpp... no

checking for aCC... no

checking for CC... no

checking for cxx... no

checking for cc++... no

checking for cl... no

checking for FCC... no

checking for KCC... no

checking for RCC... no

checking for xlC_r... no

checking for xlC... no

checking whether we are using the GNU C++ compiler... no

checking whether g++ accepts -g... no

checking dependency style of g++... none

checking whether gcc is blacklisted... no

checking whether g++ supports -Wmissing-format-attribute... no

checking whether gcc supports -Wmissing-format-attribute... yes

checking whether g++ supports -Wundef... no

checking whether g++ supports -Wno-long-long... no

checking whether g++ supports -Wno-non-virtual-dtor... no

checking how to run the C++ preprocessor... /lib/cpp

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

See `config.log' for more details.

--------------------------------------------------------------------------------

 

HERE IS THE config.log

-------------------------------------------------------------------------------

This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

 

It was created by configure, which was

generated by GNU Autoconf 2.59. Invocation command line was

 

$ ./configure

 

## --------- ##

## Platform. ##

## --------- ##

 

hostname = localhost

uname -m = i686

uname -r = 2.6.12-19mdk-i586-up-1GB

uname -s = Linux

uname -v = #1 Mon Apr 10 13:28:48 EDT 2006

 

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

 

/bin/arch = i686

/usr/bin/arch -k = unknown

"config.log" 1005L, 25898C 1,1 Top

-------------------------------------------------------------------------------

 

I dont kow what to do...

Please help me

Thanks

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking dependency style of gcc... none

checking how to run the C preprocessor... gcc -E

checking how to run the C++ preprocessor... /lib/cpp

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

 

Yep you have got half way there i think..

 

Take a look at the packaes under the packages install for gcc-cpp

 

It looks like the configure is looking for some C++ things.

Name: gcc-cpp

Summary: The C Preprocessor

Link to comment
Share on other sites

Okay i got much father... but i got:

-----------------------------------------------------------

checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

-------------------------------------------------------------

what does that mean? \

 

 

I am sorry i am such a noob.... I just havent found any great sites that explain this stuff to me... I think i shall go buy a book on it this week....

Link to comment
Share on other sites

checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

 

It is looking for some files that the compiler will need later.

 

qt3-devel

kdelibs3-devel

python-devel

 

Check you have these three installed the devel means these include files so you can make new programs.

 

 

They are not very helpfull are they on their website..

.......... with a bunch of libraries.

 

Which ones would help you..

 

i had a look at the file that you are trying by opening it up in kate and it looks like this is the line..

 

if test "$kde_x_includes" = NO; then

{ { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and

 

so the kdelibs is not installed (Development version)

Link to comment
Share on other sites

Possibly install libxorg-x11-devel. Probably what it is looking for.

 

 

I keep getting error after error....

First it was ...

----------------------------------------------------

Sorry, the following package(s) can't be selected:

 

libxorg-x11-devel-6.9.0-5.6.20060mdk.i586 (due to missing libfreetype6-devel-2.1.10-9.1.20060mdk.i586)

----------------------------------------------------------

then i found the linbfreetype6-devel rpm then it said i was missing libpng-devel... found that and then it said that it couldnt install because i was missing zlib-devel then i found that and then it said that the urpmi database was locked ...

i tried to unlock it using

rm -f/var/lib/urpmi/.LOCK

but said file does not exist...

I am really trying... i think my distro is missing a huge part of the devel files....

I installed this from the mandriva one . Live install disc...

I dont know what to do.... I am a total noob... every time i try to install some thing it says there is something else it needs first

Link to comment
Share on other sites

first check your URMPI databases..

 

See the link in grey at the top Easy-URPMI

 

Use that link first to make sure your sources are ok.

 

Once you have done that all the files should be there for download and installation.

 

A lot of the Devel files will require other ones but they should be there on the Download servers.

 

Sometimes they do miss one or another.

 

When i have to search for ones i use

 

RPMFIND.net

rpmseek.com

 

It always takes a few tries to get it right first time.. We are all learning..

 

stay cool you are getting there..

Link to comment
Share on other sites

avogodro:

 

You are attempting to install software by compiling source code. Take the advice of michaelcole and setup your system to install software using urpmi instead. This will give you access to a HUGE amount of software in rpm form, which is much easier to install because dependencies are handled automatically.

 

You are new to linux, install software using urpmi. When you gain some experience you can move on to compiling source code.

Link to comment
Share on other sites

Thanks I have gotten the urpmi working... That helps out a lot...BUT i am still having the problem of having something unsatisfied... specifically i am trying to install zlib-devel because x11-devel needes it... but it needs autoconf2.5.. i installed this and it still tells me that it needs autoconf2.5. I am sorry for being such an noob... BUT I do want to thank you for your patience and your responses. I think this is the most responses I have ever recieved on any board for any question I have asked (esp the windows boards)..... Thank you

Link to comment
Share on other sites

Make sure you have your easyurpmi repositories set up. Click the link at the top of this page and add main, contrib, updates, plf-free and plf-nonfree. You'll then be able to get the software you need.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...