今天干了个破事,闲python-updater麻烦,就把python的低版本给干掉了,结果emerge不能用了,重新安装python也不行了,只好手动安装
cd /usr/portage/distfiles
wget
cd
tar xzf Python-2.6.tgz
cd Python-2.6
./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
不过这样安装的不会进入portage管理库,需要重新安装python
emerge =dev-lang/python-2.6.2-r1
阅读(546) | 评论(0) | 转发(0) |