View previous topic :: View next topic |
Author |
Message |
eponymous Tux's lil' helper
Joined: 02 Feb 2005 Posts: 141
|
Posted: Mon Jan 24, 2011 9:45 am Post subject: GCC removed - now I need it back! |
|
|
Hi,
For reasons that are long and complicated, I unmerged gcc and now I want it back since I have no C compiler.
I've scoured Google and this forum for help but a lot of it is very out of date or doesn't seem relevant anymore.
Anyway, I've tried unpacking a stage3 and manually copied every file associated with gcc (I just looked at the /etc/env.d/gcc/x86_64_gcc.... file for info) from the stage3 back onto my system but this didn't work.
When I try to emerge gcc, I get "C compiler cannot create executables".
I've made sure I've selected a profile with gcc-config as well.
Any ideas?
Thanks. |
|
Back to top |
|
|
lxg Veteran
Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
|
Back to top |
|
|
eponymous Tux's lil' helper
Joined: 02 Feb 2005 Posts: 141
|
Posted: Mon Jan 24, 2011 10:44 am Post subject: |
|
|
I did try that but to be hoenst I wasn't fully sure about what chithanh was saying :S
chithanh wrote: | Best check this FAQ before unmerging anything which you did not install yourself.
Regarding your issue of unmerging gcc, extracting the tarball onto a system is not enough. You need to appropriately place it in /usr/portage/packages (best copy the whole directory from stage3 chroot) then run
Code:
emerge --usepkgonly gcc |
The /usr/portage/packages directory doesn't exist in the stage3 I downloaded...
Any ideas? |
|
Back to top |
|
|
eponymous Tux's lil' helper
Joined: 02 Feb 2005 Posts: 141
|
Posted: Mon Jan 24, 2011 4:54 pm Post subject: |
|
|
Can anyone help? I'm not sure what that other guy meant exactly. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
eponymous Tux's lil' helper
Joined: 02 Feb 2005 Posts: 141
|
Posted: Mon Jan 24, 2011 10:57 pm Post subject: |
|
|
tomk wrote: | Try the instructions here. |
thanks |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Tue Jan 25, 2011 2:35 pm Post subject: |
|
|
You might also like the ROOT variable in make.conf.
That way you can boot into Gentoo live CD and emerge gcc using the GCC of the live cd. _________________ My blog |
|
Back to top |
|
|
|