Error while installing Python2.5.1

2007-06-21 Thread zaperaj
I use red hat 9 which comes with python2.2 installed in it. Wanting to
use the latest version, i downloaded python 2.5.1 from the official
python website. After downloading, i performed the following steps,
but there is some error during the configuration process and hence i'm
not able to run the "make" command after this. Following is the
sequence of events that happened in my terminal:

[EMAIL PROTECTED] root]# tar xfz Python-2.5.1.tgz
[EMAIL PROTECTED] root]# cd Python-2.5.1
[EMAIL PROTECTED] Python-2.5.1]# ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[EMAIL PROTECTED] Python-2.5.1]# make
make: *** No targets specified and no makefile found.  Stop.

If anybody can help... Thanx!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error while installing Python2.5.1

2007-06-21 Thread zaperaj
I dont understand What are my distribution repositories?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error while installing Python2.5.1

2007-06-21 Thread zaperaj
I dont understand What are my distribution repositories?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error while installing Python2.5.1

2007-06-21 Thread zaperaj


So how do i overcome this problem?? How do i access my distribution
repositories(if any) or installation media?

-- 
http://mail.python.org/mailman/listinfo/python-list


Error in following code

2007-06-21 Thread zaperaj
Im working with python2.2 on red hat linux.
The following program is supposed to print decreasing numbers from an
entered number till 1, each decrement being = 1 :

#! usr/bin/env/python

def f(n=int(raw_input("enter number: "))):
 print 'n=',n
 if n>1:
 return n*f(n-1)
 else:
 print 'end'
 return 1




Though it works fine on the python interpretor, i dont get the
required output when i write this code in gedit (text editor). The
output that i get is (where t4.py is the name of the file):

[EMAIL PROTECTED] root]# python t4.py
enter number: 6
[EMAIL PROTECTED] root]#

i.e it takes the input but doesn't print anything. If anybody can
help... Thanx!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error while installing Python2.5.1

2007-06-22 Thread zaperaj
In the Red Hat installation cd, i saw that there are four rpms for
gcc. Now what do i need to do?

-- 
http://mail.python.org/mailman/listinfo/python-list


how to install pygame package?

2007-07-12 Thread zaperaj
Im working in red hat linux 9.0. I've downloaded the pygame package
but i dont know how to install it. If anybody has the time to detail
the steps sequentially... thanx!

P.S. I've downloaded both the tar and the rpm packages...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to install pygame package?

2007-07-13 Thread zaperaj
There seems to be some problem. For the tar version, initial steps
execute OK, but after typing:
[EMAIL PROTECTED] pygame-1.7.1release]# ./configure
bash: ./configure: No such file or directory

So i don't hav a configure file? What should i do now?

-- 
http://mail.python.org/mailman/listinfo/python-list