LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-15-2012, 07:54 PM   #1
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
Installing Python 2.7.3 on Slackware 13.37 with Python 2.6.6 on it


Hi,

I wanted to install Python 2.7.x on my machine since I'm working with a Google AppEngine Python application (Python 2.7). This is a Slackware 13.37 32 bit VM.

Made some attempt by having the 14.0 slackbuild script, modifying some parameters to install it on different directory (/opt/python-2.7.3) but it seems to break all my python installs.

Anyway, I'm going to try this one (make altinstall) if this will work.

http://unix.stackexchange.com/questi...ions-of-python

But if there is an easy/proven way, that would be awesome help.

Thanks
 
Old 10-16-2012, 08:44 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
It should be possible to have two versions of python installed in parallel, I did that on an older version of Slackware some years ago. The only thing to be aware of is the symbolic link /usr/bin/python . If you fix that so that it points to "python2.6" again then all your other applications will find the 2.6 version of python if they call "python". You can fix this manually, or by running "upgradepkg --reinstall" on the original Slackware 13.37 package of python (which will fix that symlink but leave the rest of python 2.7 files alone).

For your application which needs python 2.7 you need to specify "/usr/bin/python2.7" explicitly as the python interpreter.

Eric
 
1 members found this post helpful.
Old 10-16-2012, 10:43 AM   #3
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Original Poster
Rep: Reputation: 39
OK, I'll try that in the office.
 
Old 10-16-2012, 12:32 PM   #4
dwblas
Member
 
Registered: Jun 2011
Posts: 54

Rep: Reputation: Disabled
make altinstall has always worked for me. I have 2.6, 2.7 and 3.2 installed. It just installs the version, so does not change the "python" symlinks in /usr/bin or /usr/lib(64).

Last edited by dwblas; 10-16-2012 at 12:35 PM.
 
1 members found this post helpful.
Old 10-16-2012, 09:30 PM   #5
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Original Poster
Rep: Reputation: 39
Done with altinstall.

Code:
./configure
make
make altinstall
Thanks all!
 
  


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
Installing Python 2.7.2 and python-devel on CentOS 5.7 iwitham Linux - Software 1 03-21-2012 05:14 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 11:05 AM
Installing new software on Slackware 13 x64, especially Python. gvernold Slackware 9 04-12-2010 03:15 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM


All times are GMT -5. The time now is 09:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration