View previous topic :: View next topic |
Author |
Message |
yayien n00b
Joined: 20 Nov 2006 Posts: 14
|
Posted: Sun Apr 17, 2011 10:10 pm Post subject: [SOLVED] Problème lors de l'emerge de certain ports |
|
|
Bonjour,
j'ai un petit soucis sur un système tout nouvellement installé en amd64. Lors de l'installation de certains ports tels que eix ou vmware-workstation par exemple il faut que à la main je force la version courante de python en 2.7 si je veux que ca marche.
Quelqu'un aurait-il eu deja ce problème ? Comment faire pour l'éviter car c'est lourd à la longue.
Merci
Last edited by yayien on Mon Apr 18, 2011 10:14 pm; edited 1 time in total |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1964 Location: 127.0.0.1
|
Posted: Mon Apr 18, 2011 8:11 am Post subject: |
|
|
Tu as dû la lire cette news non ?
Quote: |
$ cat /portage/trees/gentoo/metadata/news/2010-03-25-python-3.1/2010-03-25-python-3.1.en.txt
Title: Python 3.1
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org>
Content-Type: text/plain
Posted: 2010-03-25
Revision: 1
News-Item-Format: 1.0
Display-If-Installed: =dev-lang/python-3.1*
Python 3 is a new major version of Python and is intentionally incompatible
with Python 2. Many external modules have not been ported yet to Python 3,
so Python 2 still needs to be installed. You can benefit from having Python 3
installed without setting Python 3.1 as main active version of Python.
Currently you should not set Python 3.1 as main active version of Python.
When setting it becomes recommended, a separate news item will be created
to notify users.
Although Python 3.1 should not be set as main active version of Python,
you should run python-updater after installation of Python 3.1. By default,
modules that support both Python 2 and Python 3 are installed for both
the active version of Python 2 and the active version of Python 3 when both
Python 2 and Python 3 are installed.
It is recommended to use a UTF-8 locale to avoid potential problems. Especially
C and POSIX locales are discouraged. If locale has not been explicitly set,
then POSIX locale is used, so you should ensure that locale has been set.
Problems occurring only with non-UTF-8 locales should be reported directly
to upstream developers of given packages.
See http://www.gentoo.org/doc/en/utf-8.xml for more information about UTF-8.
|
Le système n'est pas encore totalement compatible avec python 3.1, donc il faut pour le moment rester en 2.x.
Que donne un :
Code: |
$ eselect python list
|
|
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Mon Apr 18, 2011 8:18 am Post subject: Re: Problème lors de l'emerge de certain ports |
|
|
yayien wrote: | il faut que à la main je force la version courante de python en 2.7 si je veux que ca marche. |
Veux-tu dire que tu dois faire un eselect python set n avec n égal au numéro de liste correspondant à Python 2.7 ?
Si oui alors, ta version "normalement" courante de Python (avant que tu la refixe manuellement) c'est quoi : 2.6 , 3.x ?
Si c'est 3.x alors c'est normal. Un certain nombre de packages ne sont pas compatibles python 3 et Gentoo conseille de ne pas avoir Python 3 en tant que version par défaut. (Personellement, je n'utilise Python 3 qu'avec portage)
Si c'est 2.6 ou inférieure alors as-tu suivi la procédure d'upgrade de Python lorsque tu as upgradé à 2.7 ? (eselect 2.7 / python-updater / revdep-rebuild / emerge --depclean) ? |
|
Back to top |
|
|
yayien n00b
Joined: 20 Nov 2006 Posts: 14
|
Posted: Mon Apr 18, 2011 10:14 pm Post subject: |
|
|
En fait, c'était donc simple, suffisait de lire les news...
Merci quand même d'avoir pris le temps de me répondre. |
|
Back to top |
|
|
|