Monday, April 20, 2009

Python 2.6.2 on SCO OpenServer 5.0.6a

Just a basic notice regarding Python 2.6.2 on SCO OpenServer 5.0.6a in case people are doing a search for it. Haven't seen any other reports.

The build was done based on my previous instructions on creating a working development environment.

Had to run --without-threads to start with.

/bin/bash
/usr/gnu/bin/tar zxvf Python-2.6.2.tgz
cd Python-2.6.2
CFLAGS=" -O2 -s " LIBS=" -lsocket " ./configure --without-threads
make
make install


Result is a python build as follows:

Failed to find the necessary bits to build these modules:
_sqlite3 bsddb185 linuxaudiodev
ossaudiodev sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes _curses _curses_panel
_multiprocessing _socket _ssl
_tkinter mmap readline
select spwd



Test.


Python-2.6.2 >./python --version
Python 2.6.2
Python-2.6.2 > make test
...
./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 168, in
from test import test_support
File "/u/he61041/source/Python-2.6.2/Lib/test/test_support.py", line 8, in
import socket
File "/u/he61041/source/Python-2.6.2/Lib/socket.py", line 46, in
import _socket
ImportError: No module named _socket
make: [test] Error 1 (ignored)
./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 168, in
from test import test_support
File "/u/he61041/source/Python-2.6.2/Lib/test/test_support.py", line 8, in
import socket
File "/u/he61041/source/Python-2.6.2/Lib/socket.py", line 46, in
import _socket
ImportError: No module named _socket
make: *** [test] Error 1


Yep I would call it a showstopper if the socket lib fails.

No comments: