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 12-05-2013, 12:06 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Python altinstall


What is he talking about here. I clearly do not want to mess up my Python install, but I do need

libpython2.7.so.1.0. I believe that this is the way to do it. But beforre I do what is wtong with

/.configure

make

make install?

http://stackoverflow.com/questions/8...ython3-on-rhel

Any help appreciated. Thanks in advance.

Respectfully,

jyunker
 
Old 12-05-2013, 03:41 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
THAT WILL REPLACE THE DEFAULT INSTALLED PYTHON !!!!!!
DO NOT DO THAT !!!!!


What operating system are you using and it's version ?

what needs a different version of python ?

some programs like the old Blender 2.49b can have the different version IN it's folder
 
Old 12-05-2013, 03:56 PM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
OS and version

I am using Centos 6.5 64 bit.

Respectfully,


jyunker
 
Old 12-05-2013, 04:50 PM   #4
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
libpython2.7.so.1.0 where is it?

I installed ptyhon-2.7.3 as an altinstall.

It worked.

But where did libpython2.7.so.1.0 install? I know it has to be there.

But where?

Any help appreciated. Thanks in advance.

Respectfully,

jyunker
 
Old 12-05-2013, 09:08 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
then you have to be VERY careful with python
yum MUST HAVE the version that is in the base and update repo installed and used

it is VERSION dependent it is

now a different version can be installed side by side

Python2.6.6 is installed ( on my SL 6.4 )

What program is needing Python2.7

using a software reop is normally best for a system wide install
( see the end of the post)

is it just not finding a hard coded lib version
as in a error about libpython2.7.so.1.0 not found
or
is this a configure error that is erroring about python not a specific version

the current 2.7 is 2.7.6
http://www.python.org/download/releases/2.7.6/

or
do you need the OLD 2.7.1 ?

for 2.7.6 use the prefix and altinstall options

but if it is only one program rant needs it then it might be a GOOD idea to install python in it's own folder and write a lunch shell script pointing to this folder and launch the program

Code:
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel ncurses-devel readline-devel tk-devel
side by side ? should not cause yum problems
Code:
cd Python-2.7.6
./configure --prefix=/usr
make 
su
----- your root password ----
make altinstall
there is NO guarantee on altinstall

if only one program needs it
Code:
./configure --prefix=/opt/Python27
make
su
make install
then make a shell script to use that location

there is a third party repo
http://people.redhat.com/bkabrda/python27-rhel-6/
( never used this !!! )

and the repo used in this guide
( never used this , but looks like it will work just fine for a system wide install of 2.7 )
http://linuxsysconfig.com/2013/03/ru...ntos6rhel6sl6/



i put the different version of python in the program folder that needs it
and use a script to start that program
 
Old 12-06-2013, 09:15 AM   #6
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
par4all needs updated python library

The program requiring that python library is par4all. Par4all needs it and it will not run without it. As I said I have an earlier version of python and par4all does not like it. I found out how to install a newer version and not disturb the older version. That is what I did.

Regardless of the versio0n where is the python lib file? That is the issue.

Any help appreciated. thanis in advance.

Respectfully,

jyunker
 
Old 12-06-2013, 01:34 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
please read the OTHER of your posts on this


it is a debian install using alien to make a "odd" rpm

"LD_LIBRARY_PATH or PATH for finding files"
http://www.linuxquestions.org/questi...es-4175487028/

Last edited by John VV; 12-06-2013 at 01:36 PM.
 
  


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
LXer: Python wins trademark dispute, rival stops calling itself “Python” LXer Syndicated Linux News 0 03-21-2013 08:40 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 12:05 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 09:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 05:50 AM
Python make 'altinstall' errors natv Linux - Software 0 03-08-2007 10:24 AM

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

All times are GMT -5. The time now is 02:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration