| View previous topic :: View next topic |
| Author |
Message |
simonp
Joined: 13 Jul 2003 Posts: 2
|
Posted: Sun Jul 13, 2003 12:42 am Post subject: Upgrading Python on Ensim |
|
|
I have python 1.5 (very old!) Would that work? It seems upgrading it on the Ensim server might cause other problems and Ensim may not work. Is there any way around this problem?
Thanks,
Simon |
|
| Back to top |
|
 |
tony
Joined: 11 Jun 2003 Posts: 4
|
Posted: Sun Jul 13, 2003 3:26 am Post subject: |
|
|
Trying to upgrade Python will break Ensim. I would not do it. Perhaps you could create another copy of the latest version of Python under some directory, and then change all calls to the python interpreter to point to the new location?
tony |
|
| Back to top |
|
 |
haris Site Admin
Joined: 22 Aug 2002 Posts: 40
|
Posted: Sun Jul 13, 2003 7:23 am Post subject: |
|
|
Maios works on Python 1.5.2 and above, although Python 2.0 or higher will work better.
If you do not wish to erase you old python installation you can do so by using the make altinstall command.
This installs the same set of files as "make install" except it
doesn't create the hard link to "python<version>" called "python".
You will therefore end up having both versions of python, and the default will be the old one, which is what you want for compatibility with other software. Once this is done you have to make sure the path to the Python interpreter in your Maios distribution is pointing to the new version. e.g. it should be something like:
#!/usr/local/bin/python2.2
Let me know if this helps.
Haris |
|
| Back to top |
|
 |
tony
Joined: 11 Jun 2003 Posts: 4
|
Posted: Sun Jul 13, 2003 7:35 am Post subject: |
|
|
This should do the job, here is the installation procedure assuming you downloaded Python already:
gunzip Python-2.2.3.tgz
tar xvf Python-2.2.3.tar
cd Python-2.2.3
./configure
make
make altinstall
Good luck!
Tony |
|
| Back to top |
|
 |
simonp
Joined: 13 Jul 2003 Posts: 2
|
Posted: Sun Jul 13, 2003 9:25 am Post subject: |
|
|
thanks this works well.
simon |
|
| Back to top |
|
 |
|