Nowe posty

Autor Wątek: [gentoo] Downgrade Pythona do 2.4  (Przeczytany 4728 razy)

matt26

  • Gość
[gentoo] Downgrade Pythona do 2.4
« dnia: 2008-10-11, 23:09:31 »
Czy zna ktoś z was sposób aby w Gentoo powrócić z Pythona 2.5 do 2.4 bo po aktualizacji mam problemy z emergowaniem niektórych pakietów.

chmooreck

  • Gość
[gentoo] Downgrade Pythona do 2.4
« Odpowiedź #1 dnia: 2008-10-11, 23:22:23 »
http://www.gentoo.org/doc/pl/handbook/handbook-x86.xml?part=2&chap=1
http://www.gentoo.org/doc/pl/handbook/handbook-x86.xml?part=3

Jesteś pewny, że chcesz właśnie downgrade'u, a nie wyeliminowanie Twoich problemów z instalacją ?

matt26

  • Gość
[gentoo] Downgrade Pythona do 2.4
« Odpowiedź #2 dnia: 2008-10-11, 23:28:26 »
Rzecz polega na tym iż miałem całkiem niedawno problem z odinstalowanym PYTHONem i po moich zabiegcha naprawczych widać został zaktualizaowany z 2.4 do 2.5 i po tym mam porblem z pzrekompilowaniem niektórych pakietów jak np JAVACUP który mówi iż powinienem zrobić puthon-update co uczyniłem ale to nie pomogło. I chce doprowadzić to tego aby sobie zainstalować openofficea :)
Szczegóły:

Vaio_tux wielebny # python-updater
 * Starting Python Updater from 2.4 to 2.5 :
 * Searching for packages with files in /usr/lib/python2.4 /usr/lib32/python2.4 /usr/lib64/python2.4 ..
 * Adding to list: =x11-libs/vte-0.16.14
 * Adding to list: =app-text/gnome-doc-utils-0.12.2-r1
 * Adding to list: =media-libs/lcms-1.17
 * Adding to list: =sys-apps/file-4.21-r1
 * Adding to list: =net-fs/samba-3.0.28a-r1
 * Adding to list: =dev-java/java-config-1.3.7
 * Adding to list: =dev-java/java-config-2.1.6
 * Adding to list: =dev-java/antlr-2.7.7
 * Adding to list: =dev-libs/libxml2-2.6.30-r1
 * Adding to list: =dev-util/scons-0.97
 * Adding to list: =dev-python/pyxf86config-0.3.34-r1
 * Adding to list: =dev-python/pygtk-2.12.1-r2
 * Adding to list: =dev-python/python-fchksum-1.7.1
 * Adding to list: =dev-python/pygobject-2.14.2
 * Adding to list: =dev-python/numeric-24.2-r6
 * Adding to list: =dev-python/pycairo-1.4.12
 * Adding to list: =dev-python/pycrypto-2.0.1-r6
 * Adding to list: =gnome-extra/libgsf-1.14.7
 * Adding to list: =app-pda/libopensync-0.22

These are the packages that would be merged, in order:

Calculating dependencies |
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

sys-apps/file:0

  ('ebuild', '/', 'sys-apps/file-4.21-r1', 'merge') (no parents)

  ('ebuild', '/', 'sys-apps/file-4.23', 'merge') pulled in by
    ('installed', '/', 'app-arch/rpm2targz-9.0-r7', 'nomerge')
    ('installed', '/', 'app-admin/eselect-1.0.10', 'nomerge')

net-fs/samba:0

  ('ebuild', '/', 'net-fs/samba-3.0.28a-r1', 'merge') (no parents)

  ('ebuild', '/', 'net-fs/samba-3.0.32', 'merge') pulled in by
    ('installed', '/', 'gnome-base/gnome-vfs-2.22.0', 'nomerge')
    ('ebuild', '/', 'net-print/cups-1.3.8-r2', 'merge')
    ('installed', '/', 'gnome-base/gvfs-0.2.5', 'nomerge')

