| View previous topic :: View next topic |
| Author |
Message |
IRQsRFun Apprentice

Joined: 02 May 2003 Posts: 194 Location: Somewhere between .3 and .7 Vdd
|
Posted: Sat Jan 02, 2010 1:33 pm Post subject: Killed GCC and can not get it back (solved) |
|
|
I have been trying to update a rather old Gentoo install. I have accidentally managed to kill gcc and severly cripple the system in other ways (ie man does not work). I suspect that I may still have the compiled binaries, but I do not know how to massage portage to re-install gcc.
Any help would be appreciated.
| Quote: |
/ # eselect profile set 1
/ # source /etc/profile
/ # emerge gcc -K
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
/ # emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.1.6.13 (default/linux/x86/10.0, [unavailable], glibc-2.9_p20081201-r2, 2.6.27-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r1-i686-VIA_Esther_processor_1200MHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 27 Dec 2009 01:15:01 +0000
app-shells/bash: 4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python: 2.5.4-r3, 2.6.4
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-DuN --with-bdeps=y"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="Win32codecs X a52 acl alsa berkdb bzip2 cairo clearcase cli cracklib crypt cups cxx doc dri dts dv dvd dvdread exif ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk iconv ipv6 jadetex jpeg jpeg2k kde lm_sensors mmx mng modules mp3 mplayer mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt3 qt4 raw readline reflection session spl srt sse sse2 ssl subversion svg sysfs tcpd tiff tk unicode vorbis wmf x86 xfase xine xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="via"
Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
/ #
|
Last edited by IRQsRFun on Sat Jan 02, 2010 2:54 pm; edited 1 time in total |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Sat Jan 02, 2010 2:02 pm Post subject: |
|
|
IRQsRFun,
Start with installing a gcc does not automatically select it.
If you have a gcc installed that will find it.
If gcc is missing, fetch the binary you need for your arch from tinderbox.dev.gentoo.org and untar the binary to your / (root)
Ignore the warninga bout extra garbage at end of file ignored. You will still need to select gcc with gcc-config _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
IRQsRFun Apprentice

Joined: 02 May 2003 Posts: 194 Location: Somewhere between .3 and .7 Vdd
|
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Sat Jan 02, 2010 4:14 pm Post subject: |
|
|
IRQsRFun,
Thats the right thing to do. You probably noticed that these is lots more things in the tinderbox.
You may yest need them to be able to update your system _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
|
|
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
|
|