Message31197
reduce() in getpath.c chops down a path to the empty string rather than to /. As a result, if you build python with --prefix='' in the usual way for software to be installed into /, it tries to find its libraries in the current directory instead of in /lib:
$ python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.5 (r25:51908, Feb 6 2007, 16:15:42)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
This is fixed by the attached patch.
$ python
Python 2.5 (r25:51908, Feb 6 2007, 16:19:38)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
|
|
Date |
User |
Action |
Args |
2007-08-23 14:51:47 | admin | link | issue1653457 messages |
2007-08-23 14:51:47 | admin | create | |
|