dev-libs/libxml2:2

  ('ebuild', '/', 'dev-libs/libxml2-2.6.30-r1', 'merge') (no parents)

  ('ebuild', '/', 'dev-libs/libxml2-2.7.2', 'merge') pulled in by
    ('installed', '/', 'dev-libs/libxslt-1.1.24-r1', 'nomerge')
    ('installed', '/', 'dev-libs/libcroco-0.6.1', 'nomerge')
    ('installed', '/', 'gnome-base/librsvg-2.22.2', 'nomerge')
    (and 19 more)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.

Vaio_tux wielebny # emerge javacup
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-java/javacup-0.10k-r1 to /
 * java_cup_v10k.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking java_cup_v10k.tar.gz ;-) ...                                                                                                              [ ok ]
Traceback (most recent call last):
  File "/usr/bin/java-config-2", line 8, in
    from java_config_2 import __version__
ImportError: No module named java_config_2
 *
 * Can't run java-config --help
 * Have you upgraded python recently but haven't
 * run python-updater yet?
 *
 * ERROR: dev-java/javacup-0.10k-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1250:  Called java-pkg-2_pkg_setup
 *       java-pkg-2.eclass, line   60:  Called java-pkg_init
 *     java-utils-2.eclass, line 2070:  Called die
 * The specific snippet of code:
 *         die "Can't run java-config --help"
 *  The die message:
 *   Can't run java-config --help
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/Log_Portage/dev-java:javacup-0.10k-r1:20081011-200339.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/javacup-0.10k-r1/temp/die.env'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

 * Messages for package dev-java/javacup-0.10k-r1:

 *
 * Can't run java-config --help
 * Have you upgraded python recently but haven't
 * run python-updater yet?
 *
 * ERROR: dev-java/javacup-0.10k-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1250:  Called java-pkg-2_pkg_setup
 *       java-pkg-2.eclass, line   60:  Called java-pkg_init
 *     java-utils-2.eclass, line 2070:  Called die
 * The specific snippet of code:
 *         die "Can't run java-config --help"
 *  The die message:
 *   Can't run java-config --help
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/Log_Portage/dev-java:javacup-0.10k-r1:20081011-200339.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/javacup-0.10k-r1/temp/die.env'


A po revdep-rebuild mam coś takiego i jestem już w kropce:



Kod:
Vaio_tux wielebny # revdep-rebuild -p
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 87% ]  *   broken /usr/lib/python2.4/lib-dynload/_bsddb.so (requires libdb-4.3.so)
[ 100% ]                
 * Generated new 3_broken.rr
 * Assigning files to packages
 *  !!! /usr/lib/python2.4/lib-dynload/_bsddb.so not owned by any package is broken !!!
 *   /usr/lib/python2.4/lib-dynload/_bsddb.so -> (none)
 * Generated new 4_raw.rr and 4_owners.rr
 * Found some broken files, but none of them were associated with known packages
 * Unable to proceed with automatic repairs.
 * The broken files are listed in 4_owners.rr
Vaio_tux wielebny # revdep-rebuild  
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Found existing 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Found existing 2_ldpath.rr.
 * Checking dynamic linking consistency
 * Found existing 3_broken.rr.
 * Assigning files to packages
 *  !!! /usr/lib/python2.4/lib-dynload/_bsddb.so not owned by any package is broken !!!
 *   /usr/lib/python2.4/lib-dynload/_bsddb.so -> (none)
 * Generated new 4_raw.rr and 4_owners.rr
 * Found some broken files, but none of them were associated with known packages
 * Unable to proceed with automatic repairs.
 * The broken files are listed in 4_owners.rr

chmooreck

  • Gość
[gentoo] Downgrade Pythona do 2.4
« Odpowiedź #3 dnia: 2008-10-13, 09:59:29 »
próbowałeś najpierw zrobic pełny update systemu (-uD world) ?

Edit: oczywiście najpierw sobie zsynchronizuj portage (# emerge --sync)