473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Confused updating 2.3 to 2.4 on Linux

Being a new'ish user to both Linux and Python, I've been 'happily'
learning Python (2.3) with Idle and Tkinter as installed with Mandrake
10.
Thought I would try installing Python 2.4 (to completely replace 2.3)
(first time I've tried installing anything from source)

Followed the readme file (all done from my 'home' directory),

tar -zxvf Python-2.4.tgz
./configure
make
make test (2 skips unexpected on linux2:test_bz2 test_gdbm)
make install

Although I wasn't sure about some of the directory references,
'type "./configure" in the current directory'
'type "make" in the toplevel directory'.

All seemed to work without any errors, but starting Python from Idle
or a console displays the same statup text,

Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2

'which python' shows /usr/bin/python, and this file has not been updated

Is there something else I should do?
Also 'IF' I get 2.4 working, will Tkinter/Idle need any additional
installation work, or is it all done through the Python 2.4 installation

Jul 18 '05 #1
2 1131
Glen <st*****@tesco.net> writes:
Being a new'ish user to both Linux and Python, I've been 'happily'
learning Python (2.3) with Idle and Tkinter as installed with Mandrake
10.
All seemed to work without any errors, but starting Python from Idle
or a console displays the same statup text,

Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2

'which python' shows /usr/bin/python, and this file has not been updated

Is there something else I should do?


The default install location for python is /usr/local, not /usr. You
can change your PATH so that /usr/local/bin precedes /usr/bin, and
then you'll get the new Python.

BTW, installing a new python doesn't "completely replace" the old
python on Unix systems. Python installs everything but one file in
directories that include the version number, so that people (mostly
developers) can keep multiple versions around with no problem. The one
exception is bin/python, which is a hard link to the last python you
installed.

If you look, you'll find /usr/lib/python2.3, /usr/include/python2.3,
/usr/local/lib/python2.4, /usr/local/include/python2.4,
/usr/bin/python2.3, /usr/local/bin/python2.3, /usr/bin/python (the
same as /usr/bin/python2.3) and /usr/local/bin/python (which is the
same as /usr/local/bin/python2.4).

If you want, you can rebuild python with:

./configure --prefix=/usr
make install

and it will put the directories in parallel with the old ones, instead
of putting them in /usr/local.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 18 '05 #2
> > Being a new'ish user to both Linux and Python, I've been 'happily'
learning Python (2.3) with Idle and Tkinter as installed with Mandrake
10.
All seemed to work without any errors, but starting Python from Idle
or a console displays the same statup text,

Python 2.3.3 (#2, Feb 17 2004, 11:45:40)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2

'which python' shows /usr/bin/python, and this file has not been updated

Is there something else I should do?


The default install location for python is /usr/local, not /usr. You
can change your PATH so that /usr/local/bin precedes /usr/bin, and
then you'll get the new Python.

BTW, installing a new python doesn't "completely replace" the old
python on Unix systems. Python installs everything but one file in
directories that include the version number, so that people (mostly
developers) can keep multiple versions around with no problem. The one
exception is bin/python, which is a hard link to the last python you
installed.

If you look, you'll find /usr/lib/python2.3, /usr/include/python2.3,
/usr/local/lib/python2.4, /usr/local/include/python2.4,
/usr/bin/python2.3, /usr/local/bin/python2.3, /usr/bin/python (the
same as /usr/bin/python2.3) and /usr/local/bin/python (which is the
same as /usr/local/bin/python2.4).

If you want, you can rebuild python with:

./configure --prefix=/usr
make install

and it will put the directories in parallel with the old ones, instead
of putting them in /usr/local.

<mike


Thanks Mike, that's great

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Derek Scollon | last post by:
Hope someone can point me in the right direction to fix this one... I'm currently running Apache 2.0.40 and PHP 4.2.2 on a RedHat9 server. I'm needing to update to PHP5 but don't want to change...
0
by: steve | last post by:
Hi, i'm just starting to learn about oracle 9.2. (about 1 year) i have loaded the database software onto a linux box. I want to try to provide some minor ftp service for an idea i'm working...
9
by: allenj | last post by:
DB2 UDB 7.2 WSE Fixpak 9 Linux Red Hat 7.3 I have some library code (written in Java, if that matters) that processes maintenance screens that are presented to the end-users as forms in a...
3
by: Terry Lee Tucker | last post by:
I have just upgraded Postgres from version: PostgreSQL 7.2.3-RH on i686-pc-linux-gnu, compiled by GCC 2.96 to: PostgreSQL 7.3.4 on i386-redhat-linux-gnu, compiled by GCC i386-redhat-linux-gcc...
5
by: Lauren Wilson | last post by:
The more I look at the issue of digital certification for our Access app, the more confused I get. The SelfCert feature that allegedly installed with Office 2003 does not work. The entry is on my...
2
by: smartchap009 | last post by:
hi, If i can get help in writing perl code for adding updating and deleting user in linux.adds a user to the database file called passwd. With the -a switch the program accepts a user-id and...
1
by: smartchap009 | last post by:
Adding,Updating and Deleting user using perl script in linux -------------------------------------------------------------------------------- hi, If i can get help in writing perl code for...
5
by: mechphisto | last post by:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do that, I have to recompile PHP with the libmcrypt switches in the ./ configure. So I downloaded the latest PHP source files, and...
6
by: ryanbayona | last post by:
I really wanted to learn C++ thats why i took the initiative to self- study. I am currently following the tutorial at this site: http://www.cprogramming.com/tutorial.html#c++tutorial but im...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.