Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
* Removing useless C++ checks ... * Messages for package sys-apps/sysvinit-2.86-r10: * Applying sysvinit-2.86-docs.patch ... * Applying sysvinit-2.86-shutdown-usage.patch ... * Applying sysvinit-2.86-off-by-one.patch ... * Applying sysvinit-2.86-kexec.patch ... * Applying sysvinit-2.86-execl.patch ... * Applying sysvinit-2.86-utmp-64bit.patch ... * Applying sysvinit-2.86-shutdown-single.patch ... * Applying sysvinit-2.86-utmp-smp.patch ... * Applying sysvinit-2.86-build.patch ... * Messages for package dev-db/sqlite-2.8.16-r4: * Linking /usr/bin/lemon-0 to /usr/bin/lemon (relative) * Messages for package dev-db/sqlite-2.8.16-r4: * Applying sqlite-2.8.16-multilib.patch ... * Removing useless C++ checks ... * Linking /usr/bin/lemon-0 to /usr/bin/lemon (relative) * Messages for package x11-proto/xcb-proto-1.1: * Fetch failed for 'x11-proto/xcb-proto-1.1', Log file: * '/var/tmp/portage/x11-proto/xcb-proto-1.1/temp/build.log' * GNU info directory index is up-to-date. micha ~ # emerge -avuDN world --skipfirst bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: Datei oder Verzeichnis nicht gefunden |
Quellcode |
|
1 2 |
ls -l /usr/bin/python lrwxrwxrwx 1 root root 14 7. Aug 14:55 /usr/bin/python -> python-wrapper |
Quellcode |
|
1 2 3 |
michilp ~ $ equery b /usr/bin/python-wrapper [ Searching for file(s) /usr/bin/python-wrapper in *... ] app-admin/eselect-python-20090804 (/usr/bin/python-wrapper) |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Michi« (17.08.2009, 13:05)
Quellcode |
|
1 |
# ls -l /usr/bin/python* |
Quellcode |
|
1 2 3 4 5 6 7 |
~ # ls -l /usr/bin/python* lrwxrwxrwx 1 root root 14 17. Aug 15:59 /usr/bin/python -> python-wrapper lrwxrwxrwx 1 root root 9 17. Aug 15:59 /usr/bin/python2 -> python2.6 -rwxr-xr-x 1 root root 5352 17. Aug 13:39 /usr/bin/python2.6 -rwxr-xr-x 1 root root 209 17. Aug 15:59 /usr/bin/python-config -rwxr-xr-x 1 root root 1200 17. Aug 13:38 /usr/bin/python-config-2.6 -rwxr-xr-x 1 root root 9520 17. Aug 15:58 /usr/bin/python-wrapper |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
>>> Emerging (1 of 3) dev-python/PyQt4-4.4.4-r5 * PyQt-x11-gpl-4.4.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking PyQt-x11-gpl-4.4.4.tar.gz to /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work >>> Source unpacked in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work >>> Preparing source in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4 ... * Applying configure.py.patch ... [ ok ] * Applying PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch ... [ ok ] * Applying fix_license_check.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4 ... python configure.py --confirm-license --bindir=/usr/bin --destdir=/usr/lib/python2.6/site-packages --sipdir=/usr/share/sip --enable=QtCore --enable=QtNetwork --enable=QtScript --enable=QtTest --enable=QtXml --enable=QtGui --enable=QtDesigner --enable=QtOpenGL --enable=QtSvg Traceback (most recent call last): File "configure.py", line 43, in <module> import sipconfig ImportError: No module named sipconfig * * ERROR: dev-python/PyQt4-4.4.4-r5 failed. * Call stack: * ebuild.sh, line 49: Called src_configure * environment, line 3561: Called die * The specific snippet of code: * ${myconf} || die "configuration failed"; * The die message: * configuration failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/environment'. * >>> Failed to emerge dev-python/PyQt4-4.4.4-r5, Log file: >>> '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log' * Messages for package dev-python/PyQt4-4.4.4-r5: * Applying configure.py.patch ... * Applying PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch ... * Applying fix_license_check.patch ... * * ERROR: dev-python/PyQt4-4.4.4-r5 failed. * Call stack: * ebuild.sh, line 49: Called src_configure * environment, line 3561: Called die * The specific snippet of code: * ${myconf} || die "configuration failed"; * The die message: * configuration failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/environment'. * * Building file list for distfiles cleaning... * Cleaning distfiles... [ 149.8 K ] eselect-1.0.11.tar.bz2 * Total space that has been freed in distfiles directory: 149.8 K |
Quellcode |
|
1 2 3 4 5 |
dev-python/sip Available versions: 4.7.9 ~4.8.1 ~4.8.2 {debug doc} Installed versions: 4.7.9(01:09:55 17.08.2009)(-debug) Homepage: http://www.riverbankcomputing.co.uk/software/sip/intro Description: A tool for generating bindings for C++ classes so that they can be used by Python |
Quellcode |
|
1 2 3 4 5 6 7 8 |
# qlist dev-python/sip | sort /usr/bin/sip /usr/include/python2.6/sip.h /usr/lib64/python2.6/site-packages/sip.so /usr/lib64/python2.6/site-packages/sipconfig.py /usr/lib64/python2.6/site-packages/sipdistutils.py /usr/share/doc/sip-4.8.1/ChangeLog.bz2 /usr/share/doc/sip-4.8.1/NEWS.bz2 |
Quellcode |
|
1 2 3 4 5 6 7 |
# python Python 2.6.2 (r262:71600, May 29 2009, 10:07:34) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sipconfig >>> dir(sipconfig) ['Configuration', 'Makefile', 'ModuleMakefile', 'ParentMakefile', 'ProgramMakefile', 'PythonModuleMakefile', 'SIPModuleMakefile', '_Macro', '_UniqueList', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_config_stack', '_default_macros', '_pkg_config', '_quote', 'create_config_module', 'create_content', 'create_wrapper', 'error', 'format', 'inform', 'os', 'parse_build_macros', 're', 'read_version', 'stat', 'string', 'sys', 'version_to_sip_tag', 'version_to_string'] |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
qlist dev-python/sip | sort /usr/bin/sip /usr/include/python2.6/sip.h /usr/lib/python2.6/site-packages/sipconfig.py /usr/lib/python2.6/site-packages/sipdistutils.py /usr/lib/python2.6/site-packages/sip.so /usr/share/doc/sip-4.7.9/ChangeLog.bz2 /usr/share/doc/sip-4.7.9/html/sipref.html /usr/share/doc/sip-4.7.9/NEWS.bz2 /usr/share/doc/sip-4.7.9/README.bz2 /usr/share/doc/sip-4.7.9/sipref.txt.bz2 /usr/share/doc/sip-4.7.9/TODO.bz2 |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
qlist dev-python/sip | sort /usr/bin/sip /usr/include/python2.6/sip.h /usr/lib/python2.6/site-packages/sipconfig.py /usr/lib/python2.6/site-packages/sipdistutils.py /usr/lib/python2.6/site-packages/sip.so /usr/share/doc/sip-4.7.9/ChangeLog.bz2 /usr/share/doc/sip-4.7.9/html/sipref.html /usr/share/doc/sip-4.7.9/NEWS.bz2 /usr/share/doc/sip-4.7.9/README.bz2 /usr/share/doc/sip-4.7.9/sipref.txt.bz2 /usr/share/doc/sip-4.7.9/TODO.bz2 ASRock_K8 mnt # python Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sipconfig Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named sipconfig >>> |
Quellcode |
|
1 |
# ldd /usr/lib/python2.6/site-packages/sip.so |
Quellcode |
|
1 2 3 4 5 6 7 |
ldd /usr/lib/python2.6/site-packages/sip.so linux-gate.so.1 => (0xb8062000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libstdc++.so.6 (0xb7f40000) libm.so.6 => /lib/libm.so.6 (0xb7f1b000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 (0xb7f0e000) libc.so.6 => /lib/libc.so.6 (0xb7dcb000) /lib/ld-linux.so.2 (0xb8063000) |
Quellcode |
|
1 2 3 4 5 6 7 |
# python Python 2.6.2 (r262:71600, May 29 2009, 10:07:34) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path) ['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/portage/pym'] |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# python Python 2.6.2 (r262:71600, May 29 2009, 10:07:34) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pprint >>> import sys >>> pprint.pprint(sys.path) ['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/portage/pym'] |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
python Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path ... KeyboardInterrupt >>> print(sys.path) ['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages'] >>> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
mnt # echo $ $_ $BASH_VERSINFO $EDITOR $HISTFILE $LANG $LC_MONETARY $LINENO $OLDPWD $PKG_CONFIG_PATH $QTDIR $SSH_CLIENT $XDG_DATA_DIRS $BASH $BASH_VERSION $EUID $HISTFILESIZE $LC_ADDRESS $LC_NAME $LINES $OPENGL_PROFILE $PPID $RANDOM $SSH_CONNECTION $XDM_LANG $BASH_ARGC $COLUMNS $FLTK_DOCDIR $HISTSIZE $LC_ALL $LC_NUMERIC $LOGNAME $OPTERR $PROMPT_COMMAND $RUBYOPT $SSH_TTY $BASH_ARGV $COMP_WORDBREAKS $GCC_SPECS $HOME $LC_COLLATE $LC_PAPER $LS_COLORS $OPTIND $PS1 $SANE_CONFIG_DIR $TERM $BASH_COMMAND $CONFIG_PROTECT $GDK_USE_XFT $HOSTNAME $LC_CTYPE $LC_TELEPHONE $MACHTYPE $OSTYPE $PS2 $SECONDS $UID $BASH_LINENO $CONFIG_PROTECT_MASK $GDM_LANG $HOSTTYPE $LC_IDENTIFICATION $LC_TIME $MAIL $PAGER $PS4 $SHELL $USB_DEVFS_PATH $BASH_SOURCE $CVS_RSH $GROUPS $IFS $LC_MEASUREMENT $LESS $MAILCHECK $PATH $PWD $SHELLOPTS $USER $BASH_SUBSHELL $DIRSTACK $HISTCMD $INFOPATH $LC_MESSAGES $LESSOPEN $MANPATH $PIPESTATUS $QMAKESPEC $SHLVL $XDG_CONFIG_DIRS |
Zitat von »dyle«
schöner sieht es mit "pretty-print" aus:
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
python Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pprint >>> import sys >>> pprint.pprint(sys.path) ['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages'] >>> |
Quellcode |
|
1 |
['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages'] |
Zitat von »dyle«
Du hast einmal versucht python per Hand zu installieren und das ist in /usr/local gelandet. sip ist also in /usr/lib/... und nicht in /usr/local/lib wo er nachguckt. Das kann er nicht finden! Der Angeklagte ist somit nicht schuldig.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
lib # python Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pprint >>> import sys >>> pprint.pprint(sys.path) ['', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/portage/pym'] >>> |
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Michigen« (17.08.2009, 18:45)