Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing slang breaks the emerge script [SOLVED]
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
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Sat Jul 04, 2015 5:12 am    Post subject: Installing slang breaks the emerge script [SOLVED] Reply with quote

I'm building a new Gentoo installation (first in about three years) and have followed the new Handbook using the Minimal Install CD. All went OK until the end of "Installation_Base". At that point I decided to install Midnight Commander. "emerge mc" failed with:

Code:
configure: error: S-Lang library version 2.0 or newer not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-misc/mc-4.8.14/work/mc-4.8.14/config.log
 * ERROR: app-misc/mc-4.8.14::gentoo failed (configure phase):
 *   econf failed


I assume that there's a missing dependency in the MC ebuild, so I invoked "emerge slang". This installed 70 packages. After that, invoking emerge produces:
Code:

(chroot) livecd / # emerge @preserved-rebuild
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 44, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python2.7/site-packages/_emerge/main.py", line 23, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
ImportError: No module named sync
(chroot) livecd / # emerge mc
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 44, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python2.7/site-packages/_emerge/main.py", line 23, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
ImportError: No module named sync
(chroot) livecd / # emerge --version
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 44, in <module>
    from _emerge.main import emerge_main
  File "/usr/lib/python2.7/site-packages/_emerge/main.py", line 23, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
ImportError: No module named sync
(chroot) livecd / # which emerge
/usr/bin/emerge
(chroot) livecd / #


I've captured a long list of unmerges etc, but at this stage I can only assume that my new build is broken and I'll have to restart.

Can anyone offer assistance here? Most grateful for anything that might save the new install.


Last edited by 52midnight on Sat Jul 04, 2015 1:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Jul 04, 2015 1:14 pm    Post subject: Reply with quote

Well, as portage seems to be temporarily down, some of the data will likely need to be gathered manually...

So, first 'eselect python list', then check the content of /var/db/pkg/sys-apps/portage-<version>/USE to see which python versions was portage installed for.
Back to top
View user's profile Send private message
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Sat Jul 04, 2015 1:24 pm    Post subject: Reply with quote

VoidMage wrote:
Well, as portage seems to be temporarily down, some of the data will likely need to be gathered manually...


Thanks for the tip. I got onto IRC and found the problem - needs a restart. Have marked this SOLVED.
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