Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Manually install python (broken python)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
peertje888
n00b
n00b


Joined: 24 Jan 2009
Posts: 9

PostPosted: Sat Feb 06, 2010 8:52 pm    Post subject: HOWTO: Manually install python (broken python) Reply with quote

When you broke your python installation, which happened to me lately, you can manually download a python version to your needs and compile it at http://mirrors.kernel.org/gentoo/distfiles

For example I did the following as super user:
Code:
cd /usr/src
wget http://mirrors.kernel.org/gentoo/distfiles/Python-2.6.4.tar.bz2
tar -xf Python-2.6.4.tar.bz2
cd Python-2.6.4
./configure --prefix /usr
make
make install


This will create a /usr/bin/python binary, which is wrong
Code:
ln -s /usr/bin/python2.6 /usr/bin/python


Now try python-updater

If you are using Porthole you have to unmerge this and emerge it again.


Last edited by peertje888 on Sun Feb 07, 2010 3:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1639

PostPosted: Sat Feb 06, 2010 9:12 pm    Post subject: Reply with quote

A better idea would be to download a copy of pre-built python from the Gentoo tinderbox:

http://tinderbox.dev.gentoo.org/default-linux/amd64/dev-lang/python-2.6.4.tbz2
Back to top
View user's profile Send private message
peertje888
n00b
n00b


Joined: 24 Jan 2009
Posts: 9

PostPosted: Sun Feb 07, 2010 3:18 am    Post subject: Reply with quote

Shiny, thanks!
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Mon Feb 08, 2010 3:47 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.

This is already addressed in our forum FAQs:

_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum