Python 2.5.2 and Solaris 8 build issues (gcc 3.4.2)

I am trying to build python 2.5.2 on Solaris 8 using gcc 3.4.2. I do not see any immediate errors in the step. / configure, but after creating and entering a python shell that executes import-time errors, with:

Python 2.5.2 (r252:60911, Nov 21 2008, 18:45:42)
[GCC 3.4.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named time

What am I doing wrong? From what I see with a quick google, is that there may be a bug with libstdc ++, so I can not find any difficult details.

Any suggestions would be most welcome.

Many thanks,

Al.

+3
source share
1 answer

The time module is not built by default in Python, if you are building from the source distribution, you need to explicitly enable all the modules you want to compile.

/Setup.dist python , :

#time timemodule.c

. , Python , .

+1

All Articles