LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-15-2009, 12:20 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
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, 12:34 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Isn't the upgrade available in the repositories?
 
Old 06-15-2009, 12:38 AM   #3
grepmasterd
Member
 
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, 01: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, 01:37 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
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.
cheers,
jdk
 
Old 06-15-2009, 08:19 AM   #6
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

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


Reply


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 07:30 AM
how do i compile in ubuntu python? phantom_cyph Programming 10 02-16-2007 10:28 PM
How do u compile python? sduffy89 Programming 3 02-26-2006 10:18 PM
trying to compile Python Lung-Dart Linux - Newbie 1 10-27-2004 09:46 AM
compile python progs abs Programming 13 04-05-2004 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 AM.

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