View previous topic :: View next topic |
Author |
Message |
dogshu Apprentice
Joined: 22 Jun 2003 Posts: 173 Location: New Haven, CT, USA
|
Posted: Tue Jan 06, 2004 1:19 am Post subject: -bash: /usr/bin/qpkg: cannot execute binary file |
|
|
I'm running a sparc32 system and everything is up to date with the stable tree. I tried to "emerge unmerge gentoolkit" then "emerge gentoolkit" but I still have the same problem:
leech edb # qpkg
-bash: /usr/bin/qpkg: cannot execute binary file
vi verifies that this file is indeed binary, and here's what "file" has to say:
leech edb # file /usr/bin/qpkg
/usr/bin/qpkg: data
how do I get qpkg working? These are my CFLAGS, if that matters:
CFLAGS="-msupersparc -O2 -pipe"
thanks,
Jim |
|
Back to top |
|
|
esammer Retired Dev
Joined: 05 Apr 2003 Posts: 155 Location: NY, US
|
Posted: Tue Jan 06, 2004 8:07 am Post subject: |
|
|
That's really strange because qpkg is just a shell script...
Code: |
esammer@ripley esammer $ file /usr/bin/qpkg
/usr/bin/qpkg: Bourne-Again shell script text executable
|
|
|
Back to top |
|
|
dogshu Apprentice
Joined: 22 Jun 2003 Posts: 173 Location: New Haven, CT, USA
|
Posted: Wed Jan 07, 2004 12:11 am Post subject: |
|
|
very strange indeed.
/usr/portage/app-portage/gentoolkit/files/scripts/qpkg was corrupt on this system.
I run my own portage mirror for my machines, and I verified that app-portage/gentoolkit/files/scripts/qpkg was intact on that system... it was definately not corrupt.
However, /usr/portage/app-portage/gentoolkit/files/scripts/qpkg was still corrupted on my sparc even after I did an "emerge sync". I guess files that already exist are not synced?
Anyway, I manually copied the qpkg file from my mirror, and qpkg works now. |
|
Back to top |
|
|
esammer Retired Dev
Joined: 05 Apr 2003 Posts: 155 Location: NY, US
|
Posted: Wed Jan 07, 2004 12:19 am Post subject: |
|
|
Keep in mind that sync only syncs the ebuilds themselves. You should delete the saved package in /usr/portage/distfiles/gentoolkit* and emerge again and see if that helps. |
|
Back to top |
|
|
dogshu Apprentice
Joined: 22 Jun 2003 Posts: 173 Location: New Haven, CT, USA
|
Posted: Wed Jan 07, 2004 3:02 pm Post subject: |
|
|
actually there is no distfile for gentoolkit, everything is kept under /usr/portage/app-portage/gentoolkit/files/.
Manually copying the file from another gentoo machine worked for me, though I suppose I could have also deleted /usr/portage/app-portage/gentoolkit/files/scripts/qpkg and "emerge sync"ed again. |
|
Back to top |
|
|
|