469,622 Members | 2,159 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

install python2.4 on FreeBSD and keep using python2.3

Hi,

I have python2.3, installed from port /lang/python long time ago. The
current version is 2.4, but I'd rather have two python versions,
instead of upgrading.
Is there maybe a way to somehow link installed python to
/lang/python2.3 port, and then upgrade ports and install /lang/python
as a new (2.4) version, without upgrading?
Or am I missing something and the things are much easier? I am not a
FreeBSD guru and it's my first python upgrade... thanks!

--
Ksenia
Nov 22 '05 #1
4 1936
Ksenia Marasanova wrote:
Hi,

I have python2.3, installed from port /lang/python long time ago. The
current version is 2.4, but I'd rather have two python versions,
instead of upgrading.
Is there maybe a way to somehow link installed python to
/lang/python2.3 port, and then upgrade ports and install /lang/python
as a new (2.4) version, without upgrading?


Yes, you can have several versions installed in different directories.

Many people make /usr/local/bin/python or /usr/bin/python a link to the
default version they choose for the machine.
Nov 22 '05 #2
Ksenia Marasanova wrote:
Hi,

I have python2.3, installed from port /lang/python long time ago. The
current version is 2.4, but I'd rather have two python versions,
instead of upgrading.
Is there maybe a way to somehow link installed python to
/lang/python2.3 port, and then upgrade ports and install /lang/python
as a new (2.4) version, without upgrading?


Yes, you can have several versions installed in different directories.

Many people make /usr/local/bin/python or /usr/bin/python a link to the
default version they choose for the machine.
Nov 22 '05 #3
Ksenia Marasanova <ks***************@gmail.com> writes:
Hi,

I have python2.3, installed from port /lang/python long time ago. The
current version is 2.4, but I'd rather have two python versions,
instead of upgrading.
Is there maybe a way to somehow link installed python to
/lang/python2.3 port, and then upgrade ports and install /lang/python
as a new (2.4) version, without upgrading?
Or am I missing something and the things are much easier? I am not a
FreeBSD guru and it's my first python upgrade... thanks!


You can't install from ports and keep multiple versions around. Well,
at least not easily. You'll have to install from the Python
sources. If you haven't changed LOCALBASE, then installing from
sources will overwrite the things installed in /usr/local/bin, the
python manual page, and the emacs python-mode file (at least, that's
what's installed by the Python port that isn't in a version-specific
file). As others have said, you can work around that with the --prefix
argument to configure when you build python.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Nov 22 '05 #4
Ksenia Marasanova <ks***************@gmail.com> writes:
Hi,

I have python2.3, installed from port /lang/python long time ago. The
current version is 2.4, but I'd rather have two python versions,
instead of upgrading.
Is there maybe a way to somehow link installed python to
/lang/python2.3 port, and then upgrade ports and install /lang/python
as a new (2.4) version, without upgrading?
Or am I missing something and the things are much easier? I am not a
FreeBSD guru and it's my first python upgrade... thanks!


You can't install from ports and keep multiple versions around. Well,
at least not easily. You'll have to install from the Python
sources. If you haven't changed LOCALBASE, then installing from
sources will overwrite the things installed in /usr/local/bin, the
python manual page, and the emacs python-mode file (at least, that's
what's installed by the Python port that isn't in a version-specific
file). As others have said, you can work around that with the --prefix
argument to configure when you build python.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by richardun | last post: by
1 post views Thread by jtan325 | last post: by
13 posts views Thread by Uwe Mayer | last post: by
1 post views Thread by Peter Hartmann | last post: by
1 post views Thread by Peter Hartmann | last post: by
reply views Thread by Ksenia Marasanova | last post: by
4 posts views Thread by Christopher Taylor | last post: by
2 posts views Thread by fartknuckle | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.