The ConnectPort series of gateways from Digi run an embedded version of Python 2.4. Python 2.4 is no longer readily available in recent distros so here's how I installed it. Having had to do this painful exercise twice now so writing it down to make it easier next time.
- Download 2.4.3 source from python.org and unpack.
- Install prereqs:
sudo apt-get install zlib1g-dev
./configure BASECFLAGS=-U_FORTIFY_SOURCE -with-zlib=/usr/include
Modules/Setupand uncomment the line starting with
sudo make install
- Remove new symlink that install creates.
sudo rm /usr/local/bin/python. The symlink in
/usr/bin/pythonwill still point to 2.7ish.
Python 2.4 can now be invoked with