creep root # emerge
/usr/bin/env: python2.2: No such file or directory
EDIT: Moved from Other Things Gentoo. Don't want this one to get pruned in case we turn that feature on. Probably ought to make this a FAQ. -- pjp
Code: Select all
# cd
# tar xzf /usr/portage/distfiles/Python-2.2.1.tgz
# cd Python-2.2.1
# ./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man
# make
# make install prefix=/usr
# rm /usr/bin/python 2>/dev/null
# ln -s /usr/bin/python2 /usr/bin/python
Code: Select all
emerge -p worldCode: Select all
These are the packages that I would merge, in order.
Oops: 0000
CPU: 0
EIP: 0010:[<c015ffe8>] Tainted: P
EFLAGS: 00010286
eax: 00000000 ebx: 00001000 ecx: ddef0000 edx: ddef52a0
esi: ddef5c00 edi: de3d8f40 ebp: ddfc9dc0 esp: dde55d98
ds: 0018 es: 0018 ss: 0018
Process install (pid: 1035, stackpage=dde55000)
Stack: ddfc9dc0 bf46999c dde55eb8 ddf11d9c 00000008 c2522dd4 ddef5c00 c0137ea2
c0139776 ddef5c00 00000000 bf46999c 00000010 ddef5c00 00000000 00000246
dde54000 00001000 00000010 c23c9600 00000054 00000008 ddf11d9c ddfc9dc0
Call Trace: [<c0137ea2>] [<c0139776>] [<c01699be>] [<c0165063>] [<c0165aa4>]
[<c015db6a>] [<c015db8c>] [<c016544b>] [<c015e0a4>] [<c015e032>] [<c015e043>]
[<c015e12c>] [<c0160ad4>] [<c013f780>] [<c01412a7>] [<c0141496>] [<c013f754>]
[<c0133dd3>] [<c010878f>]
Code: 8b 50 04 89 54 24 34 8b 48 08 89 4c 24 30 83 c4 14 8b 41 04
<6>note: install[1035] exited with preempt_count 1
Calculating world dependencies portage: aux_get(): (1) couldn't open cache entry for sys-apps/man-pages-1.54
(likely caused by syntax error or corruption in the sys-apps/man-pages-1.54 ebuild.)
Code: Select all
inferno root # uname -r
2.4.19-gentoo-r9
inferno root # gcc --version
gcc (GCC) 3.2
Don't know how mine got borked, but this worked for me with one minor alteration (2.2.2 instead of 2.2.1) - thanks delta407delta407 wrote:You might be able to reinstall Python using this:
Hopefully this will be enough of Python to let you "emerge python" again.Code: Select all
# cd # tar xzf /usr/portage/distfiles/Python-2.2.1.tgz # cd Python-2.2.1 # ./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man # make # make install prefix=/usr # rm /usr/bin/python 2>/dev/null # ln -s /usr/bin/python2 /usr/bin/python
Code: Select all
# cd
# tar xzf /usr/portage/distfiles/Python-2.4.2.tgz
# cd Python-2.2.1
# ./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man
# make
# make install prefix=/usr
# rm /usr/bin/python 2>/dev/null
# ln -s /usr/bin/python2.4 /usr/bin/python2
# ln -s /usr/bin/python2 /usr/bin/python
Code: Select all
emerge -C python
tar xzf /extra/download/Python-2.4.4.tar.bz2
cd Python-2.4.4
./configure --with-fpectl --infodir=/usr/share/info/ --mandir=/usr/share/man
make
make install prefix=/usr
rm /usr/bin/python 2>/dev/null
ln -s /usr/bin/python2.4 /usr/bin/python2
ln -s /usr/bin/python2 /usr/bin/python
Code: Select all
emerge python
Code: Select all
running build_scripts
creating build/scripts-2.4
copying and adjusting /extra/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Tools/scripts/pydoc -> build/scripts-2.4
copying and adjusting /extra/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Tools/scripts/idle -> build/scripts-2.4
copying and adjusting /extra/tmp/portage/dev-lang/python-2.4.4-r4/work/Python-2.4.4/Lib/smtpd.py -> build/scripts-2.4
changing mode of build/scripts-2.4/pydoc from 644 to 755
changing mode of build/scripts-2.4/idle from 644 to 755
changing mode of build/scripts-2.4/smtpd.py from 644 to 755
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/python-2.4.4-r4
>>> Install python-2.4.4-r4 into /extra/tmp/portage/dev-lang/python-2.4.4-r4/image/ category dev-lang
_tkinter _tkinter
Creating directory /usr/bin
Creating directory /usr/lib
/usr/bin/install -c python /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/bin/python2.4
if test -f libpython2.4.so; then \
if test ".so" = .dll; then \
/usr/bin/install -c -m 555 libpython2.4.so /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/bin; \
else \
/usr/bin/install -c -m 555 libpython2.4.so /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/libpython2.4.so.1.0; \
if test libpython2.4.so != libpython2.4.so.1.0; then \
(cd /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib; ln -sf libpython2.4.so.1.0 libpython2.4.so); \
fi \
fi; \
else true; \
fi
Creating directory /usr/lib/python2.4
Creating directory /usr/lib/python2.4/lib-old
Creating directory /usr/lib/python2.4/lib-tk
Creating directory /usr/lib/python2.4/site-packages
Creating directory /usr/lib/python2.4/test
Creating directory /usr/lib/python2.4/test/output
Creating directory /usr/lib/python2.4/test/decimaltestdata
.
.
.
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/xml/sax/handler.py ...
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/xml/sax/saxutils.py ...
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/xml/sax/xmlreader.py ...
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/xmllib.py ...
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/xmlrpclib.py ...
Compiling /extra/tmp/portage/dev-lang/python-2.4.4-r4/image//usr/lib/python2.4/zipfile.py ...
make: *** [libinstall] Error 1
*
* ERROR: dev-lang/python-2.4.4-r4 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_install
* ebuild.sh, line 1089: Called qa_call 'src_install'
* ebuild.sh, line 44: Called src_install
* python-2.4.4-r4.ebuild, line 174: Called die
*
* (no error message)
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/extra/tmp/portage/dev-lang/python-2.4.4-r4/temp/build.log'.
*
* Messages for package dev-lang/python-2.4.4-r4:
*
* ERROR: dev-lang/python-2.4.4-r4 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_install
* ebuild.sh, line 1089: Called qa_call 'src_install'
* ebuild.sh, line 44: Called src_install
* python-2.4.4-r4.ebuild, line 174: Called die
*
* (no error message)
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/extra/tmp/portage/dev-lang/python-2.4.4-r4/temp/build.log'.
Code: Select all
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r6 i686)
=================================================================
System uname: 2.6.22-gentoo-r6 i686 AMD Athlon(tm) XP 2400+
Timestamp of tree: Wed, 19 Sep 2007 05:30:01 +0000
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer -fomit-frame-pointer -Wdisabled-optimization -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -pipe -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer -fomit-frame-pointer -Wdisabled-optimization -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Code: Select all
'import site' failed; use -v for traceback
Python 2.4.4 (#2, Sep 19 2007, 18:36:06)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> Code: Select all
export REAL_CHOST="i686-pc-linux-gnu"
gcc-config i686-pc-linux-gnu-3.4.6
source /etc/profile
emerge python
gcc-config i686-pc-linux-gnu-4.1.2
source /etc/profile
emerge python
Code: Select all
Listing /usr/local/lib/python2.4/plat-linux2 ...
Compiling /usr/local/lib/python2.4/plat-linux2/CDROM.py ...
Compiling /usr/local/lib/python2.4/plat-linux2/DLFCN.py ...
Compiling /usr/local/lib/python2.4/plat-linux2/IN.py ...
Compiling /usr/local/lib/python2.4/plat-linux2/TYPES.py ...
Listing /usr/local/lib/python2.4/lib-tk ...
Compiling /usr/local/lib/python2.4/lib-tk/Canvas.py ...
Compiling /usr/local/lib/python2.4/lib-tk/Dialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/FileDialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/FixTk.py ...
Compiling /usr/local/lib/python2.4/lib-tk/ScrolledText.py ...
Compiling /usr/local/lib/python2.4/lib-tk/SimpleDialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/Tix.py ...
Compiling /usr/local/lib/python2.4/lib-tk/Tkconstants.py ...
Compiling /usr/local/lib/python2.4/lib-tk/Tkdnd.py ...
Compiling /usr/local/lib/python2.4/lib-tk/Tkinter.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkColorChooser.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkCommonDialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkFileDialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkFont.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkMessageBox.py ...
Compiling /usr/local/lib/python2.4/lib-tk/tkSimpleDialog.py ...
Compiling /usr/local/lib/python2.4/lib-tk/turtle.py ...
Listing /usr/local/lib/python2.4/lib-dynload ...
Listing /usr/local/lib/python2.4/site-packages ...
Compiling /usr/local/lib/python2.4/site-packages/ez_setup.py ... [ ok ]