Web-développeur et Administrateur système Freelance au Luxembourg, j'ai mis en place ce blog pour vous permettre de suivre l'évolution de ma société et partager avec vous quelques lignes de code.
Olivier
web 2.0

Réinstaller Python sur un serveur Gentoo.

Si par mégarde vous avez tapé la commande “emerge -C python”, vous vous êtes rendu compte que emerge est écrit en python:

emerge -av python -/bin/bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory

La solution, réinstaller Python à la main.

cd /root
wget http://distfiles.gentoo.org/distfiles/Python-2.5.1.tar.bz2
tar xjf Python-2.5.1.tar.bz2
cd Python-2.5.1
./configure –prefix=/usr –host=i686-pc-linux-gnu –mandir=/usr/share/man –infodir=/usr/share/info –datadir=/usr/share –sysconfdir=/etc –localstatedir=/var/lib –with-fpectl –enable-shared –infodir=${prefix}/share/info –mandir=${prefix}/share/man –with-libc= –enable-unicode=ucs4 –with-threads –build=i686-pc-linux-gnu
make
make install

et voilà ! Merci à Human Bomb pour m’avoir donné l’opportunité de trouver cette solution ;)

Leave a Reply

This site is using OpenAvatar based on
« Back to text comment