473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2066
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: richardun | last post by:
My goal is to install python2.4 using yum (wouldn't you know it, it's a dependency for something else). >From this page (), I followed the following instructions: 1. ...creat...
1
by: jtan325 | last post by:
hi, i am running Linux Ubuntu Hoary and am trying to build the Python numarray package, v. 1.3.2 by hand since ubuntu's repos won't be updated until breezy. i have python 2.4, and gcc 3.3.5 ...
13
by: Uwe Mayer | last post by:
<posted & mailed> Hi, AFAICT there seems to be a bug on FreeBSD's Python 2.3.4 open function. The documentation states: > Modes 'r+', 'w+' and 'a+' open the file for updating (note that...
1
by: Peter Hartmann | last post by:
Hello, I could really use some help. I'm trying to install a python program on centos4 x86_64. When I run 'python setup.py' it ends up in /usr/lib64/python2.3/site-packages/ instead of...
1
by: Peter Hartmann | last post by:
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. #...
0
by: Ksenia Marasanova | last post by:
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...
4
by: Christopher Taylor | last post by:
Hello all, Being relatively new to linux I'm a little confused about what options I need to use to build python from source. Currently, I have python installed as part of the inital RHEL4 load...
2
by: fartknuckle | last post by:
When I try to build and install python from source It configures and makes fine but upon 'make install' I always get to this point: Listing /usr/local/lib/python2.5/xml/sax ... Compiling...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.