This is a discussion on weird gcc compiler issues, can't install within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm trying to install Snort on my Fedorea Core 2 system. I get the error on ./configure that I ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to install Snort on my Fedorea Core 2 system. I get the error on ./configure that I need libpcap. Fine. So I download it, and on ./configure get this error: configure: error: installation or configuration problem: C compiler cannot create executables. Odd. I do this: [root@fileserve tmp]# which gcc /usr/bin/gcc I seem to have a compiler. [root@fileserve tmp]# echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin And it's in my path. But, I decide to go ahead and download and install a newer gcc just in case. And when I ./configure it, I get: [root@fileserve gcc-3.4.2]# ./configure loading cache ./config.cache checking host system type... i586-pc-linux-gnulibc1 checking target system type... i586-pc-linux-gnulibc1 checking build system type... i586-pc-linux-gnulibc1 checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libffi target-boehm-gc target-zlib target-libjava (Any other directories should still work fine.) /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. OK, now I have no idea what to do now. Any clues what I should look at? Thanks! Liam |
| |||
| LRW wrote: > I'm trying to install Snort on my Fedorea Core 2 system. > I get the error on ./configure that I need libpcap. > Fine. > So I download it, and on ./configure get this error: > > configure: error: installation or configuration problem: C compiler > cannot create executables. > > Odd. I do this: > [root@fileserve tmp]# which gcc > /usr/bin/gcc > > I seem to have a compiler. > [root@fileserve tmp]# echo $PATH > /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin > > And it's in my path. > But, I decide to go ahead and download and install a newer gcc just in > case. > And when I ./configure it, I get: > > [root@fileserve gcc-3.4.2]# ./configure > loading cache ./config.cache > checking host system type... i586-pc-linux-gnulibc1 > checking target system type... i586-pc-linux-gnulibc1 > checking build system type... i586-pc-linux-gnulibc1 > checking for a BSD compatible install... /usr/bin/install -c > *** This configuration is not supported in the following > subdirectories: > target-libffi target-boehm-gc target-zlib target-libjava > (Any other directories should still work fine.) > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > *** The command 'gcc -o conftest -g -O2 conftest.c' failed. > *** You must set the environment variable CC to a working compiler. > > OK, now I have no idea what to do now. > Any clues what I should look at? Your installation seems to have the development C library missing - there is the compiler only. Sorry, I do not know the Fedora packages well enough to know its name. crt1.o is the runtime startup module needed to be linked to every executable. HTH Tauno Voipio tauno voipio (at) iki fi |
| |||
| Tauno Voipio wrote: > Your installation seems to have the development C library > missing - there is the compiler only. Sorry, I do not > know the Fedora packages well enough to know its name. $ locate crt1.o /usr/lib/crt1.o $ rpm -qf /usr/lib/crt1.o glibc-devel-2.3.3-74 The package that must be installed is glibc-devel, the version number will be different in FC2. -- Markku Kolkka markku.kolkka@iki.fi |
| |||
| Markku Kolkka <markku.kolkka@iki.fi> wrote in message news:<cmh2vc$4rk$1@phys-news1.kolumbus.fi>... > Tauno Voipio wrote: > > Your installation seems to have the development C library > > missing - there is the compiler only. Sorry, I do not > > know the Fedora packages well enough to know its name. > > $ locate crt1.o > /usr/lib/crt1.o > > $ rpm -qf /usr/lib/crt1.o > glibc-devel-2.3.3-74 > > The package that must be installed is glibc-devel, the version number > will be different in FC2. Not sure what you mean... I did "locate crt1.o" and it found nothing. So, I'll see if I can find my source CD's and install glibc-devel. Thanks. =) |
| ||||
| "LRW" <news@celticbear.com> wrote in message news:37a6c958.0411080728.783ac160@posting.google.c om... > Markku Kolkka <markku.kolkka@iki.fi> wrote in message news:<cmh2vc$4rk$1@phys-news1.kolumbus.fi>... > > Tauno Voipio wrote: > > > Your installation seems to have the development C library > > > missing - there is the compiler only. Sorry, I do not > > > know the Fedora packages well enough to know its name. > > > > $ locate crt1.o > > /usr/lib/crt1.o > > > > $ rpm -qf /usr/lib/crt1.o > > glibc-devel-2.3.3-74 > > > > The package that must be installed is glibc-devel, the version number > > will be different in FC2. > > Not sure what you mean... I did "locate crt1.o" and it found nothing. > So, I'll see if I can find my source CD's and install glibc-devel. > Thanks. =) If you have yum installed (which it is, by default), you should be able to do "yum install glibc-devel". |