Em 28-05-2013 04:58, [email protected] escreveu:
>
> hello
>
>>
>> Please, anyone knows how safe or how to upgrade to or install side by
>> side python-2.7?
>>
First, I would like to thank Gabriele, Simon and Ken.
I followed Gabriele's first suggestion below:
prefix=/usr/local/python
with
/usr/local/python -> Python-2.7.5
> I am using python-2.7 since quite a lot and do not see any problem; so I
> would say that it is safe to upgrade (of course, this is my personal
> experience: python is used by so many sw packages that it might well be
> that 2.6->2.7 breaks some)
>
> As to having both 2.6 and 2.7, I have at least 2 strategies to
> suggest.
>
> 1. For years I maintained different python versions in completely
> seperated trees, with a symlink to select a specific version.
>
> Something like this:
>
> /usr/local/python -> /usr/local/python-2.7.4
> /usr/local/python-2.7.2
> /usr/local/python-2.7.3
> /usr/local/python-2.7.4
> /usr/local/python-3.2.2
> /usr/local/python-3.3.0
> /usr/local/python-3.3.1
> /usr/local/site_python -> /usr/local/site_python-2.7.4
I do nao have any directory named site_python:
$ find /usr -type d -iname site\* 2>/dev/null | grep -i python
/usr/lib/python2.6/site-packages
/usr/local/Python-2.7.5/lib/python2.7/site-packages
>
> For this to work, you need to have:
> PATH=...:/usr/local/python/bin:...
> PKG_CONFIG_PATH=..:/usr/local/python/lib/pkgconfig:...
> MANPATH=...
> PYTHONPATH=...
> and may be some other variable appropriately set in your shell start
> script(s)
This was most useful, thanks.
Also, very useful is "Going Beyond BLFS":
<http://www.linuxfromscratch.org/blfs/view/svn/introduction/beyond.html>
For the record, if anybody arrives here using searching mechanisms:
"Add $PREFIX/lib to /etc/ld.so.conf"
This is implicit in Gabriele's text, but I think it is worth mentioning it.
> Moreover, if you install something which needs a particular version of
> python (which is not the one pointed by the symlink) you can:
> => either point temporarily the link to the needed version for the build
> => or (better, in my opinion) instruct the build process about where
> to find the needed pieces by setting PATH, PKG_CONFIG_PATH
> LD_LIBRARY_PATH etc in a build script
> 2. Since 1-2 years I discovered stow (http://www.gnu.org/software/stow/)
This, I will see latter, but am very interested.
> hope to have been of any use
>
>
> ciao
> gabriele
>
Now, firefox and thunderbird are up to date in my LFS6.x machines.
Thanks, again.
--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page