Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2009, 01:20 AM   #1
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Where to compile python?

I need to upgrade python 2.3 to python 2.6. Where should I run untar and run ./configure? Is it safe to do it under /tmp directory?
Old 06-15-2009, 01:34 AM   #2
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Isn't the upgrade available in the repositories?
Old 06-15-2009, 01:38 AM   #3
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
why do you need to compile source, can't you just use 'rpm' or 'apt-get'?

but yes, you can untar it and build it anywhere you want (./configure , make , etc). you just need to be root to run 'make install'
Old 06-15-2009, 02:08 AM   #4
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
While you can do this under /tmp, it's tidier to just put the tarball someplace you use for compiling and untar it there. When you untar it, there will be a directory holding all the source, usually named the same as the tarball. This is called the "top level directory" - cd into that and read the readme.1st file and anything else that stands out in a similar way.

There will be instructions for different ways to use the makefile - how to install locally and globally for eg.
Old 06-15-2009, 02:37 AM   #5
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Originally Posted by grepmasterd View Post
why do you need to compile source, can't you just use 'rpm' or 'apt-get'?

but yes, you can untar it and build it anywhere you want (./configure , make , etc). you just need to be root to run 'make install'
The most recent compiled package in Debian, and this was in Experimental, is 2.5.4-3. So if the OP wants 2.6 I guess he does have to compile it if he can get the source.
Old 06-15-2009, 09:19 AM   #6
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 285

Rep: Reputation: 32
You can compile whereever you want even in /tmp.
make install.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Python 2.4 compile? phantom_cyph Programming 17 03-02-2007 08:30 AM
how do i compile in ubuntu python? phantom_cyph Programming 10 02-16-2007 11:28 PM
How do u compile python? sduffy89 Programming 3 02-26-2006 11:18 PM
trying to compile Python Lung-Dart Linux - Newbie 1 10-27-2004 10:46 AM
compile python progs abs Programming 13 04-05-2004 10:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration