LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   error configuration? (https://www.linuxquestions.org/questions/suse-opensuse-60/error-configuration-594347/)

chars098 10-24-2007 05:47 PM

error configuration?
 
Hi I have come up against something greater than me and most people would say reinstall but I say no because I am the exception. I was wondering if someone can help me with this because they like to solve problems. This is a common error because I have searched and searched but received no complete answers to my own situation. Here it goes. I have installed openSUSE 10.3. I am trying at the moment to install a component on this desktop machine which refuses to install. It is displayed in yast as installed which is gcc. I have installed from cd installation except it shows up as being uninstalled.

These are the components showing up as being installed in YAST

gcc-ij
gcc42-gij
libgcc42
libgcj42

If there are any other components that need installing please tell me.

So I decided to manually install gcc after that so I downloaded the component gcc4.2.2 from the opensuse website repositories. I extract it and place it in usr/bin folder I try to install and the configuration log of the new gcc says.

configure 630: checking host system type
configure 651: checking target system type
configure 669: checking build system type
configure 724 checking for a BSD compatible install
configure 777: checking whether ln works
configure 801: checking whether ln -s works
configure 1886: checking whether the C compiler (gcc )
configure 1995: gcc -o conftest conftest.c 1>65
./configure: line 1994: gcc: command not found
configure: failed program was:

#line 1990 "configure"
#include "confdefs.h"

main (){return(0);}

How do I get it to recognize this gcc? I'll just mention this as well. there is another folder in usr/bin called gcc already this is probably the YAST installed gcc which doesn't work. Also when trying to install the new gcc it says something about configure: error: installation or configuration problem: C compiler cannot create executables. This is a biggie.

Cheers,

Chars

{BBI}Nexus{BBI} 10-24-2007 06:25 PM

This package contains the c++ compiler ftp.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/i586/gcc42-c++-4.2.2_20071008-2.i586.rpm. Maybe that's what you need to install.

chars098 10-25-2007 09:02 AM

Thanks many,

I followed your instructions but now I'm stuck on one area. I need a dependency called the linux-kernel headers. Where do I find this I don't know where to look for it because I don't know what they are but I do know there are different builds of the kernel. Can someone help me find them?

Cheers,

Char

{BBI}Nexus{BBI} 10-25-2007 01:43 PM

Quote:

Originally Posted by chars098 (Post 2936386)
Thanks many,

I followed your instructions but now I'm stuck on one area. I need a dependency called the linux-kernel headers. Where do I find this I don't know where to look for it because I don't know what they are but I do know there are different builds of the kernel. Can someone help me find them?

Cheers,

Char

Sure, first start a terminal or console session and type: uname -r, this will show your current kernel. Next use your package manager (or commandline) to locate and add your kernel-source, select the one that matches your current kernel.

e.g. If uname -r returns 2.6.22.9-xxx-xxx you need the kernel-source that matches 2.6.22.9-xxx-xxx, it may show up as kernel-source-2.6.22.9-xxx-xxx (remember this is only an example, yours may differ in what is displayed).

chars098 10-26-2007 04:31 AM

thanks for the help bear with me. It still says I need linux kernel headers even though I installed the kernel source. I think from what I've searched the kernel headers are a seperate package but I can't to find them on the open suse website repositories. debian has them on their website though. I've been to this roadblock before with the kernel headers. Is it possible that suse has them somewhere am I on the right track?

Cheers,

char

{BBI}Nexus{BBI} 10-26-2007 10:47 AM

Quote:

Originally Posted by chars098 (Post 2937387)
thanks for the help bear with me. It still says I need linux kernel headers even though I installed the kernel source. I think from what I've searched the kernel headers are a seperate package but I can't to find them on the open suse website repositories. debian has them on their website though. I've been to this roadblock before with the kernel headers. Is it possible that suse has them somewhere am I on the right track?

Cheers,

char

Go here: http://rpm.pbone.net/. Click the Advanced RPM Search link, Click Uncheck All. Put a check mark where is says OpenSuSe. Now in the search box type: kernel-headers, then click search. Choose the one that matches your current kernel.

chars098 10-27-2007 07:32 PM

thanks! thats solved now but now I have another question to ask. I keep getting an error with a program I'm meant to install gnu compiler. I don't know where I can locate these packages I thought it was something to do with gcc. I'll come back to you. I found out that gcc is not installed yet or these other dependencies autoconf and automake need installing see how I go.

cheers,


char

chars098 10-27-2007 09:01 PM

gcc still doesn't seem to be installed. I ran this command sudo zypper install gcc make automake autoconf kernel-source and it comes up as not being installed even though I did install it just before and it seemed to install perfectly anyway except for this. Any ideas?
cheers,



char

{BBI}Nexus{BBI} 10-28-2007 12:07 AM

Startup YaST (Yet another Setup Tool) using the search facility find each of these and mark them for install: glibc-devel, gcc & make. Now hit that install button :)


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