View previous topic :: View next topic |
Author |
Message |
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Thu Jul 28, 2016 4:21 pm Post subject: Accidentally removed part of /etc |
|
|
I'm writing this from SystemRescueCD because my browsers are broken ("libstdc++.so.6 no such file or directory").
Still I don't have an overall view of the damage, but the immediate problem is that I can't build anything.
Code: |
configure:3941: checking for x86_64-pc-linux-gnu-gcc
configure:3968: result: gcc
configure:4237: checking for C compiler version
configure:4246: gcc --version >&5
* gcc-config: No gcc profile is active!
/usr/bin/gcc-config: line 72: /etc/env.d/gcc/config-x86_64-pc-linux-gnu: No such file or directory
gcc-config: error: could not run/locate 'gcc'
configure:4257: $? = 1
configure:4246: gcc -v >&5
* gcc-config: No gcc profile is active!
|
At the moment I'm downloading stage3 tarball, so I can replace the contents for /etc/env.d. Is there any advice for this? |
|
Back to top |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 233
|
Posted: Thu Jul 28, 2016 5:14 pm Post subject: |
|
|
Check your gcc config using "gcc-config -l". Also try "qcheck". You'll probably have to find some binary packages too. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Thu Jul 28, 2016 6:39 pm Post subject: |
|
|
alinefr,
In case of fire ... Break Glass _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Thu Jul 28, 2016 9:15 pm Post subject: |
|
|
Thanks for the tips. By moving the contents from stage3 to etc/env.d gcc is back working.
@NeadySeagoon, this rescue environment seems awesome.
I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work. |
|
Back to top |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 233
|
Posted: Thu Jul 28, 2016 11:40 pm Post subject: |
|
|
alinefr wrote: | I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work. |
This has just reminded me of the time I had run "sudo rm -rf --no-preserve-root /" followed by an immediate <C-c>. It was fun figuring all affected packages. |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Fri Jul 29, 2016 1:25 am Post subject: |
|
|
bstaletic wrote: | alinefr wrote: | I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work. |
This has just reminded me of the time I had run "sudo rm -rf --no-preserve-root /" followed by an immediate <C-c>. It was fun figuring all affected packages. |
I did nearly this, but with. /etc as target. And it took me a second to realize that the keyboard was in qwerty instead of dvorak as I'm used to.
I'm rebuilding everything, otherwise I will never find out whats missing. |
|
Back to top |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 233
|
Posted: Fri Jul 29, 2016 9:25 am Post subject: |
|
|
alinefr wrote: | ...I will never find out whats missing. |
can tell you which package is missing which files. It belong to portage-utils package.
EDIT:
Sorry for offtopic question. Are you by any chance a vim user? If you are, how's vim with dvorak? |
|
Back to top |
|
|
Syl20 l33t
Joined: 04 Aug 2005 Posts: 619 Location: France
|
Posted: Fri Jul 29, 2016 1:28 pm Post subject: |
|
|
alinefr wrote: | After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work. |
Oh, another mission for Captain Makebackups ! |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Fri Jul 29, 2016 2:01 pm Post subject: |
|
|
bstaletic wrote: | alinefr wrote: | ...I will never find out whats missing. |
can tell you which package is missing which files. It belong to portage-utils package.
|
I didn't knew about qcheck. Brillant!
bstaletic wrote: | EDIT:
Sorry for offtopic question. Are you by any chance a vim user? If you are, how's vim with dvorak? |
You need to relearn vim as you learn dvorak, but it was easier than writing texts.
"hl " keys are in the position of "jp" in qwerty. "jk" in the same as "cv".
Some keys are more convenient positioned, like "wb" in the position of ",n".
There is a vim plugin which keeps the same keys as in qwerty except in INSERT mode but I decided to relearn the proper keys in dvorak.
Last edited by alinefr on Fri Jul 29, 2016 3:47 pm; edited 1 time in total |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Fri Jul 29, 2016 2:13 pm Post subject: |
|
|
Syl20 wrote: | alinefr wrote: | After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work. |
Oh, another mission for Captain Makebackups ! |
Haha! Yes, I do have backups for my home, but not for the system. I have to do something about it, at least for /etc. |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Fri Jul 29, 2016 3:18 pm Post subject: |
|
|
This sounds like a more general problem, but since the topic contained "/etc" I'll put in a plug for the "etckeeper" package. Put your /etc into git and push it up to the server for safekeeping - where the git repositories also get backed up onto removable media. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Sat Jul 30, 2016 3:19 pm Post subject: |
|
|
So my system is back! I've lost a lot of configs, some of then very annoying, like font configuration.
depontius wrote: | This sounds like a more general problem, but since the topic contained "/etc" I'll put in a plug for the "etckeeper" package. Put your /etc into git and push it up to the server for safekeeping - where the git repositories also get backed up onto removable media. |
Thanks @depontius, I will play around with etckeeper. It seems what I need. |
|
Back to top |
|
|
|