[ILUG] http://www.linux.ie/archive/msg02119.html Re: checking whether the C compiler (gcc ) works... no
Luke Trif
lucian at excitehome.net
Mon Sep 18 18:46:32 IST 2000
Hello C.,
Monday, September 18, 2000, 10:22:57 AM, you wrote:
CH> [It's usually better to reply to a list as you will get more responses,
CH> quicker, and probably better (in case the responder makes a mistake :-)]
CH> Luke Trif wrote:
>>
>> Hello C.,
>>
>> Monday, September 18, 2000, 2:40:05 AM, you wrote:
>>
>> CH> Luke Trif wrote:
>> >>
>> >> Hello ilug,
>> >>
>> >> I am using Linux mandrake and am getting the same msg on everything
>> >> that i try to compile. i cant install anything that is in *.tar
>> >> format. If you can take a look at the errors that i am getting and
>> >> point me in the right direction i would apreciate it..
>> >> i have ran the command you specified in the reply msg and pasted the
>> >> results in here
>> >> I am using linux mandrake 7.0 with gcc ver 2.95
>> >> sh -x ./configure >configure.log 2>&1
>> >>
>> >> checking for gcc... gcc
>> >> > checking whether the C compiler (gcc ) works... no
>> >> > configure: error: installation or configuration problem: C compiler
>> CH> [snip]
>>
>> CH> Is it possible that either the compielr gcc is not installed or that it is
>> CH> not installed correctly ?
>>
>> CH> What results do you get if you save the text below (e.g. to example.c ) :
>> CH> int main()
>> CH> {
>> CH> printf("hello world\n" );
>> CH> }
>>
>> CH> and try to compile it with the command "gcc example.c -o example".
>>
>> CH> This should prove whether your compiler works or not.
>>
>> CH> Con
>>
>> after taking the above step this is what i got
>> [root at ADSL lukegt]# gcc test.c -o test
>> /usr/lib/libc.a: could not read symbols: Malformed archive
>> collect2: ld returned 1 exit status
CH> A dodgy /usr/lib/libc.a is VERY strange. What does the output of the command
CH> "file /usr/lib/libc.a" show ?
CH> Also do run "locate /usr/lib/libc.a".
CH> Do you have any environemnt variables setup ?
Run "env >> /tmp/env" and attach the file /tmp/env to the email.
CH> Con
here it is.. env >>/tmp/env
[lukegt at ADSL lukegt]$ cat /tmp/env
PWD=/home/lukegt
XAUTHORITY=/home/lukegt/.Xauthority
REMOTEHOST=ops-pc-24-0-24-160.custops.home.net
HOSTNAME=ADSL
HISTFILESIZE=1000
LESSKEY=/etc/.less
LANGUAGE=en
PS1=[\u@\h \W]\$
KDEDIR=/usr
LESS=-MM
USER=lukegt
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35:
MACHTYPE=i586-mandrake-linux-gnu
LC_ALL=en
MAIL=/var/spool/mail/lukegt
INPUTRC=/etc/inputrc
LINGUAS=en_US:en
BASH_ENV=/home/lukegt/.bashrc
LANG=en
LOGNAME=lukegt
SHLVL=1
SHELL=/bin/bash
USERNAME=
HOSTTYPE=i586
OSTYPE=linux-gnu
HISTSIZE=1000
TERM=vt100
HOME=/home/lukegt
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/lukegt/bin
SECURE_LEVEL=2
_=/usr/bin/env
PWD=/home/lukegt
XAUTHORITY=/home/lukegt/.Xauthority
REMOTEHOST=ops-pc-24-0-24-160.custops.home.net
HOSTNAME=ADSL
HISTFILESIZE=1000
LESSKEY=/etc/.less
LANGUAGE=en
PS1=[\u@\h \W]\$
KDEDIR=/usr
LESS=-MM
USER=lukegt
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35:
MACHTYPE=i586-mandrake-linux-gnu
LC_ALL=en
MAIL=/var/spool/mail/lukegt
INPUTRC=/etc/inputrc
LINGUAS=en_US:en
BASH_ENV=/home/lukegt/.bashrc
LANG=en
LOGNAME=lukegt
SHLVL=1
SHELL=/bin/bash
USERNAME=
HOSTTYPE=i586
OSTYPE=linux-gnu
HISTSIZE=1000
TERM=vt100
HOME=/home/lukegt
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/lukegt/bin
SECURE_LEVEL=2
_=/usr/bin/env
[lukegt at ADSL lukegt]$
--
Best regards,
Luke mailto:lucian at excitehome.net
More information about the ILUG
mailing list