Cycles : Fatal Python Py_Initialize: Unable to get the locale encoding

hi all,

My system is Fedora 15. I compiled the main trunk without any problems. Can run Blender, all thing is good. Then I got the Cycles source, and compiled, also with no problems. But when try to run it,

“Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can’t find encoding”

What could be the problem? I don’t think it’s because of the python installed as the executables from the main trunk can run without any problems related to python, right?

Any pointers on how to solve this?

Thanks in advance.

I solved. Download python source code and install it in /usr/local.

Thanks.