View previous topic :: View next topic |
Author |
Message |
fanatico n00b
Joined: 30 Jul 2011 Posts: 30
|
Posted: Wed Aug 10, 2011 8:50 am Post subject: no gcc |
|
|
Hi.
I'am from Poland and i'am sorry for my English. I dont know how install gcc. I was deleted accidentally gcc and i dont know what now?
gcc-config -1
Quote: |
* gcc-config: Invalid switch! Run gcc-config without parametrs for help.
|
gcc-config -l
Quote: |
* gcc-config: Active gcc profile is invalid!
|
|
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Wed Aug 10, 2011 9:03 am Post subject: |
|
|
Download a suitable sys-devel/gcc tarball from http://tinderbox.dev.gentoo.org/ (hardened or default and so on), place it in PKGDIR (portageq envvar PKGDIR if you are unsure where that is), emerge -K sys-devel/gcc, then emerge sys-devel/gcc to build it with your chosen settings. |
|
Back to top |
|
|
fanatico n00b
Joined: 30 Jul 2011 Posts: 30
|
Posted: Wed Aug 10, 2011 10:34 am Post subject: |
|
|
Hi.
When I try emerge –K sys-devel/gcc and emerge sys-devel/gcc I have this statement:
Quote: | Checking whether the C compiler works ..no
Configure: error: in ‘/var/tmp/portage/dev-libs/mpc-0.9/work/mpc-0.9’:
Confiugure: error: C compiler cannot create executables
See ‘config.log’ for more details
… |
This is not all, but I must write on different computer and this is very hard for me. My browser doesn’t work fine and I’am tired. Should I reinstall system? Is there some hope for me? |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Wed Aug 10, 2011 12:43 pm Post subject: |
|
|
There is hope, but we'll need to see the config.log. It should be in /var/tmp/portage/dev-libs/mpc-0.9/work/config.log if I'm not mistaken. |
|
Back to top |
|
|
|