View previous topic :: View next topic |
Author |
Message |
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Fri Dec 20, 2002 7:15 pm Post subject: can not compile anything! |
|
|
Hello!
I use gento 1.4rc1...
But now, every package I want to emerge fails with this error:
>>> Merging sys-apps/portage-2.0.46-r2 to /
Traceback (most recent call last):
File "/usr/bin/emerge", line 1709, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1079, in merge
retval=portage.doebuild(y,"merge",myroot,edebug)
File "/usr/lib/python2.2/site-packages/portage.py", line 1277, in doebuild
return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
File "/usr/lib/python2.2/site-packages/portage.py", line 1503, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3981, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3663, in treewalk
counter=db[destroot]["vartree"].dbapi.counter_tick()
File "/usr/lib/python2.2/site-packages/portage.py", line 2558, in counter_tick
return counter_tick_core(self.root)
File "/usr/lib/python2.2/site-packages/portage.py", line 2524, in counter_tick_core
counter=long(cfile.readline())
IOError: [Errno 21] Is a directory |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Dec 20, 2002 8:45 pm Post subject: |
|
|
Could you post the result of Code: | $ ls -l /var/cache/edb | ...is it possible that counter somehow is a directory? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Fri Dec 20, 2002 10:44 pm Post subject: |
|
|
Code: |
bash-2.05b# ls -l /var/cache/edb
total 56
-rw-r--r-- 1 root root 4773 Dec 18 23:59 config
drwxr-xr-x 3 root root 17 Dec 18 23:59 counter
drwxrwsr-x 70 root wheel 4096 Dec 18 21:21 dep
-rw-rw-r-- 1 root wheel 35966 Dec 20 21:41 mtimedb
-rw-r--r-- 1 root root 570 Dec 15 16:17 virtuals
-rw-r--r-- 1 root root 2154 Dec 18 23:59 world
|
|
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Dec 20, 2002 10:54 pm Post subject: |
|
|
Yeah, that's what I thought. Move that "counter" directory out of the way, in case it contains something important (what's in there, anyway?), and: Code: | # touch /var/cache/edb/counter |
_________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Fri Dec 20, 2002 10:58 pm Post subject: |
|
|
I made this and did a emerge -u portage!
BUT NOW, EMERGE IS NO LONGER THERE!!!
Code: |
bash-2.05b# ls -la eme*
-rwxr-xr-x 1 root root 0 Dec 15 12:15 emerge
-rwxr-xr-x 1 root root 1213 Nov 28 20:57 emerge-webrsync
|
please help me! |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Dec 21, 2002 12:14 am Post subject: |
|
|
You might want to back up that partition and run fsck on it. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Sat Dec 21, 2002 10:37 am Post subject: |
|
|
backuping will not help the it looks like the emerge script has overwritten itself with an empty file!
Could you give me a tip, how to get emerge on the system? |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Dec 21, 2002 11:40 am Post subject: |
|
|
There are portage rescue tarballs in /usr/portage/sys-apps/portage/files. You can unpack one across your root partition. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Sat Dec 21, 2002 1:27 pm Post subject: |
|
|
thank you!!!
I restored portage (emerge) with the tarball and everyting looks finde at this moment! |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Sat Dec 21, 2002 2:31 pm Post subject: |
|
|
after an emerge -u gcc with the rescue portage, I get this error whenever I run it!
Code: | bash-2.05b# emerge --pretend -u world
python2.2: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory |
|
|
Back to top |
|
|
iKiddo Guru
Joined: 27 Jun 2002 Posts: 341 Location: Europe?
|
Posted: Sat Dec 21, 2002 2:53 pm Post subject: |
|
|
Have you already upgraded to a newer portage ? |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Sat Dec 21, 2002 3:12 pm Post subject: |
|
|
no... I yust runed a emerge -u xawtv... and gcc was the dependency of it! |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sat Dec 21, 2002 7:14 pm Post subject: |
|
|
Did you ever run fsck on this partition? I fear that the filesystem is corrupted, and it may be that the disk is about to die on you. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
MrIch Apprentice
Joined: 25 May 2002 Posts: 204
|
Posted: Sat Dec 21, 2002 7:26 pm Post subject: |
|
|
the last fsck was very long ago...
Now I formted the partition and make a complete reinstall out of the stage3 tarball auf gentoo 1.4rc1
But I hope my disk is not dying, it is possible because it is an IBM HDD! |
|
Back to top |
|
|
|