Is there a way to install Mercurial on AIX 6.5 without root? I'm a physics student and am developing code on the IBM cluster in our college and don't have root privilege. Several weeks ago I decided to use Mercurial to help control my code. I've contacted the system manager, but he said "Mercurial falls in the category of unsupported software" on the AIX system and he cannot help me. I've tried to find a guide on the web for a long time, but don't have any luck. I'm only familiar with the very basic commands on Linux, and not familiar with the complicated make file in the source code. Could you give a step by step guide of how to build Mercurial from the source?
The system has Python 2.6, but the Python installation seems incomplete. When I tried the answer by @grawity, I received error
"Couldn't import standard bz2 (incomplete Python install)."
I tried to compile Python 2.6.8 without problem, but when I try
python setup.py install --user
I get the error
Traceback (most recent call last): File "setup.py", line 56, in <module> import os, subprocess, time File "/home/mwu3/install_python/lib/python2.6/subprocess.py", line 416, in <module> import fcntl ImportError: No module named fcntl
I looked into the build log of Python, and actually it fails to build a lot packages, fcntl included:
Failed to find the necessary bits to build these modules: _sqlite3 bsddb185 dl imageop linuxaudiodev ossaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bsddb _ctypes _curses _curses_panel _tkinter fcntl
I use this to compile Python:
CC=gcc CXX=g++ ./configure --enable-shared make
I try to compile Python with xlc:
CC=xlc_r OPT="-O2 -qmaxmem=70000" ./configure --without-computed-gotos --enable-shared make
Also get the same error in update3.
I try to compile Python 2.7.3 with xlc also get error but
_bsddb are built successfully.
Python build finished, but the necessary bits to build these modules were not found: _bsddb _sqlite3 bsddb185 dl imageop linuxaudiodev ossaudiodev spwd sunaudiodev 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 _tkinter