Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC removed - now I need it back!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 136

PostPosted: Mon Jan 24, 2011 9:45 am    Post subject: GCC removed - now I need it back! Reply with quote

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
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Mon Jan 24, 2011 10:09 am    Post subject: Reply with quote

Please have a look at this entry: http://forums.gentoo.org/viewtopic-t-827700-start-0.html

Does that help?
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 136

PostPosted: Mon Jan 24, 2011 10:44 am    Post subject: Reply with quote

lxg wrote:
Please have a look at this entry: http://forums.gentoo.org/viewtopic-t-827700-start-0.html

Does that help?


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
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 136

PostPosted: Mon Jan 24, 2011 4:54 pm    Post subject: Reply with quote

Can anyone help? I'm not sure what that other guy meant exactly.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Mon Jan 24, 2011 6:01 pm    Post subject: Reply with quote

Try the instructions here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 136

PostPosted: Mon Jan 24, 2011 10:57 pm    Post subject: Reply with quote

tomk wrote:
Try the instructions here.


thanks
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2138
Location: $TERM

PostPosted: Tue Jan 25, 2011 2:35 pm    Post subject: Reply with quote

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.
_________________
Buy from companies supporting opensource -- IBM, Dell, HP, Hitachi, Google etc...
Disfavor companies supporting only Win -- Logitech, Epson, Adobe, Autodesk, Pioneer, Kingston, WD, Yahoo, MSI, XFX
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum