Re: problem installing freeRadius Server

2011-01-24 Thread Gary Gatten
I'm not sure what version of python is required, but I'm fairly certain the 
development version is. Make sure you have the development python package 
installed. Also, it may by default got to /usr/local/bin


From: freeradius-users-bounces+ggatten=waddell@lists.freeradius.org 

To: freeradius-users@lists.freeradius.org 

Sent: Mon Jan 24 03:32:06 2011
Subject: problem installing freeRadius Server

Hello Friends,
I am trying to install free radius on a old linux machine. the configuration is 
as fillows

[root@localhost freeradius-server-2.1.10]# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 
i386 GNU/Linux
[root@localhost freeradius-server-2.1.10]# whereis python
python: /usr/bin/python2.2 /usr/bin/python /usr/lib/python2.2 
/usr/local/bin/python2.7 /usr/local/bin/python2.7-config /usr/local/bin/python 
/usr/local/lib/python2.7 /usr/include/python2.2 /usr/share/man/man1/python.1.gz
[root@localhost freeradius-server-2.1.10]#


While compiling the server i get following errors
root/vijay/freeradius-server-2.1.10/src/freeradius-devel/modules.h:12: warning: 
`used' attribute ignored
rlm_python.c: In function `python_error':
rlm_python.c:177: `PyGILState_STATE' undeclared (first use in this function)
rlm_python.c:177: (Each undeclared identifier is reported only once
rlm_python.c:177: for each function it appears in.)
rlm_python.c:177: parse error before "__gstate"
rlm_python.c:195: warning: implicit declaration of function `PyGILState_Release'
rlm_python.c:195: `__gstate' undeclared (first use in this function)
rlm_python.c: In function `python_init':
rlm_python.c:215: warning: passing arg 2 of `PyModule_AddIntConstant' discards 
qualifiers from pointer target type
rlm_python.c: In function `python_function':
rlm_python.c:352: `PyGILState_STATE' undeclared (first use in this function)
rlm_python.c:352: parse error before "gstate"


By default i had python2.2 installed in my linux PC under the path 
"/usr/bin/python2.2", in the mailing list somebody replied that new version of 
python is required, so I installed Python2.7.1. but in "/usr/bin" i can't see 
python2.7.1

Please let me know how can i fix this error and install the Radius server 
successfully.

Thank you in advance.


Thanks and Regards,
VIJAY S.

[http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle]<http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

problem installing freeRadius Server

2011-01-24 Thread vijay s sheelavantar
Hello Friends,I am trying to install free radius on a old linux machine. the 
configuration is as fillows
[root@localhost freeradius-server-2.1.10]# uname -aLinux localhost.localdomain 
2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 
GNU/Linux[root@localhost freeradius-server-2.1.10]# whereis pythonpython: 
/usr/bin/python2.2 /usr/bin/python /usr/lib/python2.2 /usr/local/bin/python2.7 
/usr/local/bin/python2.7-config /usr/local/bin/python /usr/local/lib/python2.7 
/usr/include/python2.2 /usr/share/man/man1/python.1.gz[root@localhost 
freeradius-server-2.1.10]#

While compiling the server i get following 
errorsroot/vijay/freeradius-server-2.1.10/src/freeradius-devel/modules.h:12: 
warning: `used' attribute ignoredrlm_python.c: In function 
`python_error':rlm_python.c:177: `PyGILState_STATE' undeclared (first use in 
this function)rlm_python.c:177: (Each undeclared identifier is reported only 
oncerlm_python.c:177: for each function it appears in.)rlm_python.c:177: parse 
error before "__gstate"rlm_python.c:195: warning: implicit declaration of 
function `PyGILState_Release'rlm_python.c:195: `__gstate' undeclared (first use 
in this function)rlm_python.c: In function `python_init':rlm_python.c:215: 
warning: passing arg 2 of `PyModule_AddIntConstant' discards qualifiers from 
pointer target typerlm_python.c: In function 
`python_function':rlm_python.c:352: `PyGILState_STATE' undeclared (first use in 
this function)rlm_python.c:352: parse error before "gstate"

By default i had python2.2 installed in my linux PC under the path 
"/usr/bin/python2.2", in the mailing list somebody replied that new version of 
python is required, so I installed Python2.7.1. but in "/usr/bin" i can't see 
python2.7.1 
Please let me know how can i fix this error and install the Radius server 
successfully.
Thank you in advance.

Thanks and Regards,VIJAY S.-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